[Bug tree-optimization/46126] [4.6 Regression] Revision 165777 failed to build 254.gap in SPEC CPU 2K

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 22 04:07:00 GMT 2010


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

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2010-10-22 04:07:09 UTC ---
[hjl@gnu-35 delta]$ cat pr46126.c
 typedef struct TypHeader {
     struct TypHeader * * ptr;
     unsigned char type;
 } * TypHandle;
 extern TypHandle (* EvTab[81]) ( TypHandle hd );
 TypHandle FunApplyRel ( TypHandle hdCall )
 {
     TypHandle hdApp;
     TypHandle * ptApp;
     long lp;
     long lc;
     hdApp = ((long)(((TypHandle*)((hdCall)->ptr))[1])&1 ?
(((TypHandle*)((hdCall)->ptr))[1]) : (*
EvTab[(((long)(((TypHandle*)((hdCall)->ptr))[1]) & 1) ? 1 :
((((TypHandle*)((hdCall)->ptr))[1])->type))])((((TypHandle*)((hdCall)->ptr))[1])));
     ptApp = ((TypHandle*)((hdApp)->ptr));
     ptApp[1] = ((TypHandle) (((long)(lp) << 2) + 1));
     ptApp[2] = ((TypHandle) (((long)(lc) << 2) + 1));
 }
[hjl@gnu-35 delta]$ /export/gnu/import/rrs/165777/usr/bin/gcc -S pr46126.c -O3
-funroll-loops -ffast-math
pr46126.c: In function \u2018FunApplyRel\u2019:
pr46126.c:6:12: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[hjl@gnu-35 delta]$



More information about the Gcc-bugs mailing list