From: Roger Sayle Date: Thu, 5 Sep 2002 23:07:13 +0000 (+0000) Subject: * regex.c: Only use "#pragma alloca" on AIX when not using gcc. X-Git-Tag: releases/gcc-3.3.0~3000 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=70c4e67a71d7d3b5b9ce02769e55b4e68bb07aa7;p=thirdparty%2Fgcc.git * regex.c: Only use "#pragma alloca" on AIX when not using gcc. From-SVN: r56871 --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 43a187d1bab4..3070ac359e8f 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +2002-09-05 Roger Sayle + + * regex.c: Only use "#pragma alloca" on AIX when not using gcc. + 2002-08-07 DJ Delorie * regex.c (re_error_msgid): Just use a simple array of strings. diff --git a/libiberty/regex.c b/libiberty/regex.c index a83cda055274..e2763dc2a514 100644 --- a/libiberty/regex.c +++ b/libiberty/regex.c @@ -25,7 +25,7 @@ routines with an "x" prefix so they do not collide with the native regex routines or with other components regex routines. */ /* AIX requires this to be the first thing in the file. */ -#if defined _AIX && !defined REGEX_MALLOC +#if defined _AIX && !defined __GNUC__ && !defined REGEX_MALLOC #pragma alloca #endif