public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/101625] New: ICE in modref_tree<int>::merge with LTO and -m32
@ 2021-07-26 16:45 tonyb at cybernetics dot com
2021-07-27 11:03 ` [Bug ipa/101625] [11/12 Regression] " rguenth at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: tonyb at cybernetics dot com @ 2021-07-26 16:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101625
Bug ID: 101625
Summary: ICE in modref_tree<int>::merge with LTO and -m32
Product: gcc
Version: 11.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: tonyb at cybernetics dot com
CC: marxin at gcc dot gnu.org
Target Milestone: ---
Created attachment 51206
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51206&action=edit
Relevant *.i preprocessed source files from grub
ICE when building grub with LTO. Builds correctly when LTO disabled.
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/tonyb/tmp/gcc/install/libexec/gcc/x86_64-pc-linux-gnu/11.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/home/tonyb/tmp/gcc/install
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.1.1 20210726 (GCC)
gcc -std=gnu99 -Os -m32 -Wall -W -Wshadow -Wpointer-arith -Wundef
-Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization
-Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k
-Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain
-Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses
-Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs
-Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter
-Wunused-value -Wunused-variable -Wwrite-strings -Wnested-externs
-Wstrict-prototypes -g -Wredundant-decls -Wmissing-prototypes
-Wmissing-declarations -Wextra -Wattributes -Wendif-labels -Winit-self
-Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull
-Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros
-Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs
-Wmissing-prototypes -Wmissing-declarations -Wformat=2 -march=i386 -mrtd
-mregparm=3 -falign-jumps=1 -falign-loops=1 -falign-functions=1
-freg-struct-return -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow
-msoft-float -fno-dwarf2-cfi-asm -mno-stack-arg-probe
-fno-asynchronous-unwind-tables -fno-unwind-tables -fno-ident
-fno-stack-protector -Wtrampolines -Werror -ffreestanding -fno-builtin
-Wno-undef -flto -ffat-lto-objects -fuse-linker-plugin -save-temps
-Wno-error=implicit-fallthrough= -m32 -Wl,-melf_i386 -Wl,--build-id=none
-nostdlib -Wl,-N -Wl,-r,-d -flto -ffat-lto-objects -fuse-linker-plugin -o
zstd.module lib/zstd/zstd_module-debug.o lib/zstd/zstd_module-entropy_common.o
lib/zstd/zstd_module-error_private.o lib/zstd/zstd_module-fse_decompress.o
lib/zstd/zstd_module-huf_decompress.o lib/zstd/zstd_module-module.o
lib/zstd/zstd_module-xxhash.o lib/zstd/zstd_module-zstd_common.o
lib/zstd/zstd_module-zstd_decompress.o
during IPA pass: inline
lto1: internal compiler error: Segmentation fault
0xadc82f crash_signal
../../gcc/gcc/toplev.c:327
0x90135a modref_tree<int>::merge(modref_tree<int>*, vec<modref_parm_map,
va_heap, vl_ptr>*)
../../gcc/gcc/ipa-modref-tree.h:420
0x8f916a ipa_merge_modref_summary_after_inlining(cgraph_edge*)
../../gcc/gcc/ipa-modref.c:3096
0x8ecd94 inline_call(cgraph_edge*, bool, vec<cgraph_edge*, va_heap, vl_ptr>*,
int*, bool, bool*)
../../gcc/gcc/ipa-inline-transform.c:503
0x1438e56 inline_small_functions
../../gcc/gcc/ipa-inline.c:2242
0x1438e56 ipa_inline
../../gcc/gcc/ipa-inline.c:2723
0x1438e56 execute
../../gcc/gcc/ipa-inline.c:3122
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ipa/101625] [11/12 Regression] ICE in modref_tree<int>::merge with LTO and -m32
2021-07-26 16:45 [Bug lto/101625] New: ICE in modref_tree<int>::merge with LTO and -m32 tonyb at cybernetics dot com
@ 2021-07-27 11:03 ` rguenth at gcc dot gnu.org
2021-07-28 7:07 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-07-27 11:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101625
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org
Target Milestone|--- |11.2
Component|lto |ipa
Summary|ICE in |[11/12 Regression] ICE in
|modref_tree<int>::merge |modref_tree<int>::merge
|with LTO and -m32 |with LTO and -m32
Priority|P3 |P2
Keywords| |ice-on-valid-code, lto
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ipa/101625] [11/12 Regression] ICE in modref_tree<int>::merge with LTO and -m32
2021-07-26 16:45 [Bug lto/101625] New: ICE in modref_tree<int>::merge with LTO and -m32 tonyb at cybernetics dot com
2021-07-27 11:03 ` [Bug ipa/101625] [11/12 Regression] " rguenth at gcc dot gnu.org
@ 2021-07-28 7:07 ` rguenth at gcc dot gnu.org
2021-08-02 14:07 ` [Bug ipa/101625] [11/12 Regression] ICE in modref_tree<int>::merge with LTO and -m32 since r11-3825-g71dbabccbfb295c8 marxin at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-07-28 7:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101625
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|11.2 |11.3
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 11.2 is being released, retargeting bugs to GCC 11.3
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ipa/101625] [11/12 Regression] ICE in modref_tree<int>::merge with LTO and -m32 since r11-3825-g71dbabccbfb295c8
2021-07-26 16:45 [Bug lto/101625] New: ICE in modref_tree<int>::merge with LTO and -m32 tonyb at cybernetics dot com
2021-07-27 11:03 ` [Bug ipa/101625] [11/12 Regression] " rguenth at gcc dot gnu.org
2021-07-28 7:07 ` rguenth at gcc dot gnu.org
@ 2021-08-02 14:07 ` marxin at gcc dot gnu.org
2021-08-05 11:43 ` marxin at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-02 14:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101625
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-08-02
Summary|[11/12 Regression] ICE in |[11/12 Regression] ICE in
|modref_tree<int>::merge |modref_tree<int>::merge
|with LTO and -m32 |with LTO and -m32 since
| |r11-3825-g71dbabccbfb295c8
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r11-3825-g71dbabccbfb295c8.
Reduced test-case:
$ cat ice.i
typedef enum { XXH_OK } XXH_errorcode;
struct XXH64_state_s {};
struct XXH32_state_s {};
void XXH_free();
XXH_errorcode XXH32_freeState(struct XXH32_state_s *statePtr) {
XXH_free(statePtr);
return XXH_OK;
}
XXH_errorcode XXH64_freeState(struct XXH64_state_s *statePtr) {
XXH_free(statePtr);
return XXH_OK;
}
$ gcc ice.i -Os -ffat-lto-objects -nostdlib -nostdlib -Wl,-r,-d -flto
during IPA pass: inline
lto1: internal compiler error: Segmentation fault
0xd6ecba crash_signal
/home/marxin/Programming/gcc/gcc/toplev.c:328
0x7ffff786239f ???
../sysdeps/unix/sysv/linux/sigaction.c:10
0xb4b57b modref_tree<int>::merge(modref_tree<int>*, vec<modref_parm_map,
va_heap, vl_ptr>*)
/home/marxin/Programming/gcc/gcc/ipa-modref-tree.h:420
0xb4008a ipa_merge_modref_summary_after_inlining(cgraph_edge*)
/home/marxin/Programming/gcc/gcc/ipa-modref.c:3123
0xb3393b inline_call(cgraph_edge*, bool, vec<cgraph_edge*, va_heap, vl_ptr>*,
int*, bool, bool*)
/home/marxin/Programming/gcc/gcc/ipa-inline-transform.c:503
0x18b4e1c inline_small_functions
/home/marxin/Programming/gcc/gcc/ipa-inline.c:2245
0x18b4e1c ipa_inline
/home/marxin/Programming/gcc/gcc/ipa-inline.c:2726
0x18b4e1c execute
/home/marxin/Programming/gcc/gcc/ipa-inline.c:3125
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ipa/101625] [11/12 Regression] ICE in modref_tree<int>::merge with LTO and -m32 since r11-3825-g71dbabccbfb295c8
2021-07-26 16:45 [Bug lto/101625] New: ICE in modref_tree<int>::merge with LTO and -m32 tonyb at cybernetics dot com
` (2 preceding siblings ...)
2021-08-02 14:07 ` [Bug ipa/101625] [11/12 Regression] ICE in modref_tree<int>::merge with LTO and -m32 since r11-3825-g71dbabccbfb295c8 marxin at gcc dot gnu.org
@ 2021-08-05 11:43 ` marxin at gcc dot gnu.org
2022-04-21 7:50 ` rguenth at gcc dot gnu.org
2023-05-29 10:05 ` [Bug ipa/101625] [11/12/13/14 " jakub at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-05 11:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101625
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |hubicka at gcc dot gnu.org
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Crashes due to:
│ 3120 if (!ignore_stores)
│ 3121 {
│ 3122 if (to_info && callee_info)
│ >3123 to_info->stores->merge (callee_info->stores,
&parm_map);
where to_info->stores == NULL. It's likely related to partial linking.
@Honza?
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ipa/101625] [11/12 Regression] ICE in modref_tree<int>::merge with LTO and -m32 since r11-3825-g71dbabccbfb295c8
2021-07-26 16:45 [Bug lto/101625] New: ICE in modref_tree<int>::merge with LTO and -m32 tonyb at cybernetics dot com
` (3 preceding siblings ...)
2021-08-05 11:43 ` marxin at gcc dot gnu.org
@ 2022-04-21 7:50 ` rguenth at gcc dot gnu.org
2023-05-29 10:05 ` [Bug ipa/101625] [11/12/13/14 " jakub at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-04-21 7:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101625
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|11.3 |11.4
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 11.3 is being released, retargeting bugs to GCC 11.4.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ipa/101625] [11/12/13/14 Regression] ICE in modref_tree<int>::merge with LTO and -m32 since r11-3825-g71dbabccbfb295c8
2021-07-26 16:45 [Bug lto/101625] New: ICE in modref_tree<int>::merge with LTO and -m32 tonyb at cybernetics dot com
` (4 preceding siblings ...)
2022-04-21 7:50 ` rguenth at gcc dot gnu.org
@ 2023-05-29 10:05 ` jakub at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-05-29 10:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101625
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|11.4 |11.5
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 11.4 is being released, retargeting bugs to GCC 11.5.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-05-29 10:05 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26 16:45 [Bug lto/101625] New: ICE in modref_tree<int>::merge with LTO and -m32 tonyb at cybernetics dot com
2021-07-27 11:03 ` [Bug ipa/101625] [11/12 Regression] " rguenth at gcc dot gnu.org
2021-07-28 7:07 ` rguenth at gcc dot gnu.org
2021-08-02 14:07 ` [Bug ipa/101625] [11/12 Regression] ICE in modref_tree<int>::merge with LTO and -m32 since r11-3825-g71dbabccbfb295c8 marxin at gcc dot gnu.org
2021-08-05 11:43 ` marxin at gcc dot gnu.org
2022-04-21 7:50 ` rguenth at gcc dot gnu.org
2023-05-29 10:05 ` [Bug ipa/101625] [11/12/13/14 " jakub at gcc dot gnu.org
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).