This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: RFA: Do not pass -


Hi Richard,

 #undef ASM_SPEC
- #define ASM_SPEC "%{march=iq2000: -m2000} %{march=iq10: -m10} %{!march=*: -m2000}"

Surely you want to remove the #undef as well? Otherwise ok.

Actually no :-) Without the #undef the port inherits the definition from gcc/config/svr4.h which passes -Qy onto GAS. -Qy is an option specific to some ports but not all of them, and the IQ2000 is one that does not support it. Hence GAS will barf if the ASM_SPEC is not undefined.


Of course it would probably be preferable if all ELF targeted GAS ports supported (and in most cases ignored) the -Qy option so that this #undef was rendered unnecessary. I'll look at doing this in my copious free time(TM).

Cheers
  Nick



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