Patchwork [committed] Fix gcc.misc-tests/gcov-12.c test on hpux10

login
register
mail settings
Submitter John David Anglin
Date Dec. 9, 2012, 6:40 p.m.
Message ID <20121209184051.GC20144@hiauly1.hia.nrc.ca>
Download mbox | patch
Permalink /patch/204770/
State New
Headers show

Comments

John David Anglin - Dec. 9, 2012, 6:40 p.m.
The dg order is wrong.  As a result, dg-require-weak is ignored and
test fails on hpux10 which doesn't have weak.

Committed to trunk.

Dave

Patch

Index: gcc.misc-tests/gcov-12.c
===================================================================
--- gcc.misc-tests/gcov-12.c	(revision 194055)
+++ gcc.misc-tests/gcov-12.c	(working copy)
@@ -1,8 +1,8 @@ 
 /* Test gcov weak ellision.  */
 
+/* { dg-do run { target native } } */
+/* { dg-require-weak "" } */
 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
-/* { dg-require-weak "" } */
-/* { dg-do run { target native } } */
 
 int __attribute__ ((weak)) weak ()
 {