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] 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


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