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: PR 6848 fix


On Thu, Aug 21, 2008 at 03:39:44PM -0700, Steve Ellcey wrote:
> 
> On Fri, 2008-08-22 at 07:53 +0930, Alan Modra wrote:
> 
> > At a guess, try the following:
> > 
> > Index: gas/config/tc-hppa.c
> > ===================================================================
> > RCS file: /cvs/src/src/gas/config/tc-hppa.c,v
> > retrieving revision 1.138
> > diff -u -p -r1.138 tc-hppa.c
> > --- gas/config/tc-hppa.c	16 Mar 2008 23:16:03 -0000	1.138
> > +++ gas/config/tc-hppa.c	21 Aug 2008 22:20:06 -0000
> > @@ -8246,7 +8246,7 @@ md_begin (void)
> >    dummy_symbol = symbol_find_or_make ("L$dummy");
> >    S_SET_SEGMENT (dummy_symbol, text_section);
> >    /* Force the symbol to be converted to a real symbol.  */
> > -  (void) symbol_get_bfdsym (dummy_symbol);
> > +  (void) symbol_get_bfdsym (dummy_symbol)->flags |= BSF_KEEP;
> >  #endif
> >  }
> 
> I had to remove the '(void)' part of the new line to get it to compile
> but with that change it compiled and the resulting assembler would
> assemble my test case with no errors.  I will do some more testing of
> the assembler.

Committed with the (void) removed.

	* config/tc-hppa.c (md_begin): Set BSF_KEEP for "dummy_symbol".

-- 
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]