handling -march=invalidarch option in GCC driver
Zack Weinberg
zack@codesourcery.com
Sat Oct 11 21:12:00 GMT 2003
Marcus Binny <marcusbinny@yahoo.com> writes:
> Following only handles the valid values of -march or
> if the -march is not given at all
> #define LINK_SPEC "\
> %{march=small: -lsmall } \
> %{march=big: -lbig } \
> %{!march*:%(link_default)}"
>
> but how to handle the situation if we want to
> link_default in case -march=someinvalidarch is given
> on the command line.
With 3.4, I *think* this will do what you want:
%{march=small: -lsmall ;
march=big : -lbig ;
: %(link_default) }
zw
More information about the Gcc
mailing list