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] Fix gcc.dg/attr-weak-hidden-1{,a}.c


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; }


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