public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/112279] New: ICE building sqlite-3.43.2 on s390 (internal compiler error: in extract_insn)
@ 2023-10-29 20:35 sjames at gcc dot gnu.org
  2023-10-29 20:35 ` [Bug target/112279] " sjames at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-10-29 20:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112279

            Bug ID: 112279
           Summary: ICE building sqlite-3.43.2 on s390 (internal compiler
                    error: in extract_insn)
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

Created attachment 56470
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56470&action=edit
sqlite-shell.i.xz

Hit this when building sqlite-3.43.2 on s390.

```
# s390-ibm-linux-gnu-gcc -c sqlite3-shell.i -O3 -march=native
shell.c: In function ‘display_stats.constprop.isra’:
shell.c:19108:1: error: unrecognizable insn:
(insn 509 508 510 28 (set (reg:SI 273)
        (plus:SI (reg/f:SI 269)
            (const_int 1 [0x1]))) "shell.c":884:10 discrim 1 -1
     (nil))
during RTL pass: vregs
shell.c:19108:1: internal compiler error: in extract_insn, at recog.cc:2791
0x5765f971 internal_error(char const*, ...)
        ???:0
0x55b1dad3 fancy_abort(char const*, int, char const*)
        ???:0
0x55afd665 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ???:0
0x55afd721 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ???:0
0x5640a593 extract_insn(rtx_insn*)
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

```
# for t in param target; do cmd="gcc -Q -O1 --help=$t"; diff -U0 <(LANG=C $cmd)
<(LANG=C $cmd -march=native); done
--- /dev/fd/63  2023-10-29 16:33:05.114542515 -0400
+++ /dev/fd/62  2023-10-29 16:33:05.114542515 -0400
@@ -122,2 +122,2 @@
-  --param=max-completely-peel-times=   16
-  --param=max-completely-peeled-insns=         200
+  --param=max-completely-peel-times=   64
+  --param=max-completely-peeled-insns=         2000
@@ -188,2 +188,2 @@
-  --param=max-unroll-times=            8
-  --param=max-unrolled-insns=          200
+  --param=max-unroll-times=            32
+  --param=max-unrolled-insns=          100
@@ -286 +286 @@
-  --param=vect-partial-vector-usage=<0,2>      0
+  --param=vect-partial-vector-usage=<0,2>      1
--- /dev/fd/63  2023-10-29 16:33:05.114542515 -0400
+++ /dev/fd/62  2023-10-29 16:33:05.114542515 -0400
@@ -5 +5 @@
-  -march=                              arch5
+  -march=                              arch13
@@ -10 +10 @@
-  -mesa                                [enabled]
+  -mesa                                [disabled]
@@ -17 +17 @@
-  -mhard-dfp                           [disabled]
+  -mhard-dfp                           [enabled]
@@ -20 +20 @@
-  -mhtm                                [disabled]
+  -mhtm                                [enabled]
@@ -41 +41 @@
-  -mtune=                              arch5
+  -mtune=                              arch13
@@ -45 +45 @@
-  -mvx                                 [disabled]
+  -mvx                                 [enabled]
@@ -49 +49 @@
-  -mzarch                              [disabled]
+  -mzarch                              [enabled]
```

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

* [Bug target/112279] ICE building sqlite-3.43.2 on s390 (internal compiler error: in extract_insn)
  2023-10-29 20:35 [Bug target/112279] New: ICE building sqlite-3.43.2 on s390 (internal compiler error: in extract_insn) sjames at gcc dot gnu.org
@ 2023-10-29 20:35 ` sjames at gcc dot gnu.org
  2023-10-29 20:37 ` sjames at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-10-29 20:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112279

--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
```
# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/s390-ibm-linux-gnu/14/lto-wrapper
Target: s390-ibm-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-14.0.0_pre20231022-r1/work/gcc-14-20231022/configure
--host=s390-ibm-linux-gnu --build=s390-ibm-linux-gnu --prefix=/usr
--bindir=/usr/s390-ibm-linux-gnu/gcc-bin/14
--includedir=/usr/lib/gcc/s390-ibm-linux-gnu/14/include
--datadir=/usr/share/gcc-data/s390-ibm-linux-gnu/14
--mandir=/usr/share/gcc-data/s390-ibm-linux-gnu/14/man
--infodir=/usr/share/gcc-data/s390-ibm-linux-gnu/14/info
--with-gxx-include-dir=/usr/lib/gcc/s390-ibm-linux-gnu/14/include/g++-v14
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/s390-ibm-linux-gnu/14/python
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--disable-libunwind-exceptions --enable-checking=yes,extra,rtl
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo
14.0.0_pre20231022-r1 p7' --with-gcc-major-version-only --enable-libstdcxx-time
--enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --disable-multilib
--disable-fixed-point --enable-libgomp --disable-libssp --disable-libada
--disable-cet --disable-systemtap --disable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --without-zstd --without-isl
--disable-libsanitizer --enable-default-pie --enable-host-pie
--disable-host-bind-now --enable-default-ssp
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.0.0 20231022 (experimental) (Gentoo 14.0.0_pre20231022-r1 p7)
```

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

* [Bug target/112279] ICE building sqlite-3.43.2 on s390 (internal compiler error: in extract_insn)
  2023-10-29 20:35 [Bug target/112279] New: ICE building sqlite-3.43.2 on s390 (internal compiler error: in extract_insn) sjames at gcc dot gnu.org
  2023-10-29 20:35 ` [Bug target/112279] " sjames at gcc dot gnu.org
@ 2023-10-29 20:37 ` sjames at gcc dot gnu.org
  2023-10-29 21:37 ` sjames at gcc dot gnu.org
  2023-10-29 21:56 ` sjames at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-10-29 20:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112279

--- Comment #2 from Sam James <sjames at gcc dot gnu.org> ---
getting rid of -march=native: s390-ibm-linux-gnu-gcc -c sqlite3-shell.i -O3
-march=arch13 -mzarch ICEs for me

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

* [Bug target/112279] ICE building sqlite-3.43.2 on s390 (internal compiler error: in extract_insn)
  2023-10-29 20:35 [Bug target/112279] New: ICE building sqlite-3.43.2 on s390 (internal compiler error: in extract_insn) sjames at gcc dot gnu.org
  2023-10-29 20:35 ` [Bug target/112279] " sjames at gcc dot gnu.org
  2023-10-29 20:37 ` sjames at gcc dot gnu.org
@ 2023-10-29 21:37 ` sjames at gcc dot gnu.org
  2023-10-29 21:56 ` sjames at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-10-29 21:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112279

--- Comment #3 from Sam James <sjames at gcc dot gnu.org> ---
I can hit this with both a 13 cross compiler and 14 native.

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

* [Bug target/112279] ICE building sqlite-3.43.2 on s390 (internal compiler error: in extract_insn)
  2023-10-29 20:35 [Bug target/112279] New: ICE building sqlite-3.43.2 on s390 (internal compiler error: in extract_insn) sjames at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2023-10-29 21:37 ` sjames at gcc dot gnu.org
@ 2023-10-29 21:56 ` sjames at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-10-29 21:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112279

--- Comment #4 from Sam James <sjames at gcc dot gnu.org> ---
Minimised.

```
$ s390-ibm-linux-gnu-gcc -c sqlite-shell.i -O3 -march=arch13 -mzarch -c
sqlite-shell.i
sqlite-shell.i: In function 'shellAddSchemaName':
sqlite-shell.i:7:1: error: unrecognizable insn:
    7 | }
      | ^
(insn 7 6 8 2 (set (reg:SI 65)
        (plus:SI (reg/f:SI 61)
            (const_int 1 [0x1]))) "sqlite-shell.i":4:10 -1
     (nil))
during RTL pass: vregs
sqlite-shell.i:7:1: internal compiler error: in extract_insn, at recog.cc:2791
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://bugs.gentoo.org/> for instructions.
sqlite-shell.i: In function 'shellAddSchemaName':
sqlite-shell.i:7:1: error: unrecognizable insn:
    7 | }
      | ^
(insn 7 6 8 2 (set (reg:SI 65)
        (plus:SI (reg/f:SI 61)
            (const_int 1 [0x1]))) "sqlite-shell.i":4:10 -1
     (nil))
during RTL pass: vregs
sqlite-shell.i:7:1: internal compiler error: in extract_insn, at recog.cc:2791
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://bugs.gentoo.org/> for instructions.
```

```
$ cat sqlite-shell.i
char *shellAddSchemaName___trans_tmp_1;
void shellAddSchemaName() {
  char *z2 = "TABLE";
  while (*z2)
    z2++;
  shellAddSchemaName___trans_tmp_1 = z2;
}
```

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

end of thread, other threads:[~2023-10-29 21:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-29 20:35 [Bug target/112279] New: ICE building sqlite-3.43.2 on s390 (internal compiler error: in extract_insn) sjames at gcc dot gnu.org
2023-10-29 20:35 ` [Bug target/112279] " sjames at gcc dot gnu.org
2023-10-29 20:37 ` sjames at gcc dot gnu.org
2023-10-29 21:37 ` sjames at gcc dot gnu.org
2023-10-29 21:56 ` sjames 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).