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

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


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


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