Bug 92388 - [10 Regression] ICE in insert_regs, at cse.c:1129
Summary: [10 Regression] ICE in insert_regs, at cse.c:1129
Status: RESOLVED DUPLICATE of bug 90275
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 10.0
: P1 normal
Target Milestone: 10.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2019-11-06 07:46 UTC by Martin Liška
Modified: 2020-01-31 15:41 UTC (History)
1 user (show)

See Also:
Host: x86_64-linux-gnu
Target: arm-linux-gnueabi
Build:
Known to work:
Known to fail: 10.0
Last reconfirmed: 2019-11-07 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Liška 2019-11-06 07:46:33 UTC
I see the following ICE:

$ arm-linux-gnueabi-gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/950612-1.c -fno-dce -O3 -c
/home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/950612-1.c:17:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
   17 | f (pc)
      | ^
/home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/950612-1.c: In function ‘f’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/950612-1.c:116:3: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
  116 |   printf("shift = %d\n", shift);
      |   ^~~~~~
/home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/950612-1.c:116:3: warning: incompatible implicit declaration of built-in function ‘printf’
/home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/950612-1.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
  +++ |+#include <stdio.h>
    1 | typedef enum
/home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/950612-1.c:132:7: warning: incompatible implicit declaration of built-in function ‘printf’
  132 |       printf("%08lx.%08lx\n", (long)(((unsigned long long) acc) >> 32) , (long)(((unsigned long long) acc) & 0xffffffff));
      |       ^~~~~~
/home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/950612-1.c:132:7: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
during RTL pass: cse_local
/home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/950612-1.c:134:1: internal compiler error: in insert_regs, at cse.c:1129
  134 | }
      | ^
0x5a4b07 insert_regs
	/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/cse.c:1129
0x10e97a8 cse_insn
	/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/cse.c:5956
0x10ebac4 cse_extended_basic_block
	/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/cse.c:6614
0x10ebac4 cse_main
	/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/cse.c:6793
0x10ec74d rest_of_handle_cse_after_global_opts
	/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/cse.c:7765
0x10ec74d execute
	/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/cse.c:7816
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Comment 1 ktkachov 2019-11-07 11:33:22 UTC
Confirmed on trunk.
Comment 2 Martin Liška 2019-12-09 11:02:26 UTC
Any update on this Kyril?
Comment 3 Jeffrey A. Law 2020-01-31 15:41:46 UTC
Almost certainly another dup of 90275.  We have the same dual-output insn that sets the condition codes + a pseudo and later in the block a nop-set where the source is referenced by the earlier dual-output insn.

*** This bug has been marked as a duplicate of bug 90275 ***