public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/67169] New: -fstack-check=no doesn't disable stack checking
@ 2015-08-10 11:12 dwmw2 at infradead dot org
  2015-08-15 11:48 ` [Bug target/67169] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dwmw2 at infradead dot org @ 2015-08-10 11:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67169
           Summary: -fstack-check=no doesn't disable stack checking
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dwmw2 at infradead dot org
  Target Milestone: ---

$ echo 'void foo(void) { char lots[8192]; }' | i686-w64-mingw32-gcc -S -o- -xc
- -fstack-check=no
        .file   ""
        .text
        .globl  _foo
        .def    _foo;   .scl    2;      .type   32;     .endef
_foo:
        pushl   %ebp
        movl    %esp, %ebp
        movl    $8192, %eax
        call    ___chkstk_ms
        subl    %eax, %esp
        nop
        leave
        ret
        .ident  "GCC: (GNU) 5.1.0 20150422 (Fedora MinGW 5.1.0-2.fc22)"


This is causing me problems when building the EDK II UEFI implementation.
Building that with MinGW is useful because it reproduces a number of
LLP64-related issues which would otherwise require Windows to discover.

If I use '-fstack-check=specific' *that* does seem to do what I want. But I'm
not sure I should be suggesting that as an upstream fix for the MinGW build,
because it seems wrong.


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

end of thread, other threads:[~2015-09-10  8:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-10 11:12 [Bug c/67169] New: -fstack-check=no doesn't disable stack checking dwmw2 at infradead dot org
2015-08-15 11:48 ` [Bug target/67169] " pinskia at gcc dot gnu.org
2015-08-15 13:27 ` dwmw2 at infradead dot org
2015-09-10  7:35 ` ebotcazou at gcc dot gnu.org
2015-09-10  8:45 ` dwmw2 at infradead dot org
2015-09-10  8:58 ` [Bug target/67169] add an option to disable stack checking on x86 for UEFI 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).