public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cnsun at uwaterloo dot ca" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/100501] ICE with inline-asm and void statement expression Date: Sat, 24 Jul 2021 02:20:06 +0000 [thread overview] Message-ID: <bug-100501-4-YnIqHARDPT@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-100501-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100501 --- Comment #6 from Chengnian Sun <cnsun at uwaterloo dot ca> --- Another duplicate. $ gcc-trunk -v Using built-in specs. COLLECT_GCC=gcc-trunk COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/configure --enable-languages=c,c++,lto --enable-checking-yes --enable-multiarch --prefix=/scratch/software/gcc-trunk --disable-bootstrap Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20210723 (experimental) [master revision :3eeaf64a5:01ac2f08b0105a1c85425d0e59216eb528c6d2ab] (GCC) $ cat mutant.c foo() { __asm__("" : : "m"(({}))); } $ gcc-trunk -w mutant.c mutant.c: In function ‘foo’: mutant.c:1:29: internal compiler error: Segmentation fault 1 | foo() { __asm__("" : : "m"(({}))); } | ~^~~ 0xf28613 crash_signal /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/toplev.c:328 0xc0eb94 is_gimple_variable /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimple-expr.h:84 0xc0eb94 is_gimple_id /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimple-expr.h:95 0xc0eb94 is_gimple_addressable /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimple-expr.h:122 0xc0eb94 is_gimple_lvalue(tree_node*) /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimple-expr.c:595 0xc4c06d gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:15179 0xc59038 gimplify_asm_expr /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:6497 0xc4bfb1 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:14556 0xc4db2a gimplify_stmt(tree_node**, gimple**) /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:6869 0xc4e35e gimplify_bind_expr /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:1426 0xc4b33c gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:14424 0xc4db2a gimplify_stmt(tree_node**, gimple**) /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:6869 0xc4f153 gimplify_body(tree_node*, bool) /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:15456 0xc4f5a1 gimplify_function_tree(tree_node*) /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:15610 0xaa2657 cgraph_node::analyze() /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/cgraphunit.c:670 0xaa5531 analyze_functions /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/cgraphunit.c:1234 0xaa6011 symbol_table::finalize_compilation_unit() /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/cgraphunit.c:2508 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.
next prev parent reply other threads:[~2021-07-24 2:20 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-10 12:09 [Bug c/100501] New: ICE: segmentation fault on embedded asm code cnsun at uwaterloo dot ca 2021-05-11 6:15 ` [Bug c/100501] " rguenth at gcc dot gnu.org 2021-05-11 22:57 ` pinskia at gcc dot gnu.org 2021-05-13 4:15 ` cnsun at uwaterloo dot ca 2021-07-19 23:20 ` pinskia at gcc dot gnu.org 2021-07-22 23:19 ` pinskia at gcc dot gnu.org 2021-07-24 2:20 ` cnsun at uwaterloo dot ca [this message] 2021-12-26 10:44 ` [Bug c/100501] [9/10/11/12 Regression] ICE with inline-asm and void statement expression pinskia at gcc dot gnu.org 2022-01-20 13:54 ` rguenth at gcc dot gnu.org 2022-05-27 9:45 ` [Bug c/100501] [10/11/12/13 " rguenth at gcc dot gnu.org 2022-06-28 10:44 ` jakub at gcc dot gnu.org 2023-07-07 10:39 ` [Bug c/100501] [11/12/13/14 " rguenth 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-100501-4-YnIqHARDPT@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).