the ATerm library (not the terminal!) available here: http://www.cwi.nl/projects/MetaEnv/aterm/aterm-2.4.2.tar.gz
seems to miscompile at -O1, but I cannot say for sure that this is not due to a bug in the C code. To reproduce the failure, grab the above file and try: export CC=gcc-4.0.2 export CFLAGS="-O1" ./configure; make; make check this takes about a minute. On ia64-hpux, with GCC 4.0.2, 2 of the 4 test programs fail. with GCC 3.4.4, only 1 of the 4 test programs fails. At -O0, all tests pass with either compiler. If anyone can shed some light on this I would really appreciate it, but I have a funny feeling this might not be a GCC issue, so marking this minor. -- Summary: code fails at -O1, works at -O0 Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: duraid at octopus dot com dot au GCC host triplet: ia64-hp-hpux11.23 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25195