ppc assembler problem
Gunther Nikl
gni@gecko.de
Thu Aug 18 07:35:00 GMT 2005
On Wed, Aug 17, 2005 at 12:33:12PM -0700, James E Wilson wrote:
> F. Heitkamp wrote:
> > a particular cpu. Looking at the specs file for the host compiler the
> > default is -mppc. When I gave the "--with-cpu=7400" shouldn't that have
> > made the default -m7400?. What about xgcc, how can I make that use
> > the 7400 cpu?
>
> Perhaps this is a case that gcc doesn't handle right. When you use the
> -m7400 option, gcc will pass -maltivec to the assembler.
3.3.6 doesn't.
> When you use --with-cpu=7400 at configure time, gcc should pass -maltivec
> to the assembler by default.
AFAICS, --with-cpu does only set the default CPU for the compiler.
> This is apparently not happening, and is probably a gcc bug. ASM_SPEC
> would have to be modified to fix this. You may be able to do this
> manually by creating a spec file and editing it to add the missing
> -maltivec option to the assembler specs.
He should provide a suitable ASM_DEFAULT_SPEC for his port and modify
the mcpu=7400 part of rs6000/rs6000.h/ASM_CPU_SPEC.
> You may want to report this problem into the gcc bugzilla database so it
> gets tracked and fixed.
Well, 3.3.6 is a dead branch. 3.4.x and later have a proper ASM_CPU_SPEC.
Gunther
More information about the Gcc
mailing list