[Bug middle-end/63376] [5.0 Regression] ICE: in operator[], at vec.h:736 compiling team.c

2014-10-13 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63376

John David Anglin  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from John David Anglin  ---
Fixed.


[Bug middle-end/63376] [5.0 Regression] ICE: in operator[], at vec.h:736 compiling team.c

2014-10-10 Thread mliska at suse dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63376

Martin Liška  changed:

   What|Removed |Added

 CC||mliska at suse dot cz

--- Comment #6 from Martin Liška  ---
Fixed in r216110.

[Bug middle-end/63376] [5.0 Regression] ICE: in operator[], at vec.h:736 compiling team.c

2014-10-10 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63376

Markus Trippelsdorf  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2014-10-10
 CC||marxin at gcc dot gnu.org,
   ||trippels at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #5 from Markus Trippelsdorf  ---
 void __attribute__ ((constructor)) __attribute__ ((destructor)) fn1 () {}


[Bug middle-end/63376] [5.0 Regression] ICE: in operator[], at vec.h:736 compiling team.c

2014-10-10 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63376

--- Comment #4 from John David Anglin  ---
Bug can be reproduced with x86 cross:

dave@lux0:~/gnu/gcc/objdir$ gcc/xgcc -Bgcc -v
Reading specs from gcc/specs
COLLECT_GCC=gcc/xgcc
COLLECT_LTO_WRAPPER=gcc/lto-wrapper
Target: hppa2.0w-hp-hpux11.11
Configured with: ../gcc/configure --target=hppa2.0w-hp-hpux11.11
--prefix=/home/dave/opt/gnu --with-gnu-as --with-gnu-ld --enable-threads=posix
--disable-nls --disable-lto --without-cloog --without-ppl --disable-libmudflap
--disable-libssp --disable-libstdcxx-pch --enable-shared
--enable-languages=c,c++
--with-sysroot=/home/dave/opt/gnu/hppa2.0w-hp-hpux11.11/root
--with-build-sysroot=/home/dave/opt/gnu/hppa2.0w-hp-hpux11.11/root
Thread model: posix
gcc version 5.0.0 20141010 (experimental) [trunk revision 216098] (GCC)

./gcc/cc1 -fpreprocessed team.i -quiet -dumpbase team.c -auxbase-strip
.libs/team.o -g -O2 -Wall -Werror -version -frandom-seed=fixed-seed -fPIC -o
team.s
dave@lux0:~/gnu/gcc/objdir$ ./gcc/cc1 -fpreprocessed team.i -quiet -dumpbase
team.c -auxbase-strip .libs/team.o -g -O2 -Wall -Werror -version
-frandom-seed=fixed-seed -fPIC -o team.s
GNU C (GCC) version 5.0.0 20141010 (experimental) [trunk revision 216098]
(hppa2.0w-hp-hpux11.11)
compiled by GNU C version 4.8.2, GMP version 5.1.3, MPFR version
3.1.2-p3, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C (GCC) version 5.0.0 20141010 (experimental) [trunk revision 216098]
(hppa2.0w-hp-hpux11.11)
compiled by GNU C version 4.8.2, GMP version 5.1.3, MPFR version
3.1.2-p3, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 5a99bebc29a6c53ba66845410ca575d2
../../../gcc/libgomp/team.c:947:1: internal compiler error: in operator[], at
vec.h:736
0x80ed53e vec::operator[](unsigned int)
../../gcc/gcc/vec.h:736
0x848dfcf vec::operator[](unsigned int)
../../gcc/gcc/vec.h:1072
0x848dfcf evaluate_properties_for_edge
../../gcc/gcc/ipa-inline-analysis.c:903
0x8490e27 do_estimate_edge_size(cgraph_edge*)
../../gcc/gcc/ipa-inline-analysis.c:3736
0x8490fef estimate_edge_size
../../gcc/gcc/ipa-inline.h:288
0x8490fef estimate_edge_growth
../../gcc/gcc/ipa-inline.h:301
0x8490fef do_estimate_growth_1
../../gcc/gcc/ipa-inline-analysis.c:3849
0x8289844 cgraph_node::call_for_symbol_thunks_and_aliases(bool
(*)(cgraph_node*, void*), void*, bool)
../../gcc/gcc/cgraph.c:2120
0x84914e9 do_estimate_growth(cgraph_node*)
../../gcc/gcc/ipa-inline-analysis.c:3863
0x8a01df1 estimate_growth
../../gcc/gcc/ipa-inline.h:275
0x8a01df1 inline_small_functions
../../gcc/gcc/ipa-inline.c:1586
0x8a01df1 ipa_inline
../../gcc/gcc/ipa-inline.c:2175
0x8a01df1 execute
../../gcc/gcc/ipa-inline.c:2535
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.


[Bug middle-end/63376] [5.0 Regression] ICE: in operator[], at vec.h:736 compiling team.c

2014-10-10 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63376

--- Comment #3 from John David Anglin  ---
(gdb) frame 2
#2  0x007eaf1c in
_ZL28evaluate_properties_for_edgeP11cgraph_edgebPjP3vecIP9tree_node7va_heap6vl_ptrES8_PS2_IP21ipa_agg_jump_functionS5_S6_E
(e=0x7afef780,
inline_p=true, clause_ptr=0x7eff0dc0, known_vals_ptr=0x7eff0dc4,
known_binfos_ptr=0x7eff0dc8, known_aggs_ptr=0x7eff0dcc)
at ../../gcc/gcc/ipa-inline-analysis.c:903
903   struct ipa_edge_args *args = IPA_EDGE_REF (e);
(gdb) p e->uid
$5 = 148
(gdb) p *e
$6 = {count = 0, caller = 0x7aefa380, callee = 0x7af860e0, prev_caller = 0x0,
  next_caller = 0x0, prev_callee = 0x0, next_callee = 0x0,
  call_stmt = 0x7aff8048, indirect_info = 0x0, aux = 0x0,
  inline_failed = CIF_FUNCTION_NOT_CONSIDERED, lto_stmt_uid = 0,
  frequency = 1000, uid = 148, indirect_inlining_edge = 0,
  indirect_unknown_callee = 0, call_stmt_cannot_inline_p = 0,
  can_throw_external = 0, speculative = 0, in_polymorphic_cdtor = 0}
(gdb) p *ipa_edge_args_vector
$7 = {m_vecpfx = {m_alloc = 255, m_using_auto_storage = 0, m_num = 148},
  m_vecdata = {{jump_functions = 0x0, polymorphic_call_contexts = 0x0}}}

Size of vec is one too small.


[Bug middle-end/63376] [5.0 Regression] ICE: in operator[], at vec.h:736 compiling team.c

2014-09-27 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63376

--- Comment #2 from John David Anglin  ---
This was bug was introduced by r214422:

Author: marxin
Date: Mon Aug 25 13:01:47 2014
New Revision: 214422

URL: https://gcc.gnu.org/viewcvs?rev=214422&root=gcc&view=rev
Log:
IPA C++ refactoring 4/N

* cgraph.h (symtab_node):
(bool needed_p (void)): created from decide_is_symbol_needed
(bool referred_to_p (void)): created from referred_to_p
(static cgraph_node *get_for_asmname (tree asmname)): created from
symtab_node_for_asm



[Bug middle-end/63376] [5.0 Regression] ICE: in operator[], at vec.h:736 compiling team.c

2014-09-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63376

Richard Biener  changed:

   What|Removed |Added

 CC||hubicka at gcc dot gnu.org
   Target Milestone|--- |5.0


[Bug middle-end/63376] [5.0 Regression] ICE: in operator[], at vec.h:736 compiling team.c

2014-09-25 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63376

--- Comment #1 from John David Anglin  ---
Breakpoint 2, _Z11fancy_abortPKciS0_ (
file=0x13180d0  "../../gcc/gcc/vec.h", line=736, 
function=0x13182d8 ::operator[](unsigned int)::__FUNCTION__> "operator[]") at
../../gcc/gcc/diagnostic.c:1223
1223  internal_error ("in %s, at %s:%d", function, trim_filename (file),
line);
(gdb) bt
#0  _Z11fancy_abortPKciS0_ (
file=0x13180d0  "../../gcc/gcc/vec.h", line=736, 
function=0x13182d8 ::operator[](unsigned int)::__FUNCTION__> "operator[]") at
../../gcc/gcc/diagnostic.c:1223
#1  0x0073d820 in _ZN3vecI13ipa_edge_args5va_gc8vl_embedEixEj (
this=0x7afd7c00, ix=148) at ../../gcc/gcc/vec.h:736
#2  0x007e2254 in
_ZL28evaluate_properties_for_edgeP11cgraph_edgebPjP3vecIP9tree_node7va_heap6vl_ptrES8_PS2_IP21ipa_agg_jump_functionS5_S6_E
(e=0x7afef780, 
inline_p=true, clause_ptr=0x7eff0dc0, known_vals_ptr=0x7eff0dc4, 
known_binfos_ptr=0x7eff0dc8, known_aggs_ptr=0x7eff0dcc)
at ../../gcc/gcc/ipa-inline-analysis.c:903
#3  0x007ede7c in _Z21do_estimate_edge_sizeP11cgraph_edge (edge=0x7afef780)
at ../../gcc/gcc/ipa-inline-analysis.c:3736
#4  0x007de220 in _ZL18estimate_edge_sizeP11cgraph_edge (edge=0x7afef780)
at ../../gcc/gcc/ipa-inline.h:288
#5  0x007de2c8 in _ZL20estimate_edge_growthP11cgraph_edge (edge=0x7afef780)
at ../../gcc/gcc/ipa-inline.h:301
#6  0x007ee3d0 in _ZL20do_estimate_growth_1P11cgraph_nodePv (node=0x7af860e0, 
data=0x7eff0bfc) at ../../gcc/gcc/ipa-inline-analysis.c:3849
#7  0x0036d828 in
_ZN11cgraph_node34call_for_symbol_thunks_and_aliasesEPFbPS_PvES1_b
(this=0x7af860e0, 
callback=@0x40298c72: 0x7ee300 <_ZL20do_estimate_growth_1P11cgraph_nodePv>,
data=0x7eff0bfc, include_overwritable=true) at ../../gcc/gcc/cgraph.c:2107
#8  0x007ee4dc in _Z18do_estimate_growthP11cgraph_node (node=0x7af860e0)
at ../../gcc/gcc/ipa-inline-analysis.c:3863
#9  0x007c7170 in _ZL15estimate_growthP11cgraph_node (node=0x7af860e0)
at ../../gcc/gcc/ipa-inline.h:275
#10 0x007ccda8 in _ZL22inline_small_functionsv ()
at ../../gcc/gcc/ipa-inline.c:1593
#11 0x007cf2f8 in _ZL10ipa_inlinev () at ../../gcc/gcc/ipa-inline.c:2182
#12 0x007d05fc in _ZN12_GLOBAL__N_115pass_ipa_inline7executeEP8function (
this=0x403203a0) at ../../gcc/gcc/ipa-inline.c:2542
#13 0x00a0333c in _Z16execute_one_passP8opt_pass (pass=0x403203a0)
at ../../gcc/gcc/passes.c:2151
#14 0x00a04858 in _Z21execute_ipa_pass_listP8opt_pass (pass=0x403203a0)
at ../../gcc/gcc/passes.c:2541
#15 0x003806d4 in _ZL10ipa_passesv () at ../../gcc/gcc/cgraphunit.c:2050
#16 0x00380b08 in _ZN12symbol_table7compileEv (this=0x7ae2b000)
at ../../gcc/gcc/cgraphunit.c:2130
#17 0x00380fc4 in _ZN12symbol_table25finalize_compilation_unitEv (
this=0x7ae2b000) at ../../gcc/gcc/cgraphunit.c:2283
#18 0x00092d8c in _Z27c_write_global_declarationsv ()
at ../../gcc/gcc/c/c-decl.c:10431
#19 0x00babb14 in _ZL12compile_filev () at ../../gcc/gcc/toplev.c:565
#20 0x00baf818 in _ZL10do_compilev () at ../../gcc/gcc/toplev.c:1946
#21 0x00bafb28 in toplev_main(int, char**) () at ../../gcc/gcc/toplev.c:2022
#22 0x01195ae4 in main (argc=17, argv=0x7eff0544) at ../../gcc/gcc/main.c:36