On 05/11/2012 03:16 PM, Paulo J. Matos wrote:
> Hi,
>
> MULTILIB_OPTIONS containing options defined in DRIVER_SELF_SPEC seemed
> to be fine in GCC46 but fail in GCC47.
>
> For example, I have:
> xap.h:
> #define DRIVER_SELF_SPECS \
> "%{help:-v} %<help", \
> "%{mno-args-span-regs-and-mem:-mno-split-args}
> %<mno-args-span-regs-and-mem", \
> "%{mno-inline-block-copy-mode:-mno-block-copy}
> %<mno-inline-block-copy-mode", \
> "%{mpu:-mno-block-copy -mfunction-ptr-pi} %<mpu"
>
> t-xap:
> MULTILIB_OPTIONS= msmall-mode/mpu
>
> However, while building GCC I get that xgcc cannot understand -mpu:
> Running configure in multilib subdir mpu
> pwd:
> /home/pm18/p4ws/pm18_binutils/bc/main/result/linux/intermediate/FirmwareGcc47Package/xap-local-xap
> mkdir mpu
> configure: creating cache ./config.cache
> checking build system type... i686-pc-linux-gnu
> checking host system type... xap-local-xap
> checking for --enable-version-specific-runtime-libs... no
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for gawk... gawk
> xgcc: error: unrecognized command line option '-mpu'
>
>
> What happened in GCC47 for this to occur?
Options not explicitly described in the compiler before their use in a
spec rules are now rejected. So you probably need to describe it into
your target optimization file, (something like xap.opt).
Cheers
Christian
>
> Cheers,
>