This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Move memory builtin foldings to GIMPLE


On Fri, 1 Aug 2014, Richard Biener wrote:

> Does this look sensible?  In particular, does any Frontend maintainer
> object to no longer getting these simplifications?  Note they
> will still apply during gimplification and given they now work
> on GENERIC we can simplify them quite a bit (but as followup).

I see no problems with this in C terms.  I expect some code may well do 
things like

static size_t len = __builtin_strlen ("foo");

and expect the static initializer to get folded, but that's only an issue 
with folding for constant arguments to pure functions - not for the 
functions involved here, whose whole purpose is to modify memory.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]