This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/16412] Missing 32- to 64-bit sign extensions when doing pointer arithmetics.
- From: "drab at kepler dot fjfi dot cvut dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2004 18:08:14 -0000
- Subject: [Bug c/16412] Missing 32- to 64-bit sign extensions when doing pointer arithmetics.
- References: <20040707174407.16412.drab@kepler.fjfi.cvut.cz>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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