From patchwork Sun Dec 9 18:40:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [committed] Fix gcc.misc-tests/gcov-12.c test on hpux10 Date: Sun, 09 Dec 2012 08:40:52 -0000 From: John David Anglin X-Patchwork-Id: 204770 Message-Id: <20121209184051.GC20144@hiauly1.hia.nrc.ca> To: gcc-patches@gcc.gnu.org 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 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 () {