This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, testsuite, hppa] Add -static to link to fix test failure


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 *);
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]