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 -- J. David Anglin dave.ang...@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602) 2012-12-09 John David Anglin <dave.ang...@nrc-cnrc.gc.ca> * gcc.misc-tests/gcov-12.c: Fix dg order. 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 () {