Hi,

Please find the attached patch to add specific macros related to targets.

The current RX port does not contain specific macros related to targets.
For the compiler option "-mcpu=name", the valid names are rx600, rx200
and rx610. RX610 was first target supported, so this macro may have
been added for testing purpose.

$rx-elf-gcc test.c -mcpu=rx600
The rx600 is the default target and defines the macro "__RX_FPU_INSNS__"

The below command will generate code specific for RX200, $rx-elf-gcc
test.c -
mcpu=rx200 This command does not pass any specific macro, but does not
define __RX_FPU_INSNS__.

The -mcpu option does not support the rx100 target name, however the
rx200 should have the same effect as this target also does not support FPU.

No regression found with this patch.

Please review the patch and let me know if there should be any
modifications in it?


Regards,
Sandeep Kumar Singh,
KPIT Cummins InfoSystems Ltd.
Pune, India

gcc/ChangeLog
2013-05-02  Sandeep Kumar Singh  <sandeep.sin...@kpitcummins.com>

        * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200, and 
RX600. 
        * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
        * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
        * rx/t-rx: Add rx100 under multi library matches option for nofpu 
option.

Attachment: rx_macros.patch
Description: rx_macros.patch

Reply via email to