public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* other/8437: GCC 3.2 don't produces builtin code for __builtin_alloca
@ 2002-11-03  5:36 bkausbk
  0 siblings, 0 replies; only message in thread
From: bkausbk @ 2002-11-03  5:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8437
>Category:       other
>Synopsis:       GCC 3.2 don't produces builtin code for __builtin_alloca
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          pessimizes-code
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 03 05:36:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Benjamin Kalytta
>Release:        GCC 3.2
>Organization:
>Environment:
cygwin (v. 1.1.8) x86/AMD Athlon XP2200+ - Windows 2000 Prof.
>Description:
GCC don't create builtin function __builtin_alloca as builtin, but instead it creates an external definition in objectfile to __alloca (usually a libgcc libary function).

How to repeat:
#define alloca(n) __builtin_alloca((n))
int main() {
	char *p=alloca(10);
	return (int)p;
}
>How-To-Repeat:
Any of this:
gcc -c test.c
gcc -fbuiltin -fhosted -c test.c
gcc -fhosted -c test.c
gcc -fno-builtin -c test.c
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.o"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.o"

TAEDAAAAAADQAAAADAAAAAAABAAudGV4dAAAAAAAAAAAAAAAMAAAAIwAAAC8AAAAAAAAAAIAAAAg
AABgLmRhdGEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAwC5ic3MAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAMBVieWD7AiD5PC4AAAAAIlF+ItF+OgAAAAA6AAAAACD
7BCJ4IlF/ItF/MnDkJCQkJAVAAAACwAAABQAGgAAAAkAAAAUAC5maWxlAAAAAAAAAP7/AABnAXRl
c3QuYwAAAAAAAAAAAAAAAF9tYWluAAAAAAAAAAEAIAACAC50ZXh0AAAAAAAAAAEAAAADASsAAAAC
AAAAAAAAAAAAAAAAAC5kYXRhAAAAAAAAAAIAAAADAQAAAAAAAAAAAAAAAAAAAAAAAC5ic3MAAAAA
AAAAAAMAAAADAQAAAAAAAAAAAAAAAAAAAAAAAF9fX21haW4AAAAAAAAAIAACAQAAAAAAAAAAAAAA
AAAAAAAAAF9fYWxsb2NhAAAAAAAAAAACAAQAAAA=


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-03 13:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-03  5:36 other/8437: GCC 3.2 don't produces builtin code for __builtin_alloca bkausbk

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