Bug 43589 - segmentation fault after using __attribute__((optimize()))
segmentation fault after using __attribute__((optimize()))
Status: NEW
Product: gcc
Classification: Unclassified
Component: middle-end
4.4.0
: P3 normal
: ---
Assigned To: Not yet assigned to anyone
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-30 04:02 UTC by liangpeng
Modified: 2010-03-30 09:39 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail: 4.4.3 4.5.0
Last reconfirmed: 2010-03-30 09:39:21


Attachments
Test case susan.i (126.77 KB, text/plain)
2010-03-30 04:03 UTC, liangpeng
Details

Note You need to log in before you can comment on or make changes to this bug.
Description liangpeng 2010-03-30 04:02:14 UTC
A segmentation fault(ipa-cp.c ipcp_lattice_changed (old_lat=0x7ffffbf46080, 
new_lat=0x0)) comes up if we:
declare function Mibench > automotive_susan_e > susan.c:susan_edges() with __attribute__((optimize(3))) 
declare function Mibench > automotive_susan_e > susan.c:susan_edges_small() with __attribute__((optimize(1))) 
declare function Mibench > automotive_susan_e > susan.c:susan_corners_quick() with __attribute__((optimize(3))) 

complete command line and compiler output :
$~/ici/install/bin/gcc -lm -O3 -c susan.c
susan.c:2122: internal compiler error: Segmentation fault

System type:
Using built-in specs.
Target: x86_64-unknown-linux-gnu

Configured with: 
../../../gcc-ici/branches/gcc-4.4.0-ici-2.0-adapt/configure
--prefix=/home/lpeng/ici/install --with-mpfr=/home/common/tools/mpfr-2.4.1
--with-gmp=/home/common/tools/gmp-4.3.1
--with-ppl=/home/common/tools/ppl-0.10.2 --with-cloog=/home/common/tools/cloog
--enable-languages=c,fortran
Thread model: posix

Release:
gcc version 4.4.0 (GCC)
Comment 1 liangpeng 2010-03-30 04:03:44 UTC
Created attachment 20256 [details]
Test case susan.i
Comment 2 Richard Biener 2010-03-30 09:39:21 UTC
Confirmed.