OSDN Git Service

2008-01-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Jan 2008 21:26:29 +0000 (21:26 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Jan 2008 21:26:29 +0000 (21:26 +0000)
        * gcc.target/spu/tag_manager.c : Include stdlib.h.
        * gcc.target/spu/Wmain.c: Fix the line numbers for the
        warning on the function main.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131248 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/spu/Wmain.c
gcc/testsuite/gcc.target/spu/tag_manager.c

index cc0418c..76e5a14 100644 (file)
@@ -1,3 +1,9 @@
+2008-01-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       * gcc.target/spu/tag_manager.c : Include stdlib.h.
+       * gcc.target/spu/Wmain.c: Fix the line numbers for the
+       warning on the function main.
+
 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
 
        * gcc.target/i386/i386.exp (check_effective_target_sse5): Use __v8hi
index 530c03f..58eca02 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-Wmain -mstdmain" } */
 
-int main (void *wrong)
-{ /* { dg-warning "first argument of 'main' should be 'int'" "" } */
-  /* { dg-warning "'main' takes only zero or two arguments" "" { target *-*-* } 5 } */
+int main (void *wrong)/* { dg-warning "first argument of 'main' should be 'int'" "" } */
+{ 
+  /* { dg-warning "'main' takes only zero or two arguments" "" { target *-*-* } 4 } */
 }
index a90e37e..24a206c 100644 (file)
@@ -18,6 +18,7 @@
 /* { dg-do run } */
 
 #include <spu_mfcio.h>
+#include <stdlib.h>
 
 /* This test directly accesses the internal table used
    by the MFC tag manager.  */