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]

[committed] Skip gcc.dg/attr-weakref-1.c on hppa*-*-hpux*


The test causes the HP linker to drop core.  The test will never
pass since the HP tools don't support undefined weak symbols.  The linker
drops core because there's no .IMPORT statement emitted for a number of
the extern function references.

Tested on trunk with hppa64-hp-hpux11.11 and hppa2.0-hp-hpux11.11.
Applied to 4.1 and trunk.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

2005-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	PR middle-end/24827
	* gcc.dg/attr-weakref-1.c: Skip test on hppa*-*-hpux*.

Index: gcc.dg/attr-weakref-1.c
===================================================================
--- gcc.dg/attr-weakref-1.c	(revision 109169)
+++ gcc.dg/attr-weakref-1.c	(working copy)
@@ -1,7 +1,10 @@
 // { dg-do run }
 // { dg-require-weak "" }
-// On darwin, we use attr-weakref-1-darwin.c
-// { dg-skip-if "" { "*-*-darwin*" } "*" { "" } }
+// On darwin, we use attr-weakref-1-darwin.c.
+// This test requires support for undefined weak symbols.  This support
+// is not available on hppa*-*-hpux*.  The test is skipped rather than
+// xfailed to suppress the warning that would otherwise arise.
+// { dg-skip-if "" { "*-*-darwin*" "hppa*-*-hpux*" } "*" { "" } }
 // { dg-options "-O2" }
 // { dg-additional-sources "attr-weakref-1a.c" }
 


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