Bug 48364 - [4.7 regression] assertion failure in IRA
Summary: [4.7 regression] assertion failure in IRA
Status: RESOLVED DUPLICATE of bug 48381
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 4.7.0
: P3 major
Target Milestone: 4.7.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2011-03-30 12:38 UTC by Eric Botcazou
Modified: 2011-03-31 20:00 UTC (History)
1 user (show)

See Also:
Host: i586-*-*
Target: i586-*-*
Build: i586-*-*
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Reduced testcase for x86 (521 bytes, text/plain)
2011-03-30 14:05 UTC, Eric Botcazou
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Botcazou 2011-03-30 12:38:58 UTC
Bootstrap with Ada enabled fails on i586:

eric@atlantis:~/build/gcc/native32/gcc/ada/tools> ../../xgcc -c -I./ -I../rts -I. -I/home/eric/svn/gcc/gcc/ada -B../../ -g -O2 -gnatpg -gnata -I- /home/eric/svn/gcc/gcc/ada/clean.adb
bad allocation for 512 and 412
+===========================GNAT BUG DETECTED==============================+
| 4.7.0 20110330 (experimental) [trunk revision 171716] (i586-suse-linux-gnu) GCC error:|
| in check_allocation, at ira.c:2094                                       |
| Error detected around /home/eric/svn/gcc/gcc/ada/clean.adb:529:8         |

I'm going to try and reduce the problem.
Comment 1 Eric Botcazou 2011-03-30 14:05:06 UTC
Created attachment 23820 [details]
Reduced testcase for x86

To be compiled in the build directory with:
  gcc/gnat1 p.adb -O -gnatp -mtune=pentium -I gcc/ada/rts -I $(srcdir)/ada
Comment 2 Eric Botcazou 2011-03-31 20:00:56 UTC
Fixed.

*** This bug has been marked as a duplicate of bug 48381 ***