Compiling with -Os or -Oz will set OptimizeForSize or MinSize; 'optnone' should work regardless. If it's easy to distinguish when the Attribute comes from a command-line option instead of in-source, at the point where we're ready to complain, then I'm okay with complaining. (Sema is not exactly my strong suit.) --paulr
From: [email protected] [mailto:[email protected]] On Behalf Of Richard Smith Sent: Tuesday, November 19, 2013 2:38 PM To: Robinson, Paul Cc: [email protected] cfe Subject: Re: [PATCH] Add C/C++ attribute 'optnone' What's the argument for allowing optnone to override minsize, rather than rejecting the case where they appear together? (I'm not saying this is inappropriate, but I'd like to make sure this is the right choice.) On Tue, Nov 19, 2013 at 2:25 PM, Robinson, Paul <[email protected]<mailto:[email protected]>> wrote: Adds a new 'optnone' function attribute that maps directly to the LLVM IR 'optnone' attribute. --paulr _______________________________________________ cfe-commits mailing list [email protected]<mailto:[email protected]> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
