public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/41001]  New: alloca broken for -fno-builtin
@ 2009-08-07 15:36 ktietz at gcc dot gnu dot org
  2009-08-07 15:38 ` [Bug middle-end/41001] " ktietz at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2009-08-07 15:36 UTC (permalink / raw)
  To: gcc-bugs

The function alloca (for cygwin/mingw target _alloca) is broken or not
available (for linux64), when using option -fno-builtin.

The linux and win32 targets the symbol alloca isn't present. For windows
targets there is an implementation (_alloca) in gcc/config/i386/cygwin.asm
present. But when using this, the stack layout is broken after calling alloca.

The attached example shows the failure for i?86 and x86_64 windows targets
pretty well.


-- 
           Summary: alloca broken for -fno-builtin
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ktietz at gcc dot gnu dot org
  GCC host triplet: x86_64-pc-linux
GCC target triplet: x86_64-*-* i686-*-*


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41001


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

end of thread, other threads:[~2009-08-08 10:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-07 15:36 [Bug middle-end/41001] New: alloca broken for -fno-builtin ktietz at gcc dot gnu dot org
2009-08-07 15:38 ` [Bug middle-end/41001] " ktietz at gcc dot gnu dot org
2009-08-07 17:24 ` joseph at codesourcery dot com
2009-08-07 21:06 ` ktietz at gcc dot gnu dot org
2009-08-07 22:36 ` joseph at codesourcery dot com
2009-08-08  8:44 ` ktietz at gcc dot gnu dot org
2009-08-08 10:31 ` rguenth at gcc dot gnu dot org
2009-08-08 10:37 ` joseph at codesourcery dot com

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