This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/41150] New: segmentation fault after using __attribute__((optimize()))


Bug 1: 
A segmentation fault(rhs_regno (x=0x0) rtl.h:1005) will come
up if we: delcare function Mibench > automotive_susan_e >
susan.c:susan_edges_small() with __attribute__((optimize(3))) 

complete command line and compiler output :
$~/ici/install/bin/gcc -lm -O0 -c susan.c                                      
susan.c: In function ¡®susan_edges_small¡¯:
susan.c:1426: internal compiler error: Segmentation fault

Bug 2:
A segmentation fault(ipa-cp.c ipcp_lattice_changed (old_lat=0x7ffffbf46080, 
new_lat=0x0)) will come 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)


-- 
           Summary: segmentation fault after using
                    __attribute__((optimize()))
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ictlpeng at gmail dot com


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]