From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7B4133857812; Sun, 7 Mar 2021 13:31:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7B4133857812 From: "doko at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/99450] New: ICE: unrecognizable insn with lto build Date: Sun, 07 Mar 2021 13:31:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 10.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: doko at debian 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 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Mar 2021 13:31:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99450 Bug ID: 99450 Summary: ICE: unrecognizable insn with lto build Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: doko at debian dot org CC: marxin at gcc dot gnu.org Target Milestone: --- seen with the gcc-10 branch 20210306 on x86_64-linux-gnu, building the emos= lib 4.5.9 package. the package fails with other issues building with trunk. $ gfortran -Wl,-z,defs -Wl,--as-needed -flto=3Dauto -Wl,-z,relro -Wl,--disable-new-dtags -g -O2 -ffile-prefix-map=3D/packages/tmp/emoslib-4.= 5.9=3D. -flto=3Dauto -ffat-lto-objects -fstack-protector-strong -fallow-argument-mi= smatch -ffixed-line-length-none -fcray-pointer -fno-second-underscore -Wuninitiali= zed -Wunused-variable -Wno-maybe-uninitialized -DSHAREDMEMORY -fdefault-real-8 -fdefault-double-8 -fdefault-real-8 -fdefault-double-8 -O3 -DNDEBUG -funroll-all-loops -finline-functions -O2 CMakeFiles/bufr_0t2.dir/bufr_0t2.= F.o -o ../../usr/bin/bufr_0t2 -Wl,-rpath,$ORIGIN/../lib libmy_exit.a ../../usr/lib/x86_64-linux-gnu/libemosR64.a /usr/lib/x86_64-linux-gnu/libeccodes.so.0 -lpng -laec -lm /usr/lib/x86_64-linux-gnu/libopenjp2.so -lpthread /usr/lib/x86_64-linux-gnu/libfftw3.so ../../libemos-dp/./bufrdc_wmo/buens4.F:268:57: warning: type of =E2=80=98bu= gbytesr4=E2=80=99 does not match original declaration [-Wlto-type-mismatch] ../../libemos-dp/./bufrdc_wmo/bugbytesR4.F:11:28: note: =E2=80=98bugbytesr4= =E2=80=99 was previously declared here ../../libemos-dp/./bufrdc_wmo/bugbytesR4.F:11:28: note: code may be misoptimized unless =E2=80=98-fno-strict-aliasing=E2=80=99 is used ../../libemos-dp/./bufrdc_wmo/buens4.F:275:56: warning: type of =E2=80=98bu= gbytesr8=E2=80=99 does not match original declaration [-Wlto-type-mismatch] ../../libemos-dp/./bufrdc_wmo/bugbytesR8.F:11:28: note: =E2=80=98bugbytesr8= =E2=80=99 was previously declared here ../../libemos-dp/./bufrdc_wmo/bugbytesR8.F:11:28: note: code may be misoptimized unless =E2=80=98-fno-strict-aliasing=E2=80=99 is used ../../libemos-dp/./pbio/pbbufr.F:90:57: warning: type of =E2=80=98bufrread= =E2=80=99 does not match original declaration [-Wlto-type-mismatch] ../../libemos-dp/./pbio/pbio.c:1288:6: note: =E2=80=98bufrread_=E2=80=99 wa= s previously declared here ../../libemos-dp/./pbio/pbio.c:1288:6: note: code may be misoptimized unless =E2=80=98-fno-strict-aliasing=E2=80=99 is used ../../libemos-dp/./bufrdc_wmo/bcmctc.F:13:21: warning: type of =E2=80=98bcm= ctc=E2=80=99 does not match original declaration [-Wlto-type-mismatch] ../../libemos-dp/./bufrdc_wmo/bcmctc.F:13:21: note: =E2=80=98bcmctc=E2=80= =99 was previously declared here ../../libemos-dp/./bufrdc_wmo/bcmctc.F:13:21: note: code may be misoptimized unless =E2=80=98-fno-strict-aliasing=E2=80=99 is used ../../libemos-dp/./bufrdc_wmo/bcmwtc.F:12:21: warning: type of =E2=80=98bcm= wtc=E2=80=99 does not match original declaration [-Wlto-type-mismatch] ../../libemos-dp/./bufrdc_wmo/bcmwtc.F:12:21: note: =E2=80=98bcmwtc=E2=80= =99 was previously declared here ../../libemos-dp/./bufrdc_wmo/bcmwtc.F:12:21: note: code may be misoptimized unless =E2=80=98-fno-strict-aliasing=E2=80=99 is used ../../libemos-dp/./bufrdc_wmo/bcmroot.F:11:22: warning: type of =E2=80=98bc= mroot=E2=80=99 does not match original declaration [-Wlto-type-mismatch] ../../libemos-dp/./bufrdc_wmo/bcmroot.F:11:22: note: =E2=80=98bcmroot=E2=80= =99 was previously declared here ../../libemos-dp/./bufrdc_wmo/bcmroot.F:11:22: note: code may be misoptimiz= ed unless =E2=80=98-fno-strict-aliasing=E2=80=99 is used ../../libemos-dp/./bufrdc_wmo/bcomctc.F:13:22: warning: type of =E2=80=98bc= omctc=E2=80=99 does not match original declaration [-Wlto-type-mismatch] ../../libemos-dp/./bufrdc_wmo/bcomctc.F:13:22: note: =E2=80=98bcomctc=E2=80= =99 was previously declared here ../../libemos-dp/./bufrdc_wmo/bcomctc.F:13:22: note: code may be misoptimiz= ed unless =E2=80=98-fno-strict-aliasing=E2=80=99 is used ../../libemos-dp/./bufrdc_wmo/bcomroot.F:12:23: warning: type of =E2=80=98b= comroot=E2=80=99 does not match original declaration [-Wlto-type-mismatch] ../../libemos-dp/./bufrdc_wmo/bcomroot.F:12:23: note: =E2=80=98bcomroot=E2= =80=99 was previously declared here ../../libemos-dp/./bufrdc_wmo/bcomroot.F:12:23: note: code may be misoptimi= zed unless =E2=80=98-fno-strict-aliasing=E2=80=99 is used ../../libemos-dp/./bufrdc_wmo/bcomtabloadc.F:12:28: warning: type of =E2=80=98bcomtabloadc=E2=80=99 does not match original declaration [-Wlto-t= ype-mismatch] ../../libemos-dp/./bufrdc_wmo/bcomtabloadc.F:12:28: note: =E2=80=98bcomtabl= oadc=E2=80=99 was previously declared here ../../libemos-dp/./bufrdc_wmo/bcomtabloadc.F:12:28: note: code may be misoptimized unless =E2=80=98-fno-strict-aliasing=E2=80=99 is used ../../libemos-dp/./bufrdc_wmo/bcomdefc.F:12:23: warning: type of =E2=80=98b= comdefc=E2=80=99 does not match original declaration [-Wlto-type-mismatch] ../../libemos-dp/./bufrdc_wmo/bcomdefc.F:12:23: note: =E2=80=98bcomdefc=E2= =80=99 was previously declared here ../../libemos-dp/./bufrdc_wmo/bcomdefc.F:12:23: note: code may be misoptimi= zed unless =E2=80=98-fno-strict-aliasing=E2=80=99 is used ./tools/bufrtools_wmo/bufr_0t2.F:138:47: warning: type of =E2=80=98pbopen= =E2=80=99 does not match original declaration [-Wlto-type-mismatch] ../../libemos-dp/./pbio/pbio.c:84:6: note: type mismatch in parameter 5 ../../libemos-dp/./pbio/pbio.c:84:6: note: type =E2=80=98int=E2=80=99 shoul= d match type =E2=80=98long int=E2=80=99 ../../libemos-dp/./pbio/pbio.c:84:6: note: =E2=80=98pbopen_=E2=80=99 was pr= eviously declared here ../../libemos-dp/./pbio/pbio.c:84:6: note: code may be misoptimized unless =E2=80=98-fno-strict-aliasing=E2=80=99 is used ./tools/bufrtools_wmo/bufr_0t2.F:208:47: warning: type of =E2=80=98pbwrite= =E2=80=99 does not match original declaration [-Wlto-type-mismatch] ../../libemos-dp/./pbio/pbio.c:721:6: note: =E2=80=98pbwrite_=E2=80=99 was = previously declared here ../../libemos-dp/./pbio/pbio.c:721:6: note: code may be misoptimized unless =E2=80=98-fno-strict-aliasing=E2=80=99 is used ./tools/bufrtools_wmo/bufr_0t2.F: In function =E2=80=98bufr0t2=E2=80=99: ./tools/bufrtools_wmo/bufr_0t2.F:473:9: error: unrecognizable insn: (insn 1547 1546 1548 125 (set (reg:DI 1180) (const:DI (plus:DI (symbol_ref:DI ("values.6.lto_priv.0") [flags 0x= 202] ) (const_int -8 [0xfffffffffffffff8])))) "./tools/bufrtools_wmo/bufr_0t2.F":1957:15 -1 (nil)) during RTL pass: vregs ./tools/bufrtools_wmo/bufr_0t2.F:473:9: internal compiler error: in extract_insn, at recog.c:2294 0x7f39da22dd09 __libc_start_main ../csu/libc-start.c:308 Please submit a full bug report, with preprocessed source if appropriate.=