[PATCH] Handle 'optnone' versus -Os/-Oz more smoothly

Robinson, Paul Paul_Robinson at playstation.sony.com
Thu Dec 11 11:30:02 PST 2014


Instead of having -Os/-Oz add OptimizeForSize/MinSize first, and later
having OptimizeNone remove them again, just don't add them in the
first place if the function already has OptimizeNone.

Note that MinSize can still appear due to attributes being on different
declarations; a future patch will address that.
--paulr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: optnone-part2.diff
Type: application/octet-stream
Size: 3857 bytes
Desc: optnone-part2.diff
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141211/036144f5/attachment.obj>


More information about the cfe-commits mailing list