[PATCH] Fix gcc.dg/attr-weak-hidden-1{,a}.c

Richard Guenther rguenther@suse.de
Mon Feb 14 14:20:00 GMT 2011


This makes the definition of foo() in attr-weak-hidden-1.c strong, as
probably intended.  Otherwise the testcase fails for me when linking
the object files in different order.

Committed as obvious.
Richard.

2011-02-14  Richard Guenther  <rguenther@suse.de>

	* gcc.dg/attr-weak-hidden-1.c: Make definition of foo strong.

Index: gcc/testsuite/gcc.dg/attr-weak-hidden-1.c
===================================================================
--- gcc/testsuite/gcc.dg/attr-weak-hidden-1.c	(revision 170126)
+++ gcc/testsuite/gcc.dg/attr-weak-hidden-1.c	(working copy)
@@ -3,4 +3,4 @@
 /* { dg-require-visibility "" } */
 /* { dg-options "-O2" } */
 /* { dg-additional-sources "attr-weak-hidden-1a.c" } */
-int __attribute__((weak, visibility("hidden"))) foo (void) { return 0; }
+int __attribute__((visibility("hidden"))) foo (void) { return 0; }



More information about the Gcc-patches mailing list