This is the mail archive of the gcc-bugs@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]

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


------- 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


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