This is the mail archive of the binutils@sources.redhat.com 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]

PATCH: Fix ld-elfvers/vers21.c for gcc 3.x


On Fri, Oct 04, 2002 at 09:48:07AM +0930, Alan Modra wrote:
> Hi HJ,
>   Have you tried compiling binutils with recent cvs gcc?  I get
> 
> FAIL: vers21
> 
> on --target=i686-linux --disable-nls --enable-64-bit-bfd --enable-targets=all
> 
> I'm wondering if you see the same, which would point to a gcc
> problem, or not, which would point to a problem with my gcc bootstrap
> compiler (2.95.3).
> 

I will check in this patch shortly.


H.J.
---
2002-10-03  H.J. Lu <hjl@gnu.org>

	* ld-elfvers/vers21.c (_old_foobar): Initialized to -1 for gcc
	3.x.

--- ld-elfvers/vers21.c.bss	Mon Jul 15 17:26:14 2002
+++ ld-elfvers/vers21.c	Thu Oct  3 23:35:10 2002
@@ -27,6 +27,6 @@ _old_foo () 
   return foo ();
 }
 
-int _old_foobar = 0;
+int _old_foobar = -1;
 
 int foobar = 1;


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