Bug ID 1128794
Summary GCC: Internal compiler error with -mtune=cortex-a57 -O2
Classification openSUSE
Product openSUSE Distribution
Version Leap 15.1
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Development
Assignee bnc-team-screening@forge.provo.novell.com
Reporter stefan.bruens@rwth-aachen.de
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Created attachment 799668 [details]
Preprocessed source

When compiling openBLAS with TARGET=DYNAMIC_ARCH, the compiler throws an
internal error when compiling some functions with mtune=cortex-a57:

gcc  -O2   -march=armv8-a -mtune=cortex-a57   -c saxpby_k_CORTEXA57.pp.c -o
tmp.o
---
../kernel/arm64/../arm/axpby.c: In function 'saxpby_k_CORTEXA57':
../kernel/arm64/../arm/axpby.c:94:1: internal compiler error: Segmentation
fault
 }
 ^
---

When using -O1 or -mtune=cortex-a53, the code compiles fine.

GCC version (Leap 15.1, aarch64):
$> gcc -v
Using built-in specs.
Reading specs from /usr/lib64/gcc/aarch64-suse-linux/7/defaults.spec
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/aarch64-suse-linux/7/lto-wrapper
Target: aarch64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,ada,go --enable-checking=release
--disable-werror --with-gxx-include-dir=/usr/include/c++/7 --enable-ssp
--disable-libssp --disable-libvtv --disable-libmpx --disable-libcc1
--disable-plugin --with-bugurl=http://bugs.opensuse.org/
--with-pkgversion='SUSE Linux' --with-slibdir=/lib64 --with-system-zlib
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --with-gcc-major-version-only
--enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function
--program-suffix=-7 --without-system-libunwind --enable-fix-cortex-a53-835769
--enable-fix-cortex-a53-843419 --build=aarch64-suse-linux
--host=aarch64-suse-linux
Thread model: posix
gcc version 7.4.0 (SUSE Linux)

GCC from Leap 15.0 fails as well, while gcc 8.2.1 or 8.3.1 from TW works.


You are receiving this mail because: