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]

Re: Problem with .req directive in arm-elf-as (2.15 branch)


Hi Peter,

The current binutils-2_15-branch has a problem with the ARM ".req"
pseudo-op.  The following code, which used to assemble correctly in 2.13,
now fails:

MMUPurgeTLBReg      .req c6
MMUCP               .req p15
MCR     MMUCP, 0, a1, MMUPurgeTLBReg, c0, 0

Apparently this results because the alias names are already downcased by the
time md_assemble() (and therefore create_register_alias()) in tc-arm.c get
to see them.


Thanks for catching this. It was due to a small typo in the sources which is fixed by the attached patch. I will be applying this patch to the sources shortly.

Cheers
 Nick

Index: gas/config/tc-arm.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arm.c,v
retrieving revision 1.167
diff -c -3 -p -r1.167 tc-arm.c
*** gas/config/tc-arm.c	22 Apr 2004 16:18:29 -0000	1.167
--- gas/config/tc-arm.c	30 Apr 2004 08:00:37 -0000
*************** create_register_alias (newname, p)
*** 11439,11445 ****
        char *copy_of_str;
        char *r;
  
! #ifdef IGNORE_OPCODE_CASE
        newname = original_case_string;
  #endif
        copy_of_str = newname;
--- 11439,11445 ----
        char *copy_of_str;
        char *r;
  
! #ifndef IGNORE_OPCODE_CASE
        newname = original_case_string;
  #endif
        copy_of_str = newname;

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