This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

Re: [gold patch] Fix internal error with --start-lib and object file with no global syms


"H.J. Lu" <hjl.tools@gmail.com> writes:

> Your patch changed testsuite/start_lib_test_3.c to
>
> static char t3[] = "t3";
>
> I got
>
> cc1: warnings being treated as errors
> /net/gnu-6/export/linux/src/binutils/binutils/gold/testsuite/start_lib_test_3.c:25:
> warning: ât3â defined but not used
>
> and this test failed.

Fixed like so.  Committed to mainline.

Ian


2010-08-27  Ian Lance Taylor  <iant@google.com>

	* testsuite/start_lib_test_3.c: Mark t3 as used.


Index: testsuite/start_lib_test_3.c
===================================================================
RCS file: /cvs/src/src/gold/testsuite/start_lib_test_3.c,v
retrieving revision 1.2
diff -u -r1.2 start_lib_test_3.c
--- testsuite/start_lib_test_3.c	23 Aug 2010 20:28:24 -0000	1.2
+++ testsuite/start_lib_test_3.c	27 Aug 2010 17:56:40 -0000
@@ -22,4 +22,4 @@
 
    This is a test of the --start-lib and --end-lib options.  */
 
-static char t3[] = "t3";
+static char t3[] __attribute__ ((used)) = "t3";

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