------- Comment #6 from tkoenig at gcc dot gnu dot org 2008-09-12 19:47 ------- (In reply to comment #5) > (In reply to comment #3) > > This may be due to an incompatibility between the 4.3 > > and 4.4 libraries. > > > > What result do you get when you compile with "-static", > > to make sure that you get the right library? > > > > That fixed the problem, my mistake. Thanks for pointing that out.
Actually, this is a bug - the libraries are supposed to be upward compatible, so that you can run a 4.3-compiled program with 4.4. If that doesn't work, this is a bug in 4.4. I get a different behaviour for you test case on i686-pc-linux-gnu - and endless loop which outputs zeros only, so I can confirm this. -- tkoenig at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |critical Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |ABI, wrong-code Last reconfirmed|0000-00-00 00:00:00 |2008-09-12 19:47:33 date| | Summary|Incorrect array value |[4.4 Regression] Incorrect |returned |array value returned Target Milestone|--- |4.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37498