This is the mail archive of the gcc@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] C undefined behavior fix



On 7 Jan 2002, Alexandre Oliva wrote:
>
> I had got the impression that RELOC would add an offset that was not
> known at compile time, because the built-in strcpy will not be
> optimized to memcpy if the constant offset is outside the bounds of
> the string in the current CVS version of GCC, so there isn't any
> problem in this case.

You're right, that code is even worse than the thing that was posted here
on the list at some point. Absolutely no complaints then (although I still
hope for the int/ptr cast approach).

		Linus


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