public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/90458] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection
       [not found] <bug-90458-4@http.gcc.gnu.org/bugzilla/>
@ 2020-12-09  8:07 ` rguenth at gcc dot gnu.org
  2020-12-09  8:22 ` ebotcazou at gcc dot gnu.org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-12-09  8:07 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu.org

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
IIRC AdaCore did the SEH stuff?  CCing Eric.

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

* [Bug target/90458] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection
       [not found] <bug-90458-4@http.gcc.gnu.org/bugzilla/>
  2020-12-09  8:07 ` [Bug target/90458] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection rguenth at gcc dot gnu.org
@ 2020-12-09  8:22 ` ebotcazou at gcc dot gnu.org
  2021-05-04 12:32 ` rguenth at gcc dot gnu.org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2020-12-09  8:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> In general on x86 the compiler handles stack allocation (and probing when
> stack clash protection is enabled).  However, on Windows targets that stuff
> is actually handled by calls to __chkstk_ms.
> 
> One could easily argue that stack-clash-protection should be a NOP or
> generate an error in a Windows environment.

Right, Windows has been doing stack clash protection since day #1, like for
example Tru64, so the option should just be a NOP on Windows.

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

* [Bug target/90458] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection
       [not found] <bug-90458-4@http.gcc.gnu.org/bugzilla/>
  2020-12-09  8:07 ` [Bug target/90458] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection rguenth at gcc dot gnu.org
  2020-12-09  8:22 ` ebotcazou at gcc dot gnu.org
@ 2021-05-04 12:32 ` rguenth at gcc dot gnu.org
  2021-08-22  7:54 ` pinskia at gcc dot gnu.org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-04 12:32 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

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

* [Bug target/90458] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection
       [not found] <bug-90458-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-05-04 12:32 ` rguenth at gcc dot gnu.org
@ 2021-08-22  7:54 ` pinskia at gcc dot gnu.org
  2021-08-22  7:54 ` pinskia at gcc dot gnu.org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-22  7:54 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nightstrike at gmail dot com

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 102010 has been marked as a duplicate of this bug. ***

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

* [Bug target/90458] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection
       [not found] <bug-90458-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2021-08-22  7:54 ` pinskia at gcc dot gnu.org
@ 2021-08-22  7:54 ` pinskia at gcc dot gnu.org
  2023-01-16 10:42 ` [Bug target/90458] [10/11/12/13 Regression] " rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-22  7:54 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vladimir.kokovic at gmail dot com

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 97795 has been marked as a duplicate of this bug. ***

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

* [Bug target/90458] [10/11/12/13 Regression] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection
       [not found] <bug-90458-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2021-08-22  7:54 ` pinskia at gcc dot gnu.org
@ 2023-01-16 10:42 ` rguenth at gcc dot gnu.org
  2023-02-04 20:22 ` pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-01-16 10:42 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |10.5

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

* [Bug target/90458] [10/11/12/13 Regression] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection
       [not found] <bug-90458-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2023-01-16 10:42 ` [Bug target/90458] [10/11/12/13 Regression] " rguenth at gcc dot gnu.org
@ 2023-02-04 20:22 ` pinskia at gcc dot gnu.org
  2023-02-14 21:13 ` nightstrike at gmail dot com
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-02-04 20:22 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lh_mouse at 126 dot com

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 108673 has been marked as a duplicate of this bug. ***

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

* [Bug target/90458] [10/11/12/13 Regression] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection
       [not found] <bug-90458-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2023-02-04 20:22 ` pinskia at gcc dot gnu.org
@ 2023-02-14 21:13 ` nightstrike at gmail dot com
  2023-02-15 22:33 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: nightstrike at gmail dot com @ 2023-02-14 21:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from nightstrike <nightstrike at gmail dot com> ---
FYI, this is the same as the failure in gcc/testsuite/gcc.dg/stack-check-16.c:

(running this under Wine)

during RTL pass: final
gcc.dg/stack-check-16.c:36:1: internal compiler error: in
i386_pe_seh_unwind_emit, at config/i386/winnt.cc:1274^M
0x86f42f i386_pe_seh_unwind_emit(_IO_FILE*, rtx_insn*)^M
        ../../gcc/config/i386/winnt.cc:1274^M
0xbd4d87 final_scan_insn_1^M
        ../../gcc/final.cc:2851^M
0xbd515b final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)^M
        ../../gcc/final.cc:2887^M
0xbd5347 final_1^M
        ../../gcc/final.cc:1979^M
0xbd5e36 rest_of_handle_final^M
        ../../gcc/final.cc:4240^M
0xbd5e36 execute^M
        ../../gcc/final.cc:4318^M
Please submit a full bug report, with preprocessed source (by using
-freport-bug).^M
Please include the complete backtrace with any bug report.^M
See <https://gcc.gnu.org/bugs/> for instructions.^M
compiler exited with status 1

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

* [Bug target/90458] [10/11/12/13 Regression] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection
       [not found] <bug-90458-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2023-02-14 21:13 ` nightstrike at gmail dot com
@ 2023-02-15 22:33 ` cvs-commit at gcc dot gnu.org
  2023-02-15 22:46 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-02-15 22:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Eric Botcazou <ebotcazou@gcc.gnu.org>:

https://gcc.gnu.org/g:a5dd99f7ef4fa5f9542851431bdd149a22b87fd2

commit r13-6069-ga5dd99f7ef4fa5f9542851431bdd149a22b87fd2
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Wed Feb 15 23:32:12 2023 +0100

    Fix PR target/90458

    This is the incompatibility of -fstack-clash-protection with Windows SEH.
    Now the Windows ports always enable TARGET_STACK_PROBE, which means that
    the stack is always probed (out of line) so -fstack-clash-protection does
    nothing more.

    gcc/
            PR target/90458
            * config/i386/i386.cc (ix86_compute_frame_layout): Disable the
            effects of -fstack-clash-protection for TARGET_STACK_PROBE.
            (ix86_expand_prologue): Likewise.

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

* [Bug target/90458] [10/11/12/13 Regression] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection
       [not found] <bug-90458-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2023-02-15 22:33 ` cvs-commit at gcc dot gnu.org
@ 2023-02-15 22:46 ` cvs-commit at gcc dot gnu.org
  2023-02-15 22:52 ` cvs-commit at gcc dot gnu.org
  2023-02-15 22:55 ` ebotcazou at gcc dot gnu.org
  11 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-02-15 22:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Eric Botcazou
<ebotcazou@gcc.gnu.org>:

https://gcc.gnu.org/g:25b80834e2ce6725e676ef33fbf0d009b3173955

commit r12-9177-g25b80834e2ce6725e676ef33fbf0d009b3173955
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Wed Feb 15 23:32:12 2023 +0100

    Fix PR target/90458

    This is the incompatibility of -fstack-clash-protection with Windows SEH.
    Now the Windows ports always enable TARGET_STACK_PROBE, which means that
    the stack is always probed (out of line) so -fstack-clash-protection does
    nothing more.

    gcc/
            PR target/90458
            * config/i386/i386.cc (ix86_compute_frame_layout): Disable the
            effects of -fstack-clash-protection for TARGET_STACK_PROBE.
            (ix86_expand_prologue): Likewise.

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

* [Bug target/90458] [10/11/12/13 Regression] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection
       [not found] <bug-90458-4@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2023-02-15 22:46 ` cvs-commit at gcc dot gnu.org
@ 2023-02-15 22:52 ` cvs-commit at gcc dot gnu.org
  2023-02-15 22:55 ` ebotcazou at gcc dot gnu.org
  11 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-02-15 22:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Eric Botcazou
<ebotcazou@gcc.gnu.org>:

https://gcc.gnu.org/g:20c12f40f9b10eb290fcfe4d02f3367842be573a

commit r11-10527-g20c12f40f9b10eb290fcfe4d02f3367842be573a
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Wed Feb 15 23:32:12 2023 +0100

    Fix PR target/90458

    This is the incompatibility of -fstack-clash-protection with Windows SEH.
    Now the Windows ports always enable TARGET_STACK_PROBE, which means that
    the stack is always probed (out of line) so -fstack-clash-protection does
    nothing more.

    gcc/
            PR target/90458
            * config/i386/i386.c (ix86_compute_frame_layout): Disable the
            effects of -fstack-clash-protection for TARGET_STACK_PROBE.
            (ix86_expand_prologue): Likewise.

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

* [Bug target/90458] [10/11/12/13 Regression] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection
       [not found] <bug-90458-4@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2023-02-15 22:52 ` cvs-commit at gcc dot gnu.org
@ 2023-02-15 22:55 ` ebotcazou at gcc dot gnu.org
  11 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2023-02-15 22:55 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
   Target Milestone|10.5                        |11.4
         Resolution|---                         |FIXED

--- Comment #12 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Fixed on mainline, 12 and 11 branches.

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

end of thread, other threads:[~2023-02-15 22:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-90458-4@http.gcc.gnu.org/bugzilla/>
2020-12-09  8:07 ` [Bug target/90458] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection rguenth at gcc dot gnu.org
2020-12-09  8:22 ` ebotcazou at gcc dot gnu.org
2021-05-04 12:32 ` rguenth at gcc dot gnu.org
2021-08-22  7:54 ` pinskia at gcc dot gnu.org
2021-08-22  7:54 ` pinskia at gcc dot gnu.org
2023-01-16 10:42 ` [Bug target/90458] [10/11/12/13 Regression] " rguenth at gcc dot gnu.org
2023-02-04 20:22 ` pinskia at gcc dot gnu.org
2023-02-14 21:13 ` nightstrike at gmail dot com
2023-02-15 22:33 ` cvs-commit at gcc dot gnu.org
2023-02-15 22:46 ` cvs-commit at gcc dot gnu.org
2023-02-15 22:52 ` cvs-commit at gcc dot gnu.org
2023-02-15 22:55 ` 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).