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: Fix presumed type clash in "ld - fix for bug 13343"


On Sat, Feb 18, 2012 at 05:19:55AM +0100, Hans-Peter Nilsson wrote:
> Index: ldmisc.c
> ===================================================================
> RCS file: /cvs/src/src/ld/ldmisc.c,v
> retrieving revision 1.41
> diff -p -u -r1.41 ldmisc.c
> --- ldmisc.c	17 Feb 2012 14:09:57 -0000	1.41
> +++ ldmisc.c	18 Feb 2012 04:07:15 -0000
> @@ -241,12 +241,12 @@ vfinfo (FILE *fp, const char *fmt, va_li
>  	    case 'S':
>  	      /* Print script file and linenumber.  */
>  	      {
> -		node_type node;
> +		etree_type node;
>  		etree_type *tp = va_arg (arg, etree_type *);
>  
>  		if (tp == NULL)
>  		  {
> -		    tp = (etree_type *) &node;
> +		    tp = &node;
>  		    tp->type.filename = ldlex_filename ();
>  		    tp->type.lineno = lineno;
>  		  }

Huh, that's how I had it to start with.  Silly me for saving a few
bytes.  My 4.4.3-4ubuntu5 and gcc mainline builds were fine.  OK.

-- 
Alan Modra
Australia Development Lab, IBM


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