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 tree-optimization/51039] New: [4.7 Regression] ICE: in estimate_function_body_sizes, at ipa-inline-analysis.c:1977 with -finline-small-functions -fno-ipa-pure-const and passing incompatible function ptr


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

             Bug #: 51039
           Summary: [4.7 Regression] ICE: in estimate_function_body_sizes,
                    at ipa-inline-analysis.c:1977 with
                    -finline-small-functions -fno-ipa-pure-const and
                    passing incompatible function ptr
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz
                CC: rguenth@gcc.gnu.org
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 25758
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25758
the same testcase as for PR51012

The testcase for PR51012 is failing with -fno-ipa-pure-const:
$ gcc -O -finline-small-functions -fno-ipa-pure-const testcase.c 
testcase.c: In function 'foo':
testcase.c:14:1: internal compiler error: in estimate_function_body_sizes, at
ipa-inline-analysis.c:1977
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

(gdb) bt
#0  fancy_abort (file=0x127c400 "/mnt/svn/gcc-trunk/gcc/ipa-inline-analysis.c",
line=1977, function=0x127cc50 "estimate_function_body_sizes")
    at /mnt/svn/gcc-trunk/gcc/diagnostic.c:898
#1  0x0000000000848721 in estimate_function_body_sizes (node=0x7ffff5588900,
early=Unhandled dwarf expression opcode 0xf3
) at /mnt/svn/gcc-trunk/gcc/ipa-inline-analysis.c:1977
#2  compute_inline_parameters (node=0x7ffff5588900, early=Unhandled dwarf
expression opcode 0xf3
) at /mnt/svn/gcc-trunk/gcc/ipa-inline-analysis.c:2129
#3  0x0000000000849b8d in compute_inline_parameters_for_current () at
/mnt/svn/gcc-trunk/gcc/ipa-inline-analysis.c:2147
#4  0x00000000008dd3b8 in execute_one_pass (pass=0x194e7b0) at
/mnt/svn/gcc-trunk/gcc/passes.c:2074
#5  0x00000000008dd725 in execute_pass_list (pass=0x194e7b0) at
/mnt/svn/gcc-trunk/gcc/passes.c:2129
#6  0x00000000008dc954 in do_per_function_toporder (callback=0x8dd710
<execute_pass_list(opt_pass*)>, data=0x17c8b20)
    at /mnt/svn/gcc-trunk/gcc/passes.c:1616
#7  0x00000000008ddba6 in execute_ipa_pass_list (pass=0x17c8c40) at
/mnt/svn/gcc-trunk/gcc/passes.c:2447
#8  0x00000000006959e3 in ipa_passes () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:2033
#9  cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2145
#10 0x000000000069606a in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1327
#11 0x000000000057424b in c_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/c-decl.c:10023
#12 0x00000000009d15c4 in compile_file (argc=15, argv=0x7fffffffdaa8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:581
#13 do_compile (argc=15, argv=0x7fffffffdaa8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1931
#14 toplev_main (argc=15, argv=0x7fffffffdaa8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:2007
#15 0x00007ffff6178d2d in __libc_start_main () from /lib64/libc.so.6
#16 0x0000000000557b39 in _start ()

Tested revisions:
r181174 - crash
r178498 - crash
4.6 r180325 - OK


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