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: [patch] e500 port


> 	Then it seems that rs6000.h should define
> 
> + #define TARGET_SPE_ABI 0
> + #define TARGET_SPE 0
> + #define TARGET_ISEL 0
> + #define TARGET_FPRS 0

ok, I've changed this (except TARGET_FPRS is 1).

> and only rs6000/eabi.h and rs6000/eabisim.h should define

I'm defining only eabi.h see patch.

> 	Is there a reason that you want to define TARGET_8540 and only use
> it to set TARGET_SPE instead of defining TARGET_SPE directly?

Fixed as well.

This is working on powerpc-eabispe, and should not affect the rest of
the (non eabi) ports.  I'm running powerpc-eabi tests.

ok with these changes?

	* config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
	TARGET_ISEL, and TARGET_FPRS.

Index: eabi.h
===================================================================
RCS file: /cvs/uberbaum/gcc/config/rs6000/eabi.h,v
retrieving revision 1.6
diff -c -p -r1.6 eabi.h
*** eabi.h	10 Jul 2002 00:33:51 -0000	1.6
--- eabi.h	24 Jul 2002 22:22:03 -0000
*************** Boston, MA 02111-1307, USA.  */
*** 42,44 ****
--- 42,54 ----
        builtin_assert ("machine=powerpc"); \
      }                                     \
    while (0)
+ 
+ #undef TARGET_SPE_ABI
+ #undef TARGET_SPE
+ #undef TARGET_ISEL
+ #undef TARGET_FPRS
+ 
+ #define TARGET_SPE_ABI rs6000_spe_abi
+ #define TARGET_SPE (rs6000_cpu == PROCESSOR_PPC8540)
+ #define TARGET_ISEL rs6000_isel
+ #define TARGET_FPRS rs6000_fprs


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