This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix invalid bcopy -> memcpy replacement
- From: Ulrich Weigand <weigand at i1 dot informatik dot uni-erlangen dot de>
- To: rth at redhat dot com (Richard Henderson)
- Cc: weigand at i1 dot informatik dot uni-erlangen dot de (Ulrich Weigand), gcc-patches at gcc dot gnu dot org
- Date: Sat, 22 May 2004 02:30:19 +0200 (CEST)
- Subject: Re: [PATCH] Fix invalid bcopy -> memcpy replacement
Richard Henderson wrote:
> On Sat, May 22, 2004 at 12:11:30AM +0200, Ulrich Weigand wrote:
> > + while (TREE_CODE (exp) == COMPONENT_REF
> > + || TREE_CODE (exp) == ARRAY_REF);
>
> Please use get_base_address.
But won't that return NULL if exp is (based on) a string constant?
I gather this is one of the cases this routine is supposed to
optimize ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
weigand@informatik.uni-erlangen.de