From: Aldy Hernandez Date: Tue, 9 Sep 2008 14:48:15 +0000 (+0000) Subject: pr12329.c: Place error message on function name line. X-Git-Tag: releases/gcc-4.4.0~2545 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=018fe68f30a380821f44af06c36d24a0df8fc4b4;p=thirdparty%2Fgcc.git pr12329.c: Place error message on function name line. PR/37442 * gcc.target/i386/pr12329.c: Place error message on function name line. * gcc.target/i386/sse-5.c: Same. From-SVN: r140155 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5393493a65b2..311b03ea33e9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -4,6 +4,13 @@ PR middle-end/30165 * g++.dg/torture/pr37354.C: New testcase. +2008-09-09 Aldy Hernandez + + PR/37442 + * gcc.target/i386/pr12329.c: Place error message on function name + line. + * gcc.target/i386/sse-5.c: Same. + 2008-09-09 Aldy Hernandez * gcc.dg/always_inline.c: Place error message on function diff --git a/gcc/testsuite/gcc.target/i386/pr12329.c b/gcc/testsuite/gcc.target/i386/pr12329.c index aeefeb0ce802..21d2c6580e20 100644 --- a/gcc/testsuite/gcc.target/i386/pr12329.c +++ b/gcc/testsuite/gcc.target/i386/pr12329.c @@ -6,8 +6,8 @@ extern void abort (void); int test_nested (int i) { - int __attribute__ ((__noinline__, __regparm__(3))) foo(int j, int k, int l) - { /* { dg-error "nested functions are limited to 2 register parameters" } */ + int __attribute__ ((__noinline__, __regparm__(3))) foo(int j, int k, int l) /* { dg-error "nested functions are limited to 2 register parameters" } */ + { return i + j + k + l; } diff --git a/gcc/testsuite/gcc.target/i386/sse-5.c b/gcc/testsuite/gcc.target/i386/sse-5.c index fa40366c38a7..c3ed8f2672b3 100644 --- a/gcc/testsuite/gcc.target/i386/sse-5.c +++ b/gcc/testsuite/gcc.target/i386/sse-5.c @@ -4,7 +4,7 @@ typedef double v2df __attribute__ ((vector_size (16))); v2df p; -q(v2df t) -{ /* { dg-warning "SSE" "" } */ +q(v2df t) /* { dg-warning "SSE" "" } */ +{ p=t; }