public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/112617] New: [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839)
@ 2023-11-19  8:55 sjames at gcc dot gnu.org
  2023-11-19  8:58 ` [Bug target/112617] " sjames at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-11-19  8:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112617
           Summary: [14 regression] ICE when building systemd on HPPA
                    (internal compiler error: in find_reloads, at
                    reload.cc:3839)
           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
                CC: danglin at gcc dot gnu.org
  Target Milestone: ---

Created attachment 56638
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56638&action=edit
btrfs-util.c.i

```
FAILED: src/shared/libsystemd-shared-254.a.p/btrfs-util.c.o
hppa2.0-unknown-linux-gnu-gcc -Isrc/shared/libsystemd-shared-254.a.p
-Isrc/shared -I../systemd-stable-254.6/src/shared -Isrc/basic
-I../systemd-stable-254.6/src/basic -Isrc/fundamental
-I../systemd-stable-254.6/src/fundamental -Isrc/systemd
-I../systemd-stable-254.6/src/systemd -I. -I../systemd-stable-254.6
-I../systemd-stable-254.6/src/libsystemd/sd-bus
-I../systemd-stable-254.6/src/libsystemd/sd-device
-I../systemd-stable-254.6/src/libsystemd/sd-event
-I../systemd-stable-254.6/src/libsystemd/sd-hwdb
-I../systemd-stable-254.6/src/libsystemd/sd-id128
-I../systemd-stable-254.6/src/libsystemd/sd-journal
-I../systemd-stable-254.6/src/libsystemd/sd-netlink
-I../systemd-stable-254.6/src/libsystemd/sd-network
-I../systemd-stable-254.6/src/libsystemd/sd-resolve -I/usr/include/blkid
-I/usr/include/libmount -I/usr/include/security -fdiagnostics-color=always
-D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11
-Wno-missing-field-initializers -Wno-unused-parameter -Warray-bounds
-Warray-bounds=2 -Wdate-time -Wendif-labels -Werror=format=2
-Werror=format-signedness -Werror=implicit-function-declaration
-Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion
-Werror=missing-declarations -Werror=missing-prototy
pes -Werror=overflow -Werror=override-init -Werror=return-type
-Werror=shift-count-overflow -Werror=shift-overflow=2
-Werror=strict-flex-arrays -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5
-Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn
-Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls
-Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn
-Wunused-function -Wwrite-strings -Wzero-length-bounds
-fdiagnostics-show-option -fno-common -fstack-protector
-fstack-protector-strong -fstrict-flex-arrays --param=ssp-buffer-size=4
-Wno-maybe-uninitialized -Wno-unused-result -Werror=shadow -O2 -pipe -march=2.0
-fdiagnostics-color=always -frecord-gcc-switches -fPIC -fno-strict-aliasing
-fstrict-flex-arrays=1 -fvisibility=hidden -ffunction-sections -fdata-sections
-fno-omit-frame-pointer -include config.h -pthread -fvisibility=default -MD -MQ
src/shared/libsystemd-shared-254.a.p/btrfs-util.c.o -MF
src/shared/libsystemd-shared-254.a.p/btrfs-util.c.o.d -o
src/shared/libsystemd-shared-254.a.p/btrfs-util.c.o -c
../systemd-stable-254.6/src/shared/btrfs-util.c
../systemd-stable-254.6/src/shared/btrfs-util.c: In function
‘subvol_snapshot_children’:
../systemd-stable-254.6/src/shared/btrfs-util.c:1526:1: error: unable to
generate reloads for:
 1526 | }
      | ^
(jump_insn 593 1256 594 59 (parallel [
            (set (pc)
                (if_then_else (ge (reg:SI 28 %r28 [649])
                        (const_int 0 [0]))
                    (label_ref 601)
                    (pc)))
            (set (reg/v:SI 148 [ old_child_fd ])
                (reg:SI 28 %r28 [649]))
        ]) "../systemd-stable-254.6/src/shared/btrfs-util.c":1460:28 234
{*pa.md:9555}
     (expr_list:REG_DEAD (reg:SI 28 %r28 [649])
        (int_list:REG_BR_PROB 1052266988 (nil)))
 -> 601)
during RTL pass: reload
../systemd-stable-254.6/src/shared/btrfs-util.c:1526:1: internal compiler
error: in find_reloads, at reload.cc:3839
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://bugs.gentoo.org/> for instructions.
```

```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/hppa2.0-unknown-linux-gnu/14/lto-wrapper
Target: hppa2.0-unknown-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/configure
--host=hppa2.0-unknown-linux-gnu --build=hppa2.0-unknown-linux-gnu
--prefix=/usr --bindir=/usr/hppa2.0-unknown-linux-gnu/gcc-bin/14
--includedir=/usr/lib/gcc/hppa2.0-unknown-linux-gnu/14/include
--datadir=/usr/share/gcc-data/hppa2.0-unknown-linux-gnu/14
--mandir=/usr/share/gcc-data/hppa2.0-unknown-linux-gnu/14/man
--infodir=/usr/share/gcc-data/hppa2.0-unknown-linux-gnu/14/info
--with-gxx-include-dir=/usr/lib/gcc/hppa2.0-unknown-linux-gnu/14/include/g++-v14
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/hppa2.0-unknown-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 Hardened
14.0.0 p, commit 35bb529f420ff5863fdae51049e6935ab927ff3d'
--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 --disable-default-ssp
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.0.0 20231118 (experimental)
841008d3966c0fe7a80ec10703a50fbdab7620ac (Gentoo Hardened 14.0.0 p, commit
35bb529f420ff5863fdae51049e6935ab927ff3d)
```

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

* [Bug target/112617] [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839)
  2023-11-19  8:55 [Bug target/112617] New: [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839) sjames at gcc dot gnu.org
@ 2023-11-19  8:58 ` sjames at gcc dot gnu.org
  2023-11-19  9:10 ` sjames at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-11-19  8:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
'gcc -c btrfs-util.c.i -O1 -fno-omit-frame-pointer' is enough for me to hit it.

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

* [Bug target/112617] [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839)
  2023-11-19  8:55 [Bug target/112617] New: [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839) sjames at gcc dot gnu.org
  2023-11-19  8:58 ` [Bug target/112617] " sjames at gcc dot gnu.org
@ 2023-11-19  9:10 ` sjames at gcc dot gnu.org
  2023-11-19 10:17 ` sjames at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-11-19  9:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Sam James <sjames at gcc dot gnu.org> ---
Reducing now. I won't bisect it proactively unless someone asks, given I assume
it's r14-5538-gd2934eb6ae92471484469d8ddd039eb34ef400b1.

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

* [Bug target/112617] [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839)
  2023-11-19  8:55 [Bug target/112617] New: [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839) sjames at gcc dot gnu.org
  2023-11-19  8:58 ` [Bug target/112617] " sjames at gcc dot gnu.org
  2023-11-19  9:10 ` sjames at gcc dot gnu.org
@ 2023-11-19 10:17 ` sjames at gcc dot gnu.org
  2023-11-19 17:32 ` danglin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-11-19 10:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Sam James <sjames at gcc dot gnu.org> ---
Created attachment 56639
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56639&action=edit
reduced.i

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

* [Bug target/112617] [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839)
  2023-11-19  8:55 [Bug target/112617] New: [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839) sjames at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2023-11-19 10:17 ` sjames at gcc dot gnu.org
@ 2023-11-19 17:32 ` danglin at gcc dot gnu.org
  2023-11-20  9:56 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: danglin at gcc dot gnu.org @ 2023-11-19 17:32 UTC (permalink / raw)
  To: gcc-bugs

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

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2023-11-19
             Status|UNCONFIRMED                 |NEW

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

* [Bug target/112617] [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839)
  2023-11-19  8:55 [Bug target/112617] New: [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839) sjames at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2023-11-19 17:32 ` danglin at gcc dot gnu.org
@ 2023-11-20  9:56 ` rguenth at gcc dot gnu.org
  2023-11-22 19:48 ` cvs-commit at gcc dot gnu.org
  2023-11-22 20:28 ` danglin at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-11-20  9:56 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0

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

* [Bug target/112617] [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839)
  2023-11-19  8:55 [Bug target/112617] New: [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839) sjames at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2023-11-20  9:56 ` rguenth at gcc dot gnu.org
@ 2023-11-22 19:48 ` cvs-commit at gcc dot gnu.org
  2023-11-22 20:28 ` danglin at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-11-22 19:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by John David Anglin <danglin@gcc.gnu.org>:

https://gcc.gnu.org/g:a89224f819381b77657145fdd8b1d997b989fdc0

commit r14-5764-ga89224f819381b77657145fdd8b1d997b989fdc0
Author: John David Anglin <danglin@gcc.gnu.org>
Date:   Wed Nov 22 19:47:34 2023 +0000

    hppa: Fix integer REG+D address reloads

    I made a mistake in the previous change to integer_store_memory_operand.
    There is no support pa_emit_move sequence to handle secondary reloads of
    integer REG+D instructions.  Further, the Q constraint is used for some
    non-simple instructions (movb and addib).  Thus, we need to return true
    when reload is in progress.

    2023-11-22  John David Anglin  <danglin@gcc.gnu.org>

    gcc/ChangeLog:

            PR target/112617
            * config/pa/predicates.md (integer_store_memory_operand): Return
            true for REG+D addresses when reload_in_progress is true.

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

* [Bug target/112617] [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839)
  2023-11-19  8:55 [Bug target/112617] New: [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839) sjames at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2023-11-22 19:48 ` cvs-commit at gcc dot gnu.org
@ 2023-11-22 20:28 ` danglin at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: danglin at gcc dot gnu.org @ 2023-11-22 20:28 UTC (permalink / raw)
  To: gcc-bugs

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

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #5 from John David Anglin <danglin at gcc dot gnu.org> ---
Should be fixed now.

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

end of thread, other threads:[~2023-11-22 20:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-19  8:55 [Bug target/112617] New: [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839) sjames at gcc dot gnu.org
2023-11-19  8:58 ` [Bug target/112617] " sjames at gcc dot gnu.org
2023-11-19  9:10 ` sjames at gcc dot gnu.org
2023-11-19 10:17 ` sjames at gcc dot gnu.org
2023-11-19 17:32 ` danglin at gcc dot gnu.org
2023-11-20  9:56 ` rguenth at gcc dot gnu.org
2023-11-22 19:48 ` cvs-commit at gcc dot gnu.org
2023-11-22 20:28 ` danglin 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).