From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7DE663858C33; Wed, 19 Jul 2023 15:47:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7DE663858C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689781677; bh=/XZvahH7aZIICUEVz5JG1RX18OA59wxt8rCqLBzR/rs=; h=From:To:Subject:Date:From; b=v02Lv+8r8z7xc2muOFbELSzi2CZVDv+azzwkqqcj44OVUw4rGfNrA4v+tgUGOkdNx +4Uk9dP4DipfLuWgwKpLWvU5fx9mZ3JttSQ0YAaARdSRb5XbM1ingTT6XPeIxMiATy 61G4b8v1UiYlejgj+B8Ojb0oCFavWXmviONdhdRs= From: "thiago.bauermann at linaro dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110742] New: [14 Regression] cc1plus ICE "Floating point exception" during profiled bootstrap since commit 08b99fe8ad6 Date: Wed, 19 Jul 2023 15:47:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: thiago.bauermann at linaro dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110742 Bug ID: 110742 Summary: [14 Regression] cc1plus ICE "Floating point exception" during profiled bootstrap since commit 08b99fe8ad6 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: thiago.bauermann at linaro dot org CC: saaadhu at gcc dot gnu.org Target Milestone: --- Host: armv8l-unknown-linux-gnueabihf Target: armv8l-unknown-linux-gnueabihf Created attachment 55583 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55583&action=3Dedit Output of running with "-v -save-temps -freport-bug". Our CI detected that commit 08b99fe8ad6c "ira: Skip empty regclass when set= ting up reg class relations" introduced an ICE in a profiled bootstrap build on armv8l-linux-gnueabihf: /home/thiago.bauermann/.cache/builds/gcc-native-aarch32/./prev-gcc/xg++ -B/home/thiago.bauermann/.cache/builds/gcc-native-aarch32/./prev-gcc/ -B/usr/local/armv8l-unknown-linux-gnueabihf/bin/ -nostdinc++ -B/home/thiago.bauermann/.cache/builds/gcc-native-aarch32/prev-armv8l-unkno= wn-linux-gnueabihf/libstdc++-v3/src/.libs -B/home/thiago.bauermann/.cache/builds/gcc-native-aarch32/prev-armv8l-unkno= wn-linux-gnueabihf/libstdc++-v3/libsupc++/.libs -I/home/thiago.bauermann/.cache/builds/gcc-native-aarch32/prev-armv8l-unkno= wn-linux-gnueabihf/libstdc++-v3/include/armv8l-unknown-linux-gnueabihf -I/home/thiago.bauermann/.cache/builds/gcc-native-aarch32/prev-armv8l-unkno= wn-linux-gnueabihf/libstdc++-v3/include -I/home/thiago.bauermann/src/gcc/libstdc++-v3/libsupc++ -L/home/thiago.bauermann/.cache/builds/gcc-native-aarch32/prev-armv8l-unkno= wn-linux-gnueabihf/libstdc++-v3/src/.libs -L/home/thiago.bauermann/.cache/builds/gcc-native-aarch32/prev-armv8l-unkno= wn-linux-gnueabihf/libstdc++-v3/libsupc++/.libs -fno-PIE -c -g -O2 -fno-checking -gtoggle -fprofile-generate -DIN_GCC=20= =20=20 -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrow= ing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -fno-PIE -I. -I. -I/home/thiago.bauermann/src/gcc/gcc -I/home/thiago.bauermann/src/gcc/gcc/. -I/home/thiago.bauermann/src/gcc/gcc/../include=20 -I/home/thiago.bauermann/src/gcc/gcc/../libcpp/include -I/home/thiago.bauermann/src/gcc/gcc/../libcody=20 -I/home/thiago.bauermann/src/gcc/gcc/../libdecnumber -I/home/thiago.bauermann/src/gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I/home/thiago.bauermann/src/gcc/gcc/../libbacktrace -o ira.o -MT ira.o -= MMD -MP -MF ./.deps/ira.TPo /home/thiago.bauermann/src/gcc/gcc/ira.cc during GIMPLE pass: slp /home/thiago.bauermann/src/gcc/gcc/ira.cc: In function =E2=80=98void setup_reg_class_relations()=E2=80=99: /home/thiago.bauermann/src/gcc/gcc/ira.cc:1198:1: internal compiler error: Floating point exception 1198 | setup_reg_class_relations (void) | ^~~~~~~~~~~~~~~~~~~~~~~~~ 0x12ff9a5 crash_signal /home/thiago.bauermann/src/gcc/gcc/toplev.cc:314 0xf7a0d6df ??? ../sysdeps/unix/sysv/linux/arm/sigrestorer.S:64 0xf79fdb05 ??? ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:46 0xf7a3d2c9 __pthread_kill_implementation ./nptl/pthread_kill.c:43 0xf7a0c83f __GI_raise ../sysdeps/posix/raise.c:26 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. make[3]: *** [Makefile:1181: ira.o] Error 1 make[3]: Leaving directory '/home/thiago.bauermann/.cache/builds/gcc-native-aarch32/gcc' make[2]: *** [Makefile:5150: all-stageprofile-gcc] Error 2 make[2]: Leaving directory '/home/thiago.bauermann/.cache/builds/gcc-native-aarch32' make[1]: *** [Makefile:26321: stageprofile-bubble] Error 2 make[1]: Leaving directory '/home/thiago.bauermann/.cache/builds/gcc-native-aarch32' make: *** [Makefile:1085: all] Error 2 I confirmed that the problem is still present in trunk as of commit e029635cb72e "[modula2] Variable analysis understands DISPOSE and NIL" from today. I'm attaching the output of running with "-v -save-temps -freport-bug", as = well as the corresponding ira.ii. Tested on Ubuntu 22.04 with: $ src/gcc/configure \ SHELL=3D/bin/bash \ --with-gnu-as \ --with-gnu-ld \ --disable-libmudflap \ --enable-lto \ --enable-shared \ --without-included-gettext \ --enable-nls \ --with-system-zlib \ --disable-sjlj-exceptions \ --enable-gnu-unique-object \ --enable-linker-build-id \ --disable-libstdcxx-pch \ --enable-c99 \ --enable-clocale=3Dgnu \ --enable-libstdcxx-debug \ --enable-long-long \ --with-cloog=3Dno \ --with-ppl=3Dno \ --with-isl=3Dno \ --disable-multilib \ --with-float=3Dhard \ --with-fpu=3Dneon-fp-armv8 \ --with-mode=3Dthumb \ --with-arch=3Darmv8-a \ --enable-threads=3Dposix \ --enable-multiarch \ --enable-libstdcxx-time=3Dyes \ --enable-gnu-indirect-function \ --disable-werror \ --enable-checking=3Dyes \ --enable-bootstrap \ --enable-languages=3Dc,c++,fortran,lto \ && make profiledbootstrap \ SHELL=3D/bin/bash \ -w \ -j 40 \ CFLAGS_FOR_BUILD=3D"-pipe -g -O2" \ CXXFLAGS_FOR_BUILD=3D"-pipe -g -O2" \ LDFLAGS_FOR_BUILD=3D"-static-libgcc" \ MAKEINFOFLAGS=3D--force \ BUILD_INFO=3D"" \ MAKEINFO=3Decho=