Bug 36937 - Compiler error on ACATS cxg1004
Summary: Compiler error on ACATS cxg1004
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 4.4.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-25 17:56 UTC by Joel Sherrill
Modified: 2008-08-06 19:34 UTC (History)
2 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: arm-rtems4.9
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Concatenated source code per bug box request (3.89 KB, text/x-adasrc)
2008-07-25 17:57 UTC, Joel Sherrill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Sherrill 2008-07-25 17:56:36 UTC
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).                   |
+==========================================================================+
Comment 1 Joel Sherrill 2008-07-25 17:57:41 UTC
Created attachment 15961 [details]
Concatenated source code per bug box request
Comment 2 Joel Sherrill 2008-07-25 17:58:51 UTC
Didn't cut and paste exception message.  Here it is.

raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:424
Comment 3 Joel Sherrill 2008-07-25 18:01:31 UTC
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.
Comment 4 Joel Sherrill 2008-08-06 19:34:24 UTC
Does not happen in my most recent test.

arm-rtems4.9-gcc (GCC) 4.4.0 20080802 (experimental) [trunk revision 138553]