public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/108673] New: ICE with -fstack-clash-protection and noreturn attribute on x86_64-w64-mingw32
@ 2023-02-04 13:03 lh_mouse at 126 dot com
  2023-02-04 15:49 ` [Bug target/108673] " franke at computer dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: lh_mouse at 126 dot com @ 2023-02-04 13:03 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108673
           Summary: ICE with -fstack-clash-protection and noreturn
                    attribute on x86_64-w64-mingw32
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lh_mouse at 126 dot com
  Target Milestone: ---

Original reported by Théo Cavignac here:
https://sourceforge.net/p/mingw-w64/mailman/message/37773946/

The ICE is only reproducible on x86_64-w64-mingw32, not on i686-w64-mingw32.
Original testcase follows:

```
/*
   /usr/bin/x86_64-w64-mingw32-gcc \
     -O2 -fstack-clash-protection -c \
     -freport-bug \
     -o f.o f.c
  */
void exit(int) __attribute__((noreturn));

void foo(int p) {
   exit(p);
}
```

```
# gcc -O2 -fstack-clash-protection f.c
during RTL pass: final
f.c: In function 'foo':
f.c:11:4: internal compiler error: in seh_emit_stackalloc, at
config/i386/winnt.cc:1055
   11 |    }
      |    ^
libbacktrace could not find executable to open
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://github.com/lhmouse/MINGW-packages/issues> for instructions.
```

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

end of thread, other threads:[~2023-02-14 18:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-04 13:03 [Bug target/108673] New: ICE with -fstack-clash-protection and noreturn attribute on x86_64-w64-mingw32 lh_mouse at 126 dot com
2023-02-04 15:49 ` [Bug target/108673] " franke at computer dot org
2023-02-04 20:22 ` pinskia at gcc dot gnu.org
2023-02-14 17:12 ` amy.mclaughlin at iar dot com
2023-02-14 18:01 ` franke at computer dot org
2023-02-14 18:11 ` ebotcazou 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).