This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: expand_builtin_memcpy bug exposed by TER and gfortran
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: amacleod at redhat dot com (Andrew MacLeod)
- Cc: gcc at gcc dot gnu dot org (gcc mailing list)
- Date: Tue, 5 Dec 2006 13:43:25 -0500 (EST)
- Subject: Re: expand_builtin_memcpy bug exposed by TER and gfortran
>
>
> I've been investigating a testsuite failure which shows up with the new
> TER implementation, and it appears to be a bug in the code for
> expand_builtin_memcpy.
>
> Does that seem reasonable? or would everyone prefer I get it fixed
> before checking in the TER code?
I would prefer you don't expose latent bugs and fix them before applying
the patch.
If we go by this, I would have applied my fold-const.c patch to convert
*(othertype*)&type to VIEW_CONVERT_EXPR a long time ago but it exposes
problems with stuff like ((structtype*)&b)->c = e; if b is a scalar.
Thanks,
Andrew Pinski