[Bug c/16412] Missing 32- to 64-bit sign extensions when doing pointer arithmetics.

drab at kepler dot fjfi dot cvut dot cz gcc-bugzilla@gcc.gnu.org
Wed Jul 7 18:08:00 GMT 2004


------- Additional Comments From drab at kepler dot fjfi dot cvut dot cz  2004-07-07 18:08 -------
Subject: Re:  Missing 32- to 64-bit sign extensions when doing
 pointer arithmetics.



On Wed, 7 Jul 2004, pinskia at gcc dot gnu dot org wrote:

>
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-07 17:58 -------
> Don't ask me or any here, because this is what the C standard requires :).
>
> --

OK, thanks, anyway. (Although I'm quite not happy with that, because some 
projects seem to heavily depend on that :( - and also on that the 
sizeof(void*) == sizeof(unsigned int), which actually makes the difference 
between 'int' and 'unsigned int' disappear in pointer arithmetics. 
Unfortunatelly on x86_64 this condition is false and that breaks a lot of 
projects (such as xvid, mplayer, ...).)

Martin Drab


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16412



More information about the Gcc-bugs mailing list