Bug 37440 - [4.8/4.9/5 Regression] GNAT Bug Box a-ngcefu.adb:397
Summary: [4.8/4.9/5 Regression] GNAT Bug Box a-ngcefu.adb:397
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.4.0
: P5 normal
Target Milestone: 4.8.5
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
: 40775 46746 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-09 12:46 UTC by Joel Sherrill
Modified: 2015-01-07 22:28 UTC (History)
4 users (show)

See Also:
Host:
Target: arm-rtems4.9
Build:
Known to work: 4.3.2
Known to fail:
Last reconfirmed: 2010-04-06 11:36:16


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Sherrill 2008-09-09 12:46:11 UTC
This target successfully built on the trunk as of "4.4.0 20080802 (experimental) [trunk revision 138553]" with results posted here:

http://gcc.gnu.org/ml/gcc-testresults/2008-08/msg00601.html

This is the command line and bug box generated during the build.


/home/joel/work-gnat/svn/b-gcc2-arm/./gcc/xgcc -B/home/joel/work-gnat/svn/b-gcc2-arm/./gcc/ -nostdinc -B/home/joel/work-gnat/svn/b-gcc2-arm/arm-rtems4.9/newlib/ -isystem /home/joel/work-gnat/svn/b-gcc2-arm/arm-rtems4.9/newlib/targ-include -isystem /home/joel/work-gnat/svn/gcc/newlib/libc/include -B/home/joel/work-gnat/svn//install/arm-rtems4.9/bin/ -B/home/joel/work-gnat/svn//install/arm-rtems4.9/lib/ -isystem /home/joel/work-gnat/svn//install/arm-rtems4.9/include -isystem /home/joel/work-gnat/svn//install/arm-rtems4.9/sys-include -c -g -O2 -mthumb  -W -Wall -gnatpg -mthumb  a-nlelfu.ads -o a-nlelfu.o

+===========================GNAT BUG DETECTED==============================+
| 4.4.0 20080908 (experimental) [trunk revision 140126] (arm-unknown-rtems4.9) GCC error:|
| in find_valid_class, at reload.c:700                                     |
| Error detected around a-ngcefu.adb:397                                   |
| 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.



raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:424
Comment 1 Joel Sherrill 2008-12-01 14:39:45 UTC
Still broken:

+===========================GNAT BUG DETECTED==============================+
| 4.4.0 20081126 (experimental) [trunk revision 142228] (arm-unknown-rtems4.10) GCC error:|
| in find_valid_class, at reload.c:700                                     |
| Error detected around a-ngcefu.adb:397                                   |
| 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 2 Ramana Radhakrishnan 2009-09-09 09:12:06 UTC
Joel,

Is this still broken ?

Ramana 
Comment 3 Laurent GUERBY 2009-09-09 09:17:48 UTC
For the record as of trunk rev 151524 the wole Ada RTS builds fine on armel-linux
Comment 4 Steven Bosscher 2010-04-05 12:55:39 UTC
Joel, is this still a problem, or not? If so, please reconfirm the bug and change the bug status back to NEW.
Comment 5 Steven Bosscher 2010-04-05 12:56:52 UTC
*** Bug 40775 has been marked as a duplicate of this bug. ***
Comment 6 Joel Sherrill 2010-04-06 11:36:16 UTC
Reconfirmed.

+===========================GNAT BUG DETECTED==============================+
| 4.5.0 20100402 (experimental) [trunk revision 157942] (arm-unknown-rtems4.10) GCC error:|
| in find_valid_class, at reload.c:704                                     |
| Error detected around a-ngcefu.adb:115:8                                 |
| 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
Comment 7 Eric Botcazou 2010-04-06 21:19:04 UTC
Reclassifying.
Comment 8 Joel Sherrill 2010-04-07 21:55:53 UTC
/users/joel/test-gcc/b-gcc2-arm/./gcc/xgcc -B/users/joel/test-gcc/b-gcc2-arm/./gcc/ -nostdinc -B/users/joel/test-gcc/b-gcc2-arm/arm-rtems4.10/newlib/ -isystem /users/joel/test-gcc/b-gcc2-arm/arm-rtems4.10/newlib/targ-include -isystem /users/joel/test-gcc/gcc-svn/newlib/libc/include -B/users/joel/test-gcc/install-svn/arm-rtems4.10/bin/ -B/users/joel/test-gcc/install-svn/arm-rtems4.10/lib/ -isystem /users/joel/test-gcc/install-svn/arm-rtems4.10/include -isystem /users/joel/test-gcc/install-svn/arm-rtems4.10/sys-include    -c -g -O0  -W -Wall -gnatpg -mthumb  a-nlcefu.ads -o a-nlcefu.o

This gives an ICE at -O2, -O1 and -O0 as shown above.

+===========================GNAT BUG DETECTED==============================+
| 4.6.0 20100407 (experimental) [trunk revision 158082] (arm-unknown-rtems4.10) GCC error:|
| in find_valid_class, at reload.c:704                                     |
| Error detected around a-ngcefu.adb:115:8                                 |
| 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).                   |
+==========================================================================+

If there is anything I can do to help narrow this down, let me know.
Comment 9 Joel Sherrill 2010-04-29 21:03:12 UTC
Still broken.

| 4.6.0 20100428 (experimental) [trunk revision 158844] (arm-unknown-rtems4.10) GCC error:|
| in find_valid_class, at reload.c:704                                     |
| Error detected around a-ngcefu.adb:115:8                                 |
Comment 10 Eric Botcazou 2010-12-01 16:18:14 UTC
*** Bug 46746 has been marked as a duplicate of this bug. ***
Comment 11 Joel Sherrill 2011-01-25 04:12:35 UTC
Still present.

+===========================GNAT BUG DETECTED==============================+
| 4.6.0 20110124 (experimental) [trunk revision 169182] (arm-unknown-rtems4.11) GCC error:|
| in find_valid_class, at reload.c:710                                     |
| Error detected around a-ngcefu.adb:143:8                                 |
| 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 12 Chung-Lin Tang 2011-02-07 16:38:50 UTC
This looks suspiciously like PR47540, which has a submitted (by still uncommitted?) upstream patch.
Comment 13 Jakub Jelinek 2012-03-13 12:44:49 UTC
4.4 branch is being closed, moving to 4.5.4 target.
Comment 14 Jakub Jelinek 2013-04-12 15:15:31 UTC
GCC 4.6.4 has been released and the branch has been closed.
Comment 15 Richard Biener 2014-06-12 13:41:15 UTC
The 4.7 branch is being closed, moving target milestone to 4.8.4.
Comment 16 Jakub Jelinek 2014-12-19 13:31:25 UTC
GCC 4.8.4 has been released.
Comment 17 Joel Sherrill 2015-01-07 22:28:53 UTC
This is fixed on at least the 4.9 branch. I successfully built arm-rtems on that.

Closing.