This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

alloca "bug" on x86?



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]