This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
alloca "bug" on x86?
- To: gcc at gcc dot gnu dot org
- Subject: alloca "bug" on x86?
- From: Nick Ing-Simmons <nik at tiuk dot ti dot com>
- Date: Tue, 21 Sep 1999 13:22:01 +0100 (BST)
- Organization: via, but not speaking for : Texas Instruments Ltd.
- Reply-To: Nick Ing-Simmons <nik at tiuk dot ti dot com>
The attached distilled fragment has been working fine on SPARC for years.
(I include .c file for brevity, the preprocessed .i file for reproduceability
and the .s file for easy examination.)
But when run x86 with egcs-1.1.2 (SuSE Linux 6.1) or with gcc-2.95.1
it segfaults. (Compiled -O2)
Is this use of alloca() legitimate ?
--
Nick Ing-Simmons <nik@tiuk.ti.com>
Via, but not speaking for: Texas Instruments Ltd.
stkdup.c
stkdup.i
stkdup.s