This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR optimization/11980: Fix strcat builtin on x86_64.
On Wed, Sep 03, 2003 at 02:14:31PM -0600, Roger Sayle wrote:
> Are you sure?
Yes.
> I'm uncomfortable that the x86_64-freebsd5.1 port
> is obviously quite functional, able to bootstrap the GCC compiler
> and run the testsuite, yet the only place in the code that is
> "fragile" to size_t being smaller than a pointer is the recently
> added strcat built-in? Odd.
It's wrong because they're malloc would no doubt otherwise be
quite happy in allocating a 5GB object.
It's most definitely a bug in their libc and/or gcc port.
r~