This is an archive of the discontinued LLVM Phabricator instance.

Downgrade 'optnone' attribute conflicts to warning
AbandonedPublic

Authored by probinson on Jan 12 2015, 12:31 PM.

Details

Reviewers
None
Summary

When attribute 'optnone' appears on the same declaration with a
conflicting attribute, warn about the conflict and pick a "winning"
attribute to preserve, instead of emitting an error. This matches the
behavior when the conflicting attributes are on different declarations.

Along the way I discovered that conflicts involving __forceinline were
reported as 'always_inline' (alternate spellings for the same
attribute) so I hacked in a way to provide the spelling used in the
declaration. There must be a better way, though...

Diff Detail

Event Timeline

probinson updated this revision to Diff 18037.Jan 12 2015, 12:31 PM
probinson retitled this revision from to Downgrade 'optnone' attribute conflicts to warning.
probinson updated this object.
probinson edited the test plan for this revision. (Show Details)
probinson added a reviewer: aaron.ballman.
probinson added a subscriber: Unknown Object (MLST).
aaron.ballman resigned from this revision.Oct 13 2015, 5:55 AM
aaron.ballman removed a reviewer: aaron.ballman.
probinson abandoned this revision.Oct 28 2015, 11:26 AM