public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* difference in int,long behavior in gcc-3.4 4.0 vs 4.1 4.2
@ 2007-06-01 20:10 Oleg Verych
  0 siblings, 0 replies; only message in thread
From: Oleg Verych @ 2007-06-01 20:10 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-01 20:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-01 20:10 difference in int,long behavior in gcc-3.4 4.0 vs 4.1 4.2 Oleg Verych

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).