From: Andrew Pinski Date: Tue, 1 Jan 2008 21:26:29 +0000 (+0000) Subject: tag_manager.c: Include stdlib.h. X-Git-Tag: releases/gcc-4.3.0~783 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b7d5ac96951d4b22a27df77c49d863a955eabd0;p=thirdparty%2Fgcc.git tag_manager.c: Include stdlib.h. 2008-01-01 Andrew Pinski * 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cc0418c46582..76e5a14de926 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-01-01 Andrew Pinski + + * 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 * 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 530c03f2afc2..58eca021bf3f 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 a90e37e96e38..24a206c4b959 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 +#include /* This test directly accesses the internal table used by the MFC tag manager. */