]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pr12329.c: Place error message on function name line.
authorAldy Hernandez <aldyh@redhat.com>
Tue, 9 Sep 2008 14:48:15 +0000 (14:48 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Tue, 9 Sep 2008 14:48:15 +0000 (14:48 +0000)
        PR/37442
        * gcc.target/i386/pr12329.c: Place error message on function name
        line.
        * gcc.target/i386/sse-5.c: Same.

From-SVN: r140155

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr12329.c
gcc/testsuite/gcc.target/i386/sse-5.c

index 5393493a65b2bdc4e4524ba17fe6ced6441a9a75..311b03ea33e923a74292f527ea4f64489b08aa32 100644 (file)
@@ -4,6 +4,13 @@
        PR middle-end/30165
        * g++.dg/torture/pr37354.C: New testcase.
 
+2008-09-09  Aldy Hernandez  <aldyh@redhat.com>
+
+       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  <aldyh@redhat.com>
 
        * gcc.dg/always_inline.c: Place error message on function
index aeefeb0ce802cf36ddaa2ca25aca6e787049cbc7..21d2c6580e20c15b5b3b9a5111ea06a34bfac4df 100644 (file)
@@ -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;
   }
 
index fa40366c38a7edc9c76cf081e148e7aa5badb198..c3ed8f2672b3c6ee4aab512739dff0c641cdb1e9 100644 (file)
@@ -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;
 }