[PATCH] Fixing PR21811 by applying attributes to global init function

Reid Kleckner rnk at google.com
Wed Apr 22 14:47:23 PDT 2015


On Wed, Apr 22, 2015 at 2:30 PM, Yunzhong Gao <
Yunzhong_Gao at playstation.sony.com> wrote:

> Thanks!
> What do you think we should do regarding the related no-frame-pointer-elim
> attribute? Right now it is set by the frontend but not checked by backend.
> If I follow the same pattern here, we should get rid of the global flag
> NoFramePointerElim and move to checking the attribute instead. What do you
> think?


Generally, the backends should give the function attributes, if present,
higher precedence than global flags. Fixing that might be a bit tricky,
though.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150422/9349f5f7/attachment.html>


More information about the cfe-commits mailing list