------- Comment #5 from aldot at gcc dot gnu dot org  2007-12-02 19:35 -------
Works:
$ cat one.i
extern getline();
$ gcc-4.2 -c -o pr.o one.i one.i -combine -fdump-tree-all
$ gcc-4.3-HEAD -c -o pr.o one.i one.i -combine -fdump-tree-all

4.3 doesn't seem to see the body?

$ cat one.i
extern getline(){}
$ gcc-4.2 -c -o pr.o one.i one.i -combine -fdump-tree-all
$ mv one.i.001t.tu one.i.001t.tu-4.2
$ gcc-4.3-HEAD -c -o pr.o one.i one.i -combine -fdump-tree-all
one.i:1: internal compiler error: in cgraph_expand_function, at
cgraphunit.c:1146
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
$ mv one.i.001t.tu one.i.001t.tu-4.3
$ grep -A5 getline one.i.001t.tu-4.?
one.i.001t.tu-4.2:@2611   identifier_node  strg: getline  lngt: 7       
[EMAIL PROTECTED]   bind_expr        type: @115     body: @2619   
[EMAIL PROTECTED]   tree_list        valu: @51      chan: @129    
[EMAIL PROTECTED]   tree_list        valu: @25      chan: @2620   
[EMAIL PROTECTED]   tree_list        valu: @2435    chan: @2621   
[EMAIL PROTECTED]   identifier_node  strg:
__sync_bool_compare_and_swap_16 
--
one.i.001t.tu-4.3:@2698   identifier_node  strg: getline  lngt: 7       
[EMAIL PROTECTED]   tree_list        valu: @51      chan: @130    
[EMAIL PROTECTED]   tree_list        valu: @25      chan: @2704   
[EMAIL PROTECTED]   tree_list        valu: @2549    chan: @2705   
[EMAIL PROTECTED]   identifier_node  strg: __sync_val_compare_and_swap 
one.i.001t.tu-4.3-                         lngt: 27      


-- 

aldot at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.2 Regression] ICE in     |[4.3 Regression] ICE in
                   |cgraph_expand_function with |cgraph_expand_function with
                   |IMA                         |IMA


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

Reply via email to