This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[RFA]: gas/config/tc-m32r.c
- To: binutils at sources dot redhat dot com
- Subject: [RFA]: gas/config/tc-m32r.c
- From: Dave Brolley <brolley at redhat dot com>
- Date: Fri, 02 Mar 2001 17:13:48 -0500
- CC: Nick Clifton <nickc at redhat dot com>
- References: <3A9ED3BC.2030505@redhat.com> <p0ae75kpo8.fsf@elmo.cygnus.com>
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;
>
>