From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E96103858404; Sun, 26 Dec 2021 02:59:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E96103858404 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/41565] using -m32 with LTO causes an ICE when the object files were compiled with 64bit Date: Sun, 26 Dec 2021 02:59:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 4.5.0 X-Bugzilla-Keywords: ice-on-invalid-code, lto X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on Message-ID: In-Reply-To: References: 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, 26 Dec 2021 02:59:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D41565 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2017-08-07 00:00:00 |2021-12-25 --- Comment #16 from Andrew Pinski --- Still ICEs today on x86_64: apinski@xeond:~/src$ ~/upstream-gcc/bin/gcc -m64 -c -flto t55.c apinski@xeond:~/src$ ~/upstream-gcc/bin/gcc -m32 -flto t55.o lto1: internal compiler error: in operator[], at vec.h:889 0x70f75e vec::operator[](unsigned int) /home/apinski/src/upstream-gcc-git/gcc/gcc/vec.h:889 0x70f8a4 vec::operator[](unsigned int) /home/apinski/src/upstream-gcc-git/gcc/gcc/lto-streamer-in.c:1832 0x70f8a4 vec::operator[](unsigned int) /home/apinski/src/upstream-gcc-git/gcc/gcc/vec.h:1495 0x70f8a4 streamer_tree_cache_get_tree /home/apinski/src/upstream-gcc-git/gcc/gcc/tree-streamer.h:96 0x70f8a4 stream_read_tree_ref(lto_input_block*, data_in*) /home/apinski/src/upstream-gcc-git/gcc/gcc/lto-streamer-in.c:1819 0xff6c2d lto_input_ts_decl_minimal_tree_pointers /home/apinski/src/upstream-gcc-git/gcc/gcc/tree-streamer-in.c:710 0xff6c2d streamer_read_tree_body(lto_input_block*, data_in*, tree_node*) /home/apinski/src/upstream-gcc-git/gcc/gcc/tree-streamer-in.c:1061 0xc38a79 lto_read_tree_1 /home/apinski/src/upstream-gcc-git/gcc/gcc/lto-streamer-in.c:1700 0xc39437 lto_read_tree /home/apinski/src/upstream-gcc-git/gcc/gcc/lto-streamer-in.c:1741 0xc39437 lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned in= t) /home/apinski/src/upstream-gcc-git/gcc/gcc/lto-streamer-in.c:1882 0x8ad04e lto_read_decls /home/apinski/src/upstream-gcc-git/gcc/gcc/lto/lto-common.c:1957 0x8adfef lto_file_finalize /home/apinski/src/upstream-gcc-git/gcc/gcc/lto/lto-common.c:2269 0x8adfef lto_create_files_from_ids /home/apinski/src/upstream-gcc-git/gcc/gcc/lto/lto-common.c:2279 0x8adfef lto_file_read /home/apinski/src/upstream-gcc-git/gcc/gcc/lto/lto-common.c:2334 0x8adfef read_cgraph_and_symbols(unsigned int, char const**) /home/apinski/src/upstream-gcc-git/gcc/gcc/lto/lto-common.c:2785 0x8961f2 lto_main() /home/apinski/src/upstream-gcc-git/gcc/gcc/lto/lto.c:625 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. lto-wrapper: fatal error: /home/apinski/upstream-gcc/bin/gcc returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status=