public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "doko at debian dot org" <gcc-bugzilla@gcc.gnu.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	[thread overview]
Message-ID: <bug-99450-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            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 emoslib
4.5.9 package.  the package fails with other issues building with trunk.

$ gfortran -Wl,-z,defs -Wl,--as-needed -flto=auto -Wl,-z,relro
-Wl,--disable-new-dtags -g -O2 -ffile-prefix-map=/packages/tmp/emoslib-4.5.9=.
-flto=auto -ffat-lto-objects -fstack-protector-strong -fallow-argument-mismatch
-ffixed-line-length-none -fcray-pointer -fno-second-underscore -Wuninitialized
-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 ‘bugbytesr4’
does not match original declaration [-Wlto-type-mismatch]
../../libemos-dp/./bufrdc_wmo/bugbytesR4.F:11:28: note: ‘bugbytesr4’ was
previously declared here
../../libemos-dp/./bufrdc_wmo/bugbytesR4.F:11:28: note: code may be
misoptimized unless ‘-fno-strict-aliasing’ is used
../../libemos-dp/./bufrdc_wmo/buens4.F:275:56: warning: type of ‘bugbytesr8’
does not match original declaration [-Wlto-type-mismatch]
../../libemos-dp/./bufrdc_wmo/bugbytesR8.F:11:28: note: ‘bugbytesr8’ was
previously declared here
../../libemos-dp/./bufrdc_wmo/bugbytesR8.F:11:28: note: code may be
misoptimized unless ‘-fno-strict-aliasing’ is used
../../libemos-dp/./pbio/pbbufr.F:90:57: warning: type of ‘bufrread’ does not
match original declaration [-Wlto-type-mismatch]
../../libemos-dp/./pbio/pbio.c:1288:6: note: ‘bufrread_’ was previously
declared here
../../libemos-dp/./pbio/pbio.c:1288:6: note: code may be misoptimized unless
‘-fno-strict-aliasing’ is used
../../libemos-dp/./bufrdc_wmo/bcmctc.F:13:21: warning: type of ‘bcmctc’ does
not match original declaration [-Wlto-type-mismatch]
../../libemos-dp/./bufrdc_wmo/bcmctc.F:13:21: note: ‘bcmctc’ was previously
declared here
../../libemos-dp/./bufrdc_wmo/bcmctc.F:13:21: note: code may be misoptimized
unless ‘-fno-strict-aliasing’ is used
../../libemos-dp/./bufrdc_wmo/bcmwtc.F:12:21: warning: type of ‘bcmwtc’ does
not match original declaration [-Wlto-type-mismatch]
../../libemos-dp/./bufrdc_wmo/bcmwtc.F:12:21: note: ‘bcmwtc’ was previously
declared here
../../libemos-dp/./bufrdc_wmo/bcmwtc.F:12:21: note: code may be misoptimized
unless ‘-fno-strict-aliasing’ is used
../../libemos-dp/./bufrdc_wmo/bcmroot.F:11:22: warning: type of ‘bcmroot’ does
not match original declaration [-Wlto-type-mismatch]
../../libemos-dp/./bufrdc_wmo/bcmroot.F:11:22: note: ‘bcmroot’ was previously
declared here
../../libemos-dp/./bufrdc_wmo/bcmroot.F:11:22: note: code may be misoptimized
unless ‘-fno-strict-aliasing’ is used
../../libemos-dp/./bufrdc_wmo/bcomctc.F:13:22: warning: type of ‘bcomctc’ does
not match original declaration [-Wlto-type-mismatch]
../../libemos-dp/./bufrdc_wmo/bcomctc.F:13:22: note: ‘bcomctc’ was previously
declared here
../../libemos-dp/./bufrdc_wmo/bcomctc.F:13:22: note: code may be misoptimized
unless ‘-fno-strict-aliasing’ is used
../../libemos-dp/./bufrdc_wmo/bcomroot.F:12:23: warning: type of ‘bcomroot’
does not match original declaration [-Wlto-type-mismatch]
../../libemos-dp/./bufrdc_wmo/bcomroot.F:12:23: note: ‘bcomroot’ was previously
declared here
../../libemos-dp/./bufrdc_wmo/bcomroot.F:12:23: note: code may be misoptimized
unless ‘-fno-strict-aliasing’ is used
../../libemos-dp/./bufrdc_wmo/bcomtabloadc.F:12:28: warning: type of
‘bcomtabloadc’ does not match original declaration [-Wlto-type-mismatch]
../../libemos-dp/./bufrdc_wmo/bcomtabloadc.F:12:28: note: ‘bcomtabloadc’ was
previously declared here
../../libemos-dp/./bufrdc_wmo/bcomtabloadc.F:12:28: note: code may be
misoptimized unless ‘-fno-strict-aliasing’ is used
../../libemos-dp/./bufrdc_wmo/bcomdefc.F:12:23: warning: type of ‘bcomdefc’
does not match original declaration [-Wlto-type-mismatch]
../../libemos-dp/./bufrdc_wmo/bcomdefc.F:12:23: note: ‘bcomdefc’ was previously
declared here
../../libemos-dp/./bufrdc_wmo/bcomdefc.F:12:23: note: code may be misoptimized
unless ‘-fno-strict-aliasing’ is used
./tools/bufrtools_wmo/bufr_0t2.F:138:47: warning: type of ‘pbopen’ 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 ‘int’ should match type ‘long
int’
../../libemos-dp/./pbio/pbio.c:84:6: note: ‘pbopen_’ was previously declared
here
../../libemos-dp/./pbio/pbio.c:84:6: note: code may be misoptimized unless
‘-fno-strict-aliasing’ is used
./tools/bufrtools_wmo/bufr_0t2.F:208:47: warning: type of ‘pbwrite’ does not
match original declaration [-Wlto-type-mismatch]
../../libemos-dp/./pbio/pbio.c:721:6: note: ‘pbwrite_’ was previously declared
here
../../libemos-dp/./pbio/pbio.c:721:6: note: code may be misoptimized unless
‘-fno-strict-aliasing’ is used
./tools/bufrtools_wmo/bufr_0t2.F: In function ‘bufr0t2’:
./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 0x202]
<var_decl 0x7f39d9dc3b40 values>)
                (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.

             reply	other threads:[~2021-03-07 13:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-07 13:31 doko at debian dot org [this message]
2021-03-08  8:50 ` [Bug lto/99450] " marxin at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-99450-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).