This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
difference in int,long behavior in gcc-3.4 4.0 vs 4.1 4.2
- From: Oleg Verych <olecom at flower dot upol dot cz>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 1 Jun 2007 19:58:17 +0000 (UTC)
- Subject: difference in int,long behavior in gcc-3.4 4.0 vs 4.1 4.2
- Keywords: int becomes long gcc 4.1 amd64
- Summary: int becomes long on 4.1 and later on amd64 arch
Hallo.
I have question about `int' silently becoming `long' in 4.1 and 4.2
GCC on AMD64.
`For' loop gets infinity on 3.4, 4.0 due to
int i; // ssize_t => signed long bar; amd64
for (i=0;i<bar;i+=2)...
4.1 and 4.2 are fine!
It's swab() in the dietlibc with at least two bugs, but this one is worth
asking here.
Test, code, compile switches and discussion are here:
Message-ID: <20070531084442.GB7266@flower.upol.cz>
Archived-At: <http://permalink.gmane.org/gmane.linux.lib.dietlibc/1161>
Thanks.
____