uninit-9.c (func): Use __builtin_alloca instead of alloca to avoid the need for a...
authorRichard Henderson <rth@cygnus.com>
Sat, 17 Apr 1999 16:58:31 +0000 (09:58 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 17 Apr 1999 16:58:31 +0000 (09:58 -0700)
        * 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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/uninit-9.c

index 909e97474da68fd841fb6d45e77eaabc70f0fe9b..e46b33a519ad142d59338ddd95e32261300081e0 100644 (file)
@@ -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.
index 8b439a4512d559f44d16285fbc1b8e0bbf238046..62681f9e0fdbec4a00d4d6ef5b6afaefc59eb59b 100644 (file)
@@ -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++)
        {