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]

[RFA]: gas/config/tc-m32r.c


Hi,

I had problems building gas for m32r-elf and Nick suggested this patch 
which does the trick. Looking for approval to commit it.

Dave

Nick Clifton wrote:

> Hi Dave,
> 
>> I'm having a problem building gas for the target m32r-elf. There is a
>> call to m32r_do_align in tc-m32r.c but no corresponding function. The
>> ChangeLog shows that it was removed by rth on 2000-12-28 at the same
>> time as a new function, m32r_handle_align was added. Should the call
>> to m32r_do_align be removed or replaced by a call to m32r_handle_align?
> 
> 
> Actually I think it ought to be a call to frag_align_code() like this:
> 
> Cheers
>         Nick
> 
> 
> Index: gas/config/tc-m32r.c
> ===================================================================
> RCS file: /cvs/cvsfiles/devo/gas/config/tc-m32r.c,v
> retrieving revision 1.84
> diff -p -r1.84 tc-m32r.c
> *** tc-m32r.c	2001/02/11 03:44:21	1.84
> --- tc-m32r.c	2001/03/01 23:57:02
> *************** expand_debug_syms (syms, align)
> *** 444,450 ****
>     if (!syms)
>       return;
>   
> !   (void) m32r_do_align (align, NULL, 0, 0);
>     for (; syms != (sym_linkS *) 0; syms = next_syms)
>       {
>         symbolS *symbolP = syms->symbol;
> --- 444,450 ----
>     if (!syms)
>       return;
>   
> !   (void) frag_align_code (align, 0);
>     for (; syms != (sym_linkS *) 0; syms = next_syms)
>       {
>         symbolS *symbolP = syms->symbol;
> 
> 


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