This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, testsuite, hppa] Add -static to link to fix test failure
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 14 Apr 2010 09:46:18 -0700 (PDT)
- Subject: [patch, testsuite, hppa] Add -static to link to fix test failure
- Reply-to: sje at cup dot hp dot com
This patch fixes PR testsuite/43739, the failure of gcc.dg/pr43643.c on
the hppa*-*-hpux* platforms. On this platform you need to use -static
with -pg to get profiling information. This change matches what already
exists in gcc.dg/nest.c, gcc.dg/nested-func-4.c, and gcc.dg/pr32450.c
so I am going to check it in as obvious.
Tested on hppa2.0w-hp-hpux11.11 with no regressions.
Steve Ellcey
sje@cup.hp.com
2010-04-14 Steve Ellcey <sje@cup.hp.com>
PR testsuite/43739
* gcc.dg/pr43643.c: Use static link on hppa*-*-hpux*.
Index: gcc.dg/pr43643.c
===================================================================
--- gcc.dg/pr43643.c (revision 158289)
+++ gcc.dg/pr43643.c (working copy)
@@ -3,6 +3,7 @@
/* { dg-do run } */
/* { dg-require-profiling "-pg" } */
/* { dg-options "-O2 -pg" } */
+/* { dg-options "-O2 -pg -static" { target hppa*-*-hpux* } } */
extern char *strdup (const char *);