[patch] gas and xscale (arm)

jeroen dobbelaere jeroen.dobbelaere@acunia.com
Mon Dec 3 06:00:00 GMT 2001


Hi,

following patch ensures that 'arm-linux-as -mxscale' is handled
in a similar way as 'arm-linux-as -mstrongarm' :
the 'fpu' default should not change...


diff -rC5 binutils-2.11.92.0.12.3/gas/ChangeLog binutils-2.11.92.0.12.3-new/gas/ChangeLog
*** binutils-2.11.92.0.12.3/gas/ChangeLog	Thu Nov 22 00:35:32 2001
--- binutils-2.11.92.0.12.3-new/gas/ChangeLog	Mon Dec  3 14:55:24 2001
***************
*** 1,5 ****
--- 1,10 ----
+ 2001-12-03  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
+
+ 	* config/tc-arm.c (md_parse_option): Only clear cpu part when
+ 	specifying 'xscale' cpu (don't change the fpu part).
+
   2001-11-21  Richard Sandiford  <rsandifo@redhat.com>

   	* config/tc-mips.c (mips_need_elf_addend_fixup): New, extracted from...
   	(md_apply_fix3): ...here.  Don't prevent the symbol value being
   	subtracted twice from GPREL addends.
diff -rC5 binutils-2.11.92.0.12.3/gas/config/tc-arm.c binutils-2.11.92.0.12.3-new/gas/config/tc-arm.c
*** binutils-2.11.92.0.12.3/gas/config/tc-arm.c	Fri Nov 16 23:05:52 2001
--- binutils-2.11.92.0.12.3-new/gas/config/tc-arm.c	Mon Dec  3 14:53:01 2001
***************
*** 8986,8996 ****
   		goto bad;
   	      break;

               case 'x':
    	      if (streq (str, "xscale"))
!  		cpu_variant = ARM_9 | ARM_ARCH_XSCALE;
    	      else
    		goto bad;
         	      break;

   	    case 'v':
--- 8986,8996 ----
   		goto bad;
   	      break;

               case 'x':
    	      if (streq (str, "xscale"))
!  		cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_9 | ARM_ARCH_XSCALE;
    	      else
    		goto bad;
         	      break;

   	    case 'v':




Greetings,
--
Jeroen Dobbelaere
Embedded Software Engineer

ACUNIA Embedded Solutions
http://www.acunia.com




More information about the Binutils mailing list