optimization/7799: [3.2/3.3 regression] Loop bug with optimization flag -Os in gcc
Christian Ehrhardt
ehrhardt@mathematik.uni-ulm.de
Fri Dec 13 07:35:00 GMT 2002
On Fri, Dec 13, 2002 at 01:57:56PM +0000, Andrew Haley wrote:
> Christian Ehrhardt writes:
> > void fill (int* p, int* q[10])
> > [ ... ]
> > If p is initially 0x7ffffffc the comparison must be treated as unsigned,
> > however, if p is initially 0xfffffffc the comparison must be treated as
> > signed.
>
> How can p be initially 0xfffffffc ?
By calling fill ((int*) 0xffffffc, q);
> The only way you could get such an address is to cast an int to a
> pointer, in which case it's your responsibility to make sure the
> address is valid.
I think you missed the point. The memory pointed to by p is never
accessed.
regards Christian
--
THAT'S ALL FOLKS!
More information about the Gcc
mailing list