This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
other/8437: GCC 3.2 don't produces builtin code for __builtin_alloca
- From: bkausbk at web dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 3 Nov 2002 13:26:01 -0000
- Subject: other/8437: GCC 3.2 don't produces builtin code for __builtin_alloca
- Reply-to: bkausbk at web dot de
>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=