public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/111817] New: GCC: 14: internal compiler error: in expand_asm_stmt, at cfgexpand.cc:3389
@ 2023-10-15  1:26 141242068 at smail dot nju.edu.cn
  2023-11-12 23:24 ` [Bug middle-end/111817] ICE in expand_asm_stmt with invalid characters in inline-asm output operands pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: 141242068 at smail dot nju.edu.cn @ 2023-10-15  1:26 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111817
           Summary: GCC: 14: internal compiler error: in expand_asm_stmt,
                    at cfgexpand.cc:3389
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 141242068 at smail dot nju.edu.cn
  Target Milestone: ---

The bug triggering program:
```
static int foo(int x, int y, int z) {
  int b;
  asm("" : "=a"(b), "\n=&d"(x) : "0"(y), "1"(x), "mr"(z));
  return x;
}
```

The crash can be verfied at link: https://godbolt.org/z/6d7csd8xv

The full stack dump:
```
<source>: In function 'foo':
<source>:3:3: warning: output constraint '=' for operand 1 is not at the
beginning
    3 |   asm("" : "=a"(b), "\n=&d"(x) : "0"(y), "1"(x), "mr"(z));
      |   ^~~
<source>:3:3: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
    1 | static int foo(int x, int y, int z) {
      |            ^~~
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
    5 | }
      | ^
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:5:1: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
    1 | static int foo(int x, int y, int z) {
      |            ^~~
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:1:12: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:3:3: warning: output constraint '=' for operand 1 is not at the
beginning
    3 |   asm("" : "=a"(b), "\n=&d"(x) : "0"(y), "1"(x), "mr"(z));
      |   ^~~
<source>:3:3: warning: output constraint '=' for operand 1 is not at the
beginning
<source>:3:3: error: invalid punctuation '\x0a' in constraint
during RTL pass: expand
<source>:3:3: internal compiler error: in expand_asm_stmt, at cfgexpand.cc:3389
0x22ff3ee internal_error(char const*, ...)
        ???:0
0x9fc0a8 fancy_abort(char const*, int, char const*)
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
```

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

* [Bug middle-end/111817] ICE in expand_asm_stmt with invalid characters in inline-asm output operands
  2023-10-15  1:26 [Bug c/111817] New: GCC: 14: internal compiler error: in expand_asm_stmt, at cfgexpand.cc:3389 141242068 at smail dot nju.edu.cn
@ 2023-11-12 23:24 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-12 23:24 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2023-11-12
             Status|UNCONFIRMED                 |NEW
            Summary|GCC: 14: internal compiler  |ICE in expand_asm_stmt with
                   |error: in expand_asm_stmt,  |invalid characters in
                   |at cfgexpand.cc:3389        |inline-asm output operands

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

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

end of thread, other threads:[~2023-11-12 23:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-15  1:26 [Bug c/111817] New: GCC: 14: internal compiler error: in expand_asm_stmt, at cfgexpand.cc:3389 141242068 at smail dot nju.edu.cn
2023-11-12 23:24 ` [Bug middle-end/111817] ICE in expand_asm_stmt with invalid characters in inline-asm output operands pinskia 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).