This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix gcc.dg/attr-weak-hidden-1{,a}.c
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: r dot sandiford at uk dot ibm dot com
- Date: Mon, 14 Feb 2011 14:39:56 +0100 (CET)
- Subject: [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; }