public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/100501] New: ICE: segmentation fault on embedded asm code
@ 2021-05-10 12:09 cnsun at uwaterloo dot ca
  2021-05-11  6:15 ` [Bug c/100501] " rguenth at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: cnsun at uwaterloo dot ca @ 2021-05-10 12:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100501
           Summary: ICE: segmentation fault on embedded asm code
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cnsun at uwaterloo dot ca
  Target Milestone: ---

$ 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.FRQzt2wMfl-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 20210510 (experimental) [master revision
:fb3a8fb4a:25f9f35a85ffee808fc1482b14d91176df59751b] (GCC)
$
$ gcc-trunk mutant.c
mutant.c: In function ‘foo’:
mutant.c:5:16: internal compiler error: Segmentation fault
    4 |           : "m"(({
      |                 ~~
    5 |             if (8)
      |             ~~~^~~
    6 |               ;
      |               ~
    7 |           })));
      |           ~~
0xef73e3 crash_signal
        /tmp/tmp.FRQzt2wMfl-gcc-builder/gcc/gcc/toplev.c:327
0xbead04 is_gimple_variable
        /tmp/tmp.FRQzt2wMfl-gcc-builder/gcc/gcc/gimple-expr.h:84
0xbead04 is_gimple_id
        /tmp/tmp.FRQzt2wMfl-gcc-builder/gcc/gcc/gimple-expr.h:95
0xbead04 is_gimple_addressable
        /tmp/tmp.FRQzt2wMfl-gcc-builder/gcc/gcc/gimple-expr.h:122
0xbead04 is_gimple_lvalue(tree_node*)
        /tmp/tmp.FRQzt2wMfl-gcc-builder/gcc/gcc/gimple-expr.c:595
0xc2742d gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /tmp/tmp.FRQzt2wMfl-gcc-builder/gcc/gcc/gimplify.c:15038
0xc30a7d gimplify_asm_expr
        /tmp/tmp.FRQzt2wMfl-gcc-builder/gcc/gcc/gimplify.c:6506
0xc26765 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /tmp/tmp.FRQzt2wMfl-gcc-builder/gcc/gcc/gimplify.c:14416
0xc28fca gimplify_stmt(tree_node**, gimple**)
        /tmp/tmp.FRQzt2wMfl-gcc-builder/gcc/gcc/gimplify.c:6877
0xc297fe gimplify_bind_expr
        /tmp/tmp.FRQzt2wMfl-gcc-builder/gcc/gcc/gimplify.c:1421
0xc25a33 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /tmp/tmp.FRQzt2wMfl-gcc-builder/gcc/gcc/gimplify.c:14284
0xc28fca gimplify_stmt(tree_node**, gimple**)
        /tmp/tmp.FRQzt2wMfl-gcc-builder/gcc/gcc/gimplify.c:6877
0xc2a5c3 gimplify_body(tree_node*, bool)
        /tmp/tmp.FRQzt2wMfl-gcc-builder/gcc/gcc/gimplify.c:15328
0xc2aa11 gimplify_function_tree(tree_node*)
        /tmp/tmp.FRQzt2wMfl-gcc-builder/gcc/gcc/gimplify.c:15482
0xa7e737 cgraph_node::analyze()
        /tmp/tmp.FRQzt2wMfl-gcc-builder/gcc/gcc/cgraphunit.c:670
0xa81641 analyze_functions
        /tmp/tmp.FRQzt2wMfl-gcc-builder/gcc/gcc/cgraphunit.c:1234
0xa82111 symbol_table::finalize_compilation_unit()
        /tmp/tmp.FRQzt2wMfl-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.
$
$ cat mutant.c
void foo() {
  __asm__(""
          :
          : "m"(({
            if (8)
              ;
          })));
}
$

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-07-07 10:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [Bug c/100501] ICE with inline-asm and void statement expression cnsun at uwaterloo dot ca
2021-12-26 10:44 ` [Bug c/100501] [9/10/11/12 Regression] " 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

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).