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/54449] New: [4.8 Regression] ICE: vector VEC(T,base) index domain error, in will_be_nonconstant_expr_predicate at ipa-inline-analysis.c:1853 with -O -fno-guess-branch-probability


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

             Bug #: 54449
           Summary: [4.8 Regression] ICE: vector VEC(T,base) index domain
                    error, in will_be_nonconstant_expr_predicate at
                    ipa-inline-analysis.c:1853 with -O
                    -fno-guess-branch-probability
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 28116
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28116
reduced testcase (from gcc.dg/torture/pr46183.c)

Compiler output:
$ gcc -O -fno-guess-branch-probability testcase.c
testcase.c: In function 'foo':
testcase.c:16:1: internal compiler error: vector VEC(T,base) index domain
error, in will_be_nonconstant_expr_predicate at ipa-inline-analysis.c:1853
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

(gdb) bt
#0  0x0000000001131fc0 in internal_error(char const*, ...) ()
#1  0x000000000112fab9 in vec_assert_fail(char const*, char const*, char
const*, unsigned int, char const*) ()
#2  0x0000000000865408 in will_be_nonconstant_expr_predicate(ipa_node_params*,
inline_summary*, tree_node*, vec_t<predicate>*) ()
    at /mnt/svn/gcc-trunk/gcc/vec.h:371
#3  0x000000000086b4de in estimate_function_body_sizes(cgraph_node*, bool) ()
at /mnt/svn/gcc-trunk/gcc/ipa-inline-analysis.c:2293
#4  0x000000000086ba0d in compute_inline_parameters(cgraph_node*, bool) () at
/mnt/svn/gcc-trunk/gcc/ipa-inline-analysis.c:2393
#5  0x000000000086bcfd in inline_analyze_function(cgraph_node*) () at
/mnt/svn/gcc-trunk/gcc/ipa-inline-analysis.c:3315
#6  0x000000000086bde5 in inline_generate_summary() () at
/mnt/svn/gcc-trunk/gcc/ipa-inline-analysis.c:3346
#7  0x00000000009005b6 in execute_ipa_summary_passes(ipa_opt_pass_d*) () at
/mnt/svn/gcc-trunk/gcc/passes.c:1966
#8  0x00000000006c0031 in compile() () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1865
#9  0x00000000006c0225 in finalize_compilation_unit() () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:2089
#10 0x00000000005a1dc0 in c_write_global_declarations() () at
/mnt/svn/gcc-trunk/gcc/c/c-decl.c:10116
#11 0x00000000009e8475 in compile_file() () at
/mnt/svn/gcc-trunk/gcc/toplev.c:560
#12 0x00000000009ea03a in toplev_main(int, char**) () at
/mnt/svn/gcc-trunk/gcc/toplev.c:1863
#13 0x00007ffff6e784bd in __libc_start_main () from /lib64/libc.so.6
#14 0x0000000000584d01 in _start ()

Tested revisions:
r190830 - crash
r190798 - crash
r190521 - OK


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