public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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
@ 2012-09-01  9:16 zsojka at seznam dot cz
  2012-09-01 13:38 ` [Bug tree-optimization/54449] " polacek at redhat dot com
  2012-09-03 10:41 ` rguenth at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: zsojka at seznam dot cz @ 2012-09-01  9:16 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug tree-optimization/54449] [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
  2012-09-01  9:16 [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 zsojka at seznam dot cz
@ 2012-09-01 13:38 ` polacek at redhat dot com
  2012-09-03 10:41 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: polacek at redhat dot com @ 2012-09-01 13:38 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <polacek at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |polacek at redhat dot com

--- Comment #1 from Marek Polacek <polacek at redhat dot com> 2012-09-01 13:37:44 UTC ---
Does not happen anymore with trunk.  This was fixed in
http://gcc.gnu.org/viewcvs?view=revision&revision=190841


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug tree-optimization/54449] [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
  2012-09-01  9:16 [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 zsojka at seznam dot cz
  2012-09-01 13:38 ` [Bug tree-optimization/54449] " polacek at redhat dot com
@ 2012-09-03 10:41 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-03 10:41 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.8.0

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-09-03 10:41:30 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-03 10:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-01  9:16 [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 zsojka at seznam dot cz
2012-09-01 13:38 ` [Bug tree-optimization/54449] " polacek at redhat dot com
2012-09-03 10:41 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).