Bug#325670: gcc-4.0: regression: generates wrong code for inlined memcpy

2005-08-30 Thread Steve Langasek
On Wed, Aug 31, 2005 at 12:09:40AM +0200, Bastian Blank wrote: > On Tue, Aug 30, 2005 at 12:34:01AM -0700, Steve Langasek wrote: > > When passing pointers to 4-byte types to memcpy(), gcc-4.0 generates > > wrong code which assumes that these pointers are aligned at 4-byte > > boundaries for purpose

Bug#325670: gcc-4.0: regression: generates wrong code for inlined memcpy

2005-08-30 Thread Bastian Blank
On Tue, Aug 30, 2005 at 12:34:01AM -0700, Steve Langasek wrote: > When passing pointers to 4-byte types to memcpy(), gcc-4.0 generates > wrong code which assumes that these pointers are aligned at 4-byte > boundaries for purposes of optimization, ignoring the implicit cast to > (char *) in the prot

Bug#325670: gcc-4.0: regression: generates wrong code for inlined memcpy

2005-08-30 Thread Bastian Blank
On Tue, Aug 30, 2005 at 02:45:41PM -0700, Steve Langasek wrote: > By any chance, can you provide a reference to the C spec that shows > gcc's current behavior is valid? Given that traceroute is among the > programs that breaks under gcc-4.0, it seems to me that the assumption > that it's safe to u

Bug#325670: gcc-4.0: regression: generates wrong code for inlined memcpy

2005-08-30 Thread Steve Langasek
On Tue, Aug 30, 2005 at 02:08:17PM +0200, Falk Hueffner wrote: > Steve Langasek <[EMAIL PROTECTED]>, [EMAIL PROTECTED] schrieb am 30.08.05 > 09:49:30: > > When passing pointers to 4-byte types to memcpy(), gcc-4.0 generates > > wrong code which assumes that these pointers are aligned at 4-byte >

Bug#325670: gcc-4.0: regression: generates wrong code for inlined memcpy

2005-08-30 Thread Falk Hueffner
Steve Langasek <[EMAIL PROTECTED]>, [EMAIL PROTECTED] schrieb am 30.08.05 09:49:30: > When passing pointers to 4-byte types to memcpy(), gcc-4.0 generates > wrong code which assumes that these pointers are aligned at 4-byte > boundaries for purposes of optimization, ignoring the implicit cast t

Bug#325670: gcc-4.0: regression: generates wrong code for inlined memcpy

2005-08-30 Thread Steve Langasek
Package: gcc-4.0 Version: 4.0.1-2 Severity: important When passing pointers to 4-byte types to memcpy(), gcc-4.0 generates wrong code which assumes that these pointers are aligned at 4-byte boundaries for purposes of optimization, ignoring the implicit cast to (char *) in the prototype of memcpy()