This is an archive of the discontinued LLVM Phabricator instance.

[ARM][Driver] Change float-abi warning
ClosedPublic

Authored by michaelplatings on Jul 6 2023, 1:35 AM.

Details

Summary

Previously the warning stated "flag ignored" which is only partially
true - the invalid flag would prevent -feature +soft-float-abi from
being emitted which resulted in user-visible behaviour like
__ARM_PCS_VFP being defined.

Rather than attempt to coerce invalid flags into valid behaviour, don't
describe the expected behaviour.

Ideally the warning would be an error, as it is in GCC. However there
are tests in llvm-project that trigger the warning. Therefore one has to
assume that making the warning an error would break other code that
already exists in the wild.

Also apply test improvements suggested by @MaskRay on D150902.

Diff Detail

Event Timeline

michaelplatings created this revision.Jul 6 2023, 1:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2023, 1:35 AM
michaelplatings requested review of this revision.Jul 6 2023, 1:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2023, 1:35 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Fix duplicate implicit group warning

simon_tatham accepted this revision.Jul 6 2023, 5:28 AM
This revision is now accepted and ready to land.Jul 6 2023, 5:28 AM
This revision was landed with ongoing or failed builds.Jul 7 2023, 1:41 AM
This revision was automatically updated to reflect the committed changes.