From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4166 invoked by alias); 20 Nov 2002 19:36:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 4141 invoked by uid 71); 20 Nov 2002 19:36:01 -0000 Resent-Date: 20 Nov 2002 19:36:01 -0000 Resent-Message-ID: <20021120193601.4140.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, bkausbk@web.de Received: (qmail 32335 invoked by uid 61); 20 Nov 2002 19:26:27 -0000 Message-Id: <20021120192627.32334.qmail@sources.redhat.com> Date: Thu, 28 Nov 2002 16:28:00 -0000 From: bkausbk@web.de Reply-To: bkausbk@web.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c/8661: GCC 3.2 don't produces builtin code for __builtin_alloca X-SW-Source: 2002-11/txt/msg01131.txt.bz2 List-Id: >Number: 8661 >Category: c >Synopsis: GCC 3.2 don't produces builtin code for __builtin_alloca >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Wed Nov 20 11:36:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Benjamin Kalytta >Release: GCC 3.x >Organization: >Environment: x86 cygwin (windows 2000 prof) >Description: GCC don't produces alloca builtin function if the file is just compiled with switch "gcc -c". #define alloca(x) __builtin_alloca(x) GCC will produce an external "_alloca" symbol. I think this should be fixed. whereas gcc test.c will work and don't produces external symbol. (symbol into cygwin.dll or other libc libraries) >How-To-Repeat: gcc -c test.c >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="test.c" Content-Disposition: inline; filename="test.c" #define alloca(x) __builtin_alloca(x) unsigned int m() { void * n=alloca(16); }