arm-rtems4.9-gcc -c -fstack-check -O -gnatws -O2 -I/home/joel/work-gnat/svn/gcc/gcc/testsuite/ada/acats/work-edb7312/support cxg1004.adb +===========================GNAT BUG DETECTED==============================+ | 4.4.0 20080722 (experimental) [trunk revision 138063] (arm-unknown-rtems4.9) GCC error:| | in fold_convert, at fold-const.c:2528 | | Error detected around cxg1004.adb:57 | | Please submit a bug report; see http://gcc.gnu.org/bugs.html. | | Use a subject line meaningful to you and us to track the bug. | | Include the entire contents of this bug box in the report. | | Include the exact gcc or gnatmake command that you entered. | | Also include sources listed below in gnatchop format | | (concatenated together with no headers between files). | +==========================================================================+
Created attachment 15961 [details] Concatenated source code per bug box request
Didn't cut and paste exception message. Here it is. raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:424
Compiler error at -O2 but not with -O or -O1 Removing -fstack-check has no effect. So "-O2" is the shortest set of options that fail. -O1 works.
Does not happen in my most recent test. arm-rtems4.9-gcc (GCC) 4.4.0 20080802 (experimental) [trunk revision 138553]