aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-04-17 09:58:31 -0700
committerRichard Henderson <rth@gcc.gnu.org>1999-04-17 09:58:31 -0700
commitf5e68e33b2d4dfa9c3960ca527b2c831fc9ac71b (patch)
treea84855a8df261cae27f1591d6b300bd3f43b2048
parent134fddff1b18a53ef4d8aadbae7a6d49e1d2d286 (diff)
downloadgcc-f5e68e33b2d4dfa9c3960ca527b2c831fc9ac71b.zip
gcc-f5e68e33b2d4dfa9c3960ca527b2c831fc9ac71b.tar.gz
gcc-f5e68e33b2d4dfa9c3960ca527b2c831fc9ac71b.tar.bz2
uninit-9.c (func): Use __builtin_alloca instead of alloca to avoid the need for a prototype to...
* gcc.dg/uninit-9.c (func): Use __builtin_alloca instead of alloca to avoid the need for a prototype to supress a warning. From-SVN: r26522
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/uninit-9.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 909e974..e46b33a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+Sat Apr 17 16:56:48 1999 Richard Henderson <rth@cygnus.com>
+
+ * gcc.dg/uninit-9.c (func): Use __builtin_alloca instead of alloca
+ to avoid the need for a prototype to supress a warning.
+
Sun Apr 4 04:02:53 1999 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/990404-1.c: New test.
diff --git a/gcc/testsuite/gcc.dg/uninit-9.c b/gcc/testsuite/gcc.dg/uninit-9.c
index 8b439a4..62681f9 100644
--- a/gcc/testsuite/gcc.dg/uninit-9.c
+++ b/gcc/testsuite/gcc.dg/uninit-9.c
@@ -27,7 +27,7 @@ func(struct foo *list, int count)
if(list[0].type == PARALLEL)
{
- clob_list = alloca(count * sizeof(struct foo *));
+ clob_list = __builtin_alloca(count * sizeof(struct foo *));
for(i = 1; i < count; i++)
{