[Bug ipa/92242] [10 regression] LTO ICE in ipa_get_cs_argument_count ipa-prop.h:598

2019-10-29 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92242

Rainer Orth  changed:

   What|Removed |Added

 CC||ro at gcc dot gnu.org

--- Comment #6 from Rainer Orth  ---
*** Bug 92251 has been marked as a duplicate of this bug. ***

[Bug ipa/92242] [10 regression] LTO ICE in ipa_get_cs_argument_count ipa-prop.h:598

2019-10-28 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92242

Jan Hubicka  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Jan Hubicka  ---
Thanks for confirmation (and testcase). Sadly I am not sure how to put it into
testsuite but given that other tests also broke I hope this patch is tested
sufficiently.

Honza

[Bug ipa/92242] [10 regression] LTO ICE in ipa_get_cs_argument_count ipa-prop.h:598

2019-10-28 Thread dimhen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92242

--- Comment #4 from Dmitry G. Dyachenko  ---
r277504 PASS for me.
Thank you

[Bug ipa/92242] [10 regression] LTO ICE in ipa_get_cs_argument_count ipa-prop.h:598

2019-10-28 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92242

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |10.0

[Bug ipa/92242] [10 regression] LTO ICE in ipa_get_cs_argument_count ipa-prop.h:598

2019-10-28 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92242

--- Comment #3 from Jan Hubicka  ---
Author: hubicka
Date: Mon Oct 28 08:19:56 2019
New Revision: 277504

URL: https://gcc.gnu.org/viewcvs?rev=277504=gcc=rev
Log:

PR ipa/92242
* ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
for missing EDGE_REF
* ipa-prop.c (update_jump_functions_after_inlining): Likewise.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-fnsummary.c
trunk/gcc/ipa-prop.c

[Bug ipa/92242] [10 regression] LTO ICE in ipa_get_cs_argument_count ipa-prop.h:598

2019-10-27 Thread dimhen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92242

--- Comment #2 from Dmitry G. Dyachenko  ---
correctly reduced testcase

$ cat x.i
unsigned foo(int a) {
  if (a)
return 0;
  return 1;
}

$ cat y.i
unsigned foo(int);
int bar() {
  foo(0);
  return 0;
}

$ cat libso.ver
{ global:
bar;
local: *; };

$ gcc -O2 -flto -Wall -c x.i y.i

$ gcc -flto -fPIC -DPIC -shared x.o y.o -Wl,-version-script -Wl,./libso.ver -o
libso.so
during IPA pass: inline
lto1: internal compiler error: Segmentation fault
0xdd4bdf crash_signal
/home/dimhen/src/gcc_current/gcc/toplev.c:326
0x64e28d ipa_get_cs_argument_count
/home/dimhen/src/gcc_current/gcc/ipa-prop.h:598
0x64e28d ipa_merge_fn_summary_after_inlining(cgraph_edge*)
/home/dimhen/src/gcc_current/gcc/ipa-fnsummary.c:3318
0x16f66db inline_call(cgraph_edge*, bool, vec*,
int*, bool, bool*)
/home/dimhen/src/gcc_current/gcc/ipa-inline-transform.c:484
0x16f0682 inline_small_functions
/home/dimhen/src/gcc_current/gcc/ipa-inline.c:2151
0x16f0682 ipa_inline
/home/dimhen/src/gcc_current/gcc/ipa-inline.c:2615
0x16f0682 execute
/home/dimhen/src/gcc_current/gcc/ipa-inline.c:3023
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.
$ gcc -flto -fPIC -DPIC -shared x.o y.o -Wl,-version-script -Wl,./libso.ver -o
libso.so
during IPA pass: inline
lto1: internal compiler error: Segmentation fault
0xdd4bdf crash_signal
/home/dimhen/src/gcc_current/gcc/toplev.c:326
0x64e28d ipa_get_cs_argument_count
/home/dimhen/src/gcc_current/gcc/ipa-prop.h:598
0x64e28d ipa_merge_fn_summary_after_inlining(cgraph_edge*)
/home/dimhen/src/gcc_current/gcc/ipa-fnsummary.c:3318
0x16f66db inline_call(cgraph_edge*, bool, vec*,
int*, bool, bool*)
/home/dimhen/src/gcc_current/gcc/ipa-inline-transform.c:484
0x16f0682 inline_small_functions
/home/dimhen/src/gcc_current/gcc/ipa-inline.c:2151
0x16f0682 ipa_inline
/home/dimhen/src/gcc_current/gcc/ipa-inline.c:2615
0x16f0682 execute
/home/dimhen/src/gcc_current/gcc/ipa-inline.c:3023
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.

[Bug ipa/92242] [10 regression] LTO ICE in ipa_get_cs_argument_count ipa-prop.h:598

2019-10-27 Thread dimhen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92242

--- Comment #1 from Dmitry G. Dyachenko  ---
over reduced but still ICE

$ cat x.i
unsigned foo(int a)
{
  if (a)
return 0;
}

$ cat y.i
unsigned foo();
void bar() { foo(); }

$ cat libso.ver 
{ global:
bar;
local: *; };


$ gcc -O2 -flto -c x.i y.i
$ gcc -flto -fPIC -DPIC -shared x.o y.o -Wl,-version-script -Wl,./libso.ver -o
libso.so
during IPA pass: inline
lto1: internal compiler error: Segmentation fault
0xdd4bdf crash_signal
/home/dimhen/src/gcc_current/gcc/toplev.c:326
0x64e28d ipa_get_cs_argument_count
/home/dimhen/src/gcc_current/gcc/ipa-prop.h:598
0x64e28d ipa_merge_fn_summary_after_inlining(cgraph_edge*)
/home/dimhen/src/gcc_current/gcc/ipa-fnsummary.c:3318
0x16f66db inline_call(cgraph_edge*, bool, vec*,
int*, bool, bool*)
/home/dimhen/src/gcc_current/gcc/ipa-inline-transform.c:484
0x16f0682 inline_small_functions
/home/dimhen/src/gcc_current/gcc/ipa-inline.c:2151
0x16f0682 ipa_inline
/home/dimhen/src/gcc_current/gcc/ipa-inline.c:2615
0x16f0682 execute
/home/dimhen/src/gcc_current/gcc/ipa-inline.c:3023
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/usr/local/binutils_current/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status