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

            Bug ID: 60154
           Summary: ICE: in cgraph_function_node at gcc/cgraph.c:2962
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu

Created attachment 32111
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32111&action=edit
Preprocessed source

dave@mx3210:~/gnu/gcc/objdir$ gdb stage1-gcc/cc1plusGNU gdb (GDB) 7.6.2 (Debian
7.6.2-1)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "hppa-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/dave/gnu/gcc/objdir/stage1-gcc/cc1plus...done.
(gdb) set args -fpreprocessed CMetricMapBuilderICP.ii -quiet -dumpbase
CMetricMapBuilderICP.ii -auxbase-strip CMetricMapBuilderICP.o -O3 -Wall
-Wno-long-long -Wno-write-strings -Wno-variadic-macros -Wpedantic -std=c++11
-version -fPIC -fpreprocessed -o CMetricMapBuilderICP.s
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /home/dave/gnu/gcc/objdir/stage1-gcc/cc1plus -fpreprocessed
CMetricMapBuilderICP.ii -quiet -dumpbase CMetricMapBuilderICP.ii -auxbase-strip
CMetricMapBuilderICP.o -O3 -Wall -Wno-long-long -Wno-write-strings
-Wno-variadic-macros -Wpedantic -std=c++11 -version -fPIC -fpreprocessed -o
CMetricMapBuilderICP.s
Program received signal SIGSEGV, Segmentation fault.
0x0067ac24 in cgraph_function_node (node=0xf4d97a10, availability=0x0)
    at ../../gcc/gcc/cgraph.c:2962
2962          node = node->callees->callee;
(gdb) p node->callees
$5 = (cgraph_edge *) 0x0
(gdb) bt
#0  0x0067ac24 in cgraph_function_node (node=0xf4d97a10, availability=0x0)
    at ../../gcc/gcc/cgraph.c:2962
#1  0x011a290c in self_recursive_p (node=0xf1758398)
    at ../../gcc/gcc/ipa-pure-const.c:1091
#2  0x011a349c in propagate_pure_const ()
    at ../../gcc/gcc/ipa-pure-const.c:1321

Also seen on trunk.

Reply via email to