While it might have looked like OptimizeNone removed the OptimizeForSize attribute from a function, it weren't necessarily so. This patch fixes the attribute handling so 'optnone' correctly supersedes all the other things it's supposed to supersede.
Updated a test to do a -Os run so we verify that part works right. Added a test to exercise different combinations of attributes on the declaration versus on the definition, which is another way that these things can end up having to be merged/untangled. --paulr
pr21604.diff
Description: pr21604.diff
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
