This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix ACATS cxa4005 failure at -O
On Tue, Apr 15, 2008 at 4:08 PM, Eric Botcazou <ebotcazou@adacore.com> wrote:
> > This is an aggregate array assignment which are not very common and thus
> > likely buggy in the middle-end. Most of the time we make sure to elide
> > them to memcpy calls during gimplification, but this is of course not
> > always possible.
>
> Don't we do this only for a variable size?
Possibly, but maybe it makes sense to do so in some non-variable size
cases as well. I don't feel strong about this though, but a canonical
form of string assignment - either using strcpy or an assignment statement
- makes sense to me. I didn't see this generated from other frontends
as at least C and C++ don't allow assignments of arrays.
Richard.