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: Invalid processor variant -mcpu=strongarm1100


I haven't tested out 2.12 yet, but the following mini-patch to the specs
file allows gcc to be used with older binutils. To the casual reader,
this shouldn't be applied unless you're using a new gcc (>=3.x) with an
old binutils (<=2.11), and get the error:
Assembler messages:
Error: Invalid processor variant -mcpu=strongarm

Cheers,
Shaun


--- specs-      2003-07-07 15:12:24.000000000 -0600
+++ specs       2003-07-08 10:43:46.000000000 -0600
@@ -1,5 +1,5 @@
 *asm:
---traditional-format %{fpic: -k} %{fPIC: -k} %{mbig-endian:-EB}
%{mcpu=*:-mcpu=%*} %{march=*:-march=%*} %{mapcs-float:-mfloat}
%{msoft-float:-mno-fpu} %{mthumb-interwork:-mthumb-interwork}
%(subtarget_extra_asm_spec)
+--traditional-format %{fpic: -k} %{fPIC: -k} %{mbig-endian:-EB}
%{mcpu=*:-m%*}
%{march=*:-m%*} %{mapcs-float:-mfloat} %{msoft-float:-mno-fpu}
%{mthumb-interwork:-mthumb-interwork} %(subtarget_extra_asm_spec)
  
 *asm_debug:
 %{g*:--gstabs}


> gcc-3.3 requires a version of gas that can directly parse the 
> -mcpu=<cpuname> option.  Older assemblers used -m<cpuname> and had a very 
> ad-hoc way of matching up cpu names to attributes (and occasionally got it 
> wrong); it also required gcc to try to translate the command line options 
> into something that gas could eat.
> 
> I forget precisely which version of gas first incorporated the new code, I 
> think it was 2.12, but it might be later than that.
> 
> R.
> 
> PS If you are really stuck, you might be able to hack the "specs" file in 
> the install area (something like lib/gcc-lib/arm-elf-3.3/specs) and change 
> the rule to use the old syntax, but you'll have to figure out the details 
> of the change for yourself.


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