public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/109493] New: Broken O2 optimization on s390x in GCC 13
@ 2023-04-13  6:22 mitskevichmn at gmail dot com
  2023-04-13  6:26 ` [Bug c/109493] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: mitskevichmn at gmail dot com @ 2023-04-13  6:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109493
           Summary: Broken O2 optimization on s390x in GCC 13
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mitskevichmn at gmail dot com
  Target Milestone: ---

Created attachment 54847
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54847&action=edit
Preprocessed source

We found a problem in release version of a test (part of bee2 library test
suite) on Fedora Rawhide (39) official docker image.

Test fails with -O2 optimization on the linux/s390 platform, but works with
-O1.
Also it works on the linux/amd64, linux/arm64, linux/ppc64le platforms with -O1
and -O2.

1) gcc -v output:
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/s390x-redhat-linux/13/lto-wrapper
Target: s390x-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,m2,lto --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --disable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-gcc-major-version-only --enable-libstdcxx-backtrace
--with-libstdcxx-zoneinfo=/usr/share/zoneinfo --with-linker-hash-style=gnu
--enable-plugin --enable-initfini-array
--with-isl=/builddir/build/BUILD/gcc-13.0.1-20230401/obj-s390x-redhat-linux/isl-install
--enable-gnu-indirect-function --with-long-double-128 --with-arch=z13
--with-tune=z14 --enable-decimal-float --build=s390x-redhat-linux
--with-build-config=bootstrap-lto --enable-link-serialization=1
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.0.1 20230401 (Red Hat 13.0.1-0) (GCC)

2) gcc build command:
gcc -O2 belt_test.c -o belt_test

3) run command:
belt_test

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

end of thread, other threads:[~2023-04-13 11:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-13  6:22 [Bug c/109493] New: Broken O2 optimization on s390x in GCC 13 mitskevichmn at gmail dot com
2023-04-13  6:26 ` [Bug c/109493] " pinskia at gcc dot gnu.org
2023-04-13  6:28 ` [Bug middle-end/109493] " pinskia at gcc dot gnu.org
2023-04-13  6:35 ` sjames at gcc dot gnu.org
2023-04-13  6:48 ` mitskevichmn at gmail dot com
2023-04-13  6:55 ` mitskevichmn at gmail dot com
2023-04-13  7:25 ` mitskevichmn at gmail dot com
2023-04-13  8:37 ` xry111 at gcc dot gnu.org
2023-04-13 11:39 ` rguenth 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).