difference in int,long behavior in gcc-3.4 4.0 vs 4.1 4.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
Archived-At: <http://permalink.gmane.org/gmane.linux.lib.dietlibc/1161>

Thanks.
____


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux