http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47131

           Summary: Ada C34011B fails with "GNAT BUG" on SJLJ targets
           Product: gcc
           Version: 4.6.0
               URL: http://www.dragonlace.net
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: regression
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: gnu...@marino.st
            Target: i386,x86_64 w/o GCC EH


Created attachment 22872
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22872
Test case to demonstrate GNAT regression

On GCC 4.6.0, between Nov 13 and Nov 20, the Ada ACATS test C34011B failed and
continues to fail on targets that don't use the GCC error handler.  I have
three such targets (OpenBSD i386, OpenBSD AMD64, and FreeBSD AMD64), and the
test starting failing on all three targets at the exact same time.

The failure is also optimization level related.  It will pass on all targets at
level 0, but it will fail on SJLJ targets at -O1 or higher.

The "GNAT BUG" error message is show below.  The attachment is a test case that
will produce the message.



> gnatmake -O1 gimple_2310.adb

gnatgcc -c -O1 gimple_2310.adb
gimple_2310.adb:39:36: warning: static value out of range of type
"Standard.Positive"
gimple_2310.adb:39:36: warning: "Constraint_Error" will be raised at run time
gimple_2310.adb:44:16: warning: variable "T1" is read but never assigned
+===========================GNAT BUG DETECTED==============================+
| 4.6.0 20101221 (experimental) -=> GNAT AUX [OpenBSD] (i386-aux-openbsd4.7)
GCC error:|
| in gimple_has_side_effects, at gimple.c:2310                             |
| Error detected around gimple_2310.adb:69:5                               |
| 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).                   |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).

gimple_2310.adb


raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:423
gnatmake: "gimple_2310.adb" compilation error

Reply via email to