This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Move memory builtin foldings to GIMPLE
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Richard Biener <rguenther at suse dot de>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 1 Aug 2014 15:59:06 +0000
- Subject: Re: [PATCH] Move memory builtin foldings to GIMPLE
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot LSU dot 2 dot 11 dot 1408011440030 dot 20733 at zhemvz dot fhfr dot qr>
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
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