public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/99849] New: ICE in expand_expr_real_1, at expr.c:11556 since r5-5407-g30d5d8c5189064c8 Date: Wed, 31 Mar 2021 15:21:18 +0000 [thread overview] Message-ID: <bug-99849-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99849 Bug ID: 99849 Summary: ICE in expand_expr_real_1, at expr.c:11556 since r5-5407-g30d5d8c5189064c8 Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: andi-gcc at firstfloor dot org, hubicka at gcc dot gnu.org, jakub at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- It's reduced from Linux kernel compiled with LTO and -flto-partition=1to1 $ cat a.i struct { struct uapi_definition *driver_def; } * mlx5_ib_stage_caps_init_dev; struct auxiliary_driver { int *probe; }; struct uverbs_obj_type { int *type_class; }; const struct uverbs_obj_idr_type { struct uverbs_obj_type type; } uverbs_idr_class; struct uapi_definition { struct { struct uverbs_obj_type chain_obj_tree; }; }; struct mlx5_ib_stage { void *cleanup; } mlx5_ib_object_MLX5_IB_OBJECT_VAR = { &(&(const struct uverbs_obj_idr_type){(void * )&uverbs_idr_class})->type}; struct uverbs_obj_type mlx5_ib_object_MLX5_IB_OBJECT_UAR = { &(&(const struct uverbs_obj_idr_type){(void *)&uverbs_idr_class})->type}; struct uapi_definition mlx5_ib_defs[] = {&mlx5_ib_object_MLX5_IB_OBJECT_VAR, &mlx5_ib_object_MLX5_IB_OBJECT_UAR}; void mlx5_ib_stage_caps_init() { mlx5_ib_stage_caps_init_dev->driver_def = mlx5_ib_defs; } struct mlx5_ib_stage mlx5r_probe_profile = {mlx5_ib_stage_caps_init}; void __mlx5_ib_add(); int mlx5r_probe() { __mlx5_ib_add(mlx5r_probe_profile); } struct auxiliary_driver mlx5r_driver = {(int *)mlx5r_probe}; void __auxiliary_driver_register(); void mlx5_ib_init() { __auxiliary_driver_register(mlx5r_driver); } void *__initcall__kmod_mlx5_ib__1811_4811_mlx5_ib_init6 __attribute__((__used__)) = mlx5_ib_init; $ gcc -O2 -flto a.i -flto-partition=1to1 -Wno-incompatible-pointer-types -Wno-discarded-qualifiers -shared -fPIC lto1: internal compiler error: in expand_expr_real_1, at expr.c:11556 0x641a09 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/marxin/Programming/gcc/gcc/expr.c:11556 0x9d6077 expand_expr /home/marxin/Programming/gcc/gcc/expr.h:282 0x9d6077 expand_expr_addr_expr_1 /home/marxin/Programming/gcc/gcc/expr.c:8223 0x9d615a expand_expr_addr_expr_1 /home/marxin/Programming/gcc/gcc/expr.c:8269 0x9ca09e expand_expr_addr_expr /home/marxin/Programming/gcc/gcc/expr.c:8344 0x9ca09e expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/marxin/Programming/gcc/gcc/expr.c:11513 0x1088d5b expand_expr /home/marxin/Programming/gcc/gcc/expr.h:282 0x1088d5b output_constant /home/marxin/Programming/gcc/gcc/varasm.c:5240 0x1087dad output_constant /home/marxin/Programming/gcc/gcc/varasm.c:5529 0x1087dad output_constructor_regular_field /home/marxin/Programming/gcc/gcc/varasm.c:5529 0x1087dad output_constructor /home/marxin/Programming/gcc/gcc/varasm.c:5796 0x1089793 output_constant /home/marxin/Programming/gcc/gcc/varasm.c:5148 0x1089793 assemble_variable_contents /home/marxin/Programming/gcc/gcc/varasm.c:2211 0x108f0d4 assemble_variable(tree_node*, int, int, int) /home/marxin/Programming/gcc/gcc/varasm.c:2390 0x1092dd9 varpool_node::assemble_decl() /home/marxin/Programming/gcc/gcc/varpool.c:595 0x1092dd9 varpool_node::assemble_decl() /home/marxin/Programming/gcc/gcc/varpool.c:563 0x1093900 symbol_table::output_variables() /home/marxin/Programming/gcc/gcc/varpool.c:761 0x8e4a66 symbol_table::compile() /home/marxin/Programming/gcc/gcc/cgraphunit.c:2361 0x8e4a66 symbol_table::compile() /home/marxin/Programming/gcc/gcc/cgraphunit.c:2269 0x82d7b4 lto_main() /home/marxin/Programming/gcc/gcc/lto/lto.c:653 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: error: lto-wrapper failed collect2: error: ld returned 1 exit status
next reply other threads:[~2021-03-31 15:21 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-31 15:21 marxin at gcc dot gnu.org [this message] 2021-03-31 15:21 ` [Bug lto/99849] " marxin at gcc dot gnu.org 2021-03-31 15:28 ` marxin at gcc dot gnu.org 2021-04-01 6:56 ` rguenth at gcc dot gnu.org 2021-04-09 15:05 ` [Bug lto/99849] [8/9/10/11 Regression] " jakub at gcc dot gnu.org 2021-04-09 15:22 ` jakub at gcc dot gnu.org 2021-04-10 10:49 ` cvs-commit at gcc dot gnu.org 2021-04-10 10:51 ` [Bug lto/99849] [8/9/10 " jakub at gcc dot gnu.org 2021-04-20 9:45 ` cvs-commit at gcc dot gnu.org 2021-04-20 9:51 ` [Bug lto/99849] [8/9 " jakub at gcc dot gnu.org 2021-04-20 23:34 ` cvs-commit at gcc dot gnu.org 2021-04-22 16:52 ` cvs-commit at gcc dot gnu.org 2021-04-22 17:11 ` jakub 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-99849-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: linkBe 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).