[PATCH] Add C/C++ attribute 'optnone'

Robinson, Paul Paul_Robinson at playstation.sony.com
Tue Nov 19 15:24:44 PST 2013


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: metafoo at gmail.com [mailto:metafoo at gmail.com] On Behalf Of Richard Smith
Sent: Tuesday, November 19, 2013 2:38 PM
To: Robinson, Paul
Cc: cfe-commits at cs.uiuc.edu 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 <Paul_Robinson at playstation.sony.com<mailto:Paul_Robinson at playstation.sony.com>> wrote:
Adds a new 'optnone' function attribute that maps directly to the LLVM IR 'optnone' attribute.
--paulr


_______________________________________________
cfe-commits mailing list
cfe-commits at cs.uiuc.edu<mailto:cfe-commits at cs.uiuc.edu>
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131119/81781ac3/attachment.html>


More information about the cfe-commits mailing list