This is an archive of the discontinued LLVM Phabricator instance.

Do not store "+soft-float" and "+soft-float-abi" target features in function attributes
Needs ReviewPublic

Authored by olista01 on Apr 1 2015, 7:47 AM.

Details

Reviewers
echristo
Summary

These target features are used by the clang driver when targeting ARM and MIPS, but cc1 strips them out and they are not valid backend features. Therefore, we should not store them in the function attributes.

Diff Detail

Repository
rL LLVM

Event Timeline

olista01 updated this revision to Diff 23051.Apr 1 2015, 7:47 AM
olista01 retitled this revision from to Do not store "+soft-float" and "+soft-float-abi" target features in function attributes.
olista01 updated this object.
olista01 edited the test plan for this revision. (Show Details)
olista01 added a reviewer: echristo.
olista01 set the repository for this revision to rL LLVM.
olista01 added a subscriber: Unknown Object (MLST).
echristo edited edge metadata.Apr 6 2015, 1:26 AM

Hi Oliver,

I'm not sure this is the right direction to go here, I've got another patch
in progress to solve this problem and I'll have something tomorrow. Sorry
about the delay.

Thanks!

-eric

pirama added a subscriber: pirama.Apr 9 2015, 1:17 PM
srhines added a subscriber: srhines.Apr 9 2015, 1:30 PM

Hi Eric,

Are you still working on this? This is still causing a spurious warning from the ARM backend.

Oliver

I am, yes. I have autoupgrade working for both of these to move them to
actual soft float attributes, and I'm dealing with the command line
options/TargetOptions side of things right now.

-eric

I committed r236060 to clang which should solve your immediate problem.

-eric