diff options
author | Andrew Pinski <andrew_pinski@playstation.sony.com> | 2008-01-01 21:26:29 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2008-01-01 13:26:29 -0800 |
commit | 6b7d5ac96951d4b22a27df77c49d863a955eabd0 (patch) | |
tree | c02691c8b77ab9eed7e62c9a420ecbfdbb57efd9 /gcc | |
parent | fac9044d26a47eae4ac85ca1e46d8c9665b1548c (diff) | |
download | gcc-6b7d5ac96951d4b22a27df77c49d863a955eabd0.zip gcc-6b7d5ac96951d4b22a27df77c49d863a955eabd0.tar.gz gcc-6b7d5ac96951d4b22a27df77c49d863a955eabd0.tar.bz2 |
tag_manager.c: Include stdlib.h.
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.
From-SVN: r131248
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/spu/Wmain.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/spu/tag_manager.c | 1 |
3 files changed, 10 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cc0418c..76e5a14 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.target/spu/Wmain.c b/gcc/testsuite/gcc.target/spu/Wmain.c index 530c03f..58eca02 100644 --- a/gcc/testsuite/gcc.target/spu/Wmain.c +++ b/gcc/testsuite/gcc.target/spu/Wmain.c @@ -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 } */ } diff --git a/gcc/testsuite/gcc.target/spu/tag_manager.c b/gcc/testsuite/gcc.target/spu/tag_manager.c index a90e37e..24a206c 100644 --- a/gcc/testsuite/gcc.target/spu/tag_manager.c +++ b/gcc/testsuite/gcc.target/spu/tag_manager.c @@ -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. */ |