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, committed] __LONGDOUBLE128 for AIX


	* config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
	(TARGET_OS_AIX_CPP_BUILTINS): this.  Conditionally define
	__LONGDOUBLE128.
	* config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
	TARGET_OS_AIX_CPP_BUILTINS.
	* config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
	* config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
	* config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
	* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
	previous change.

Index: aix.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/aix.h,v
retrieving revision 1.45
diff -c -p -r1.45 aix.h
*** aix.h	31 Jan 2004 02:07:04 -0000	1.45
--- aix.h	10 Mar 2004 21:15:54 -0000
***************
*** 58,76 ****
  #define LINK_LIBGCC_SPECIAL_1
  
  /* Names to predefine in the preprocessor for this target machine.  */
! #define TARGET_OS_CPP_BUILTINS()         \
!   do                                     \
!     {                                    \
!       builtin_define ("_IBMR2");         \
!       builtin_define ("_POWER");         \
!       builtin_define ("_AIX");           \
!       builtin_define ("_AIX32");         \
!       builtin_define ("_LONG_LONG");     \
!       builtin_assert ("system=unix");    \
!       builtin_assert ("system=aix");     \
!       builtin_assert ("cpu=rs6000");     \
!       builtin_assert ("machine=rs6000"); \
!     }                                    \
    while (0)
  
  /* Define appropriate architecture macros for preprocessor depending on
--- 58,77 ----
  #define LINK_LIBGCC_SPECIAL_1
  
  /* Names to predefine in the preprocessor for this target machine.  */
! #define TARGET_OS_AIX_CPP_BUILTINS()		\
!   do						\
!     {						\
!       builtin_define ("_IBMR2");		\
!       builtin_define ("_POWER");		\
!       builtin_define ("_AIX");			\
!       builtin_define ("_AIX32");		\
!       builtin_define ("_AIX41");		\
!       builtin_define ("_LONG_LONG");		\
!       if (TARGET_LONG_DOUBLE_128)		\
!         builtin_define ("__LONGDOUBLE128");	\
!       builtin_assert ("system=unix");		\
!       builtin_assert ("system=aix");		\
!     }						\
    while (0)
  
  /* Define appropriate architecture macros for preprocessor depending on
Index: aix41.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/aix41.h,v
retrieving revision 1.18
diff -c -p -r1.18 aix41.h
*** aix41.h	13 Apr 2003 17:51:05 -0000	1.18
--- aix41.h	10 Mar 2004 21:15:54 -0000
***************
*** 33,50 ****
  #define ASM_DEFAULT_SPEC "-mcom"
  
  #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS()      \
!   do                                  \
!     {                                 \
!       builtin_define ("_IBMR2");      \
!       builtin_define ("_POWER");      \
!       builtin_define ("_AIX");        \
!       builtin_define ("_AIX32");      \
!       builtin_define ("_AIX41");      \
!       builtin_define ("_LONG_LONG");  \
!       builtin_assert ("system=unix"); \
!       builtin_assert ("system=aix");  \
!     }                                 \
    while (0)
  
  #undef CPP_SPEC
--- 33,43 ----
  #define ASM_DEFAULT_SPEC "-mcom"
  
  #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS()     \
!   do                                 \
!     {                                \
!       TARGET_OS_AIX_CPP_BUILTINS (); \
!     }                                \
    while (0)
  
  #undef CPP_SPEC
Index: aix43.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/aix43.h,v
retrieving revision 1.30
diff -c -p -r1.30 aix43.h
*** aix43.h	13 Apr 2003 17:51:05 -0000	1.30
--- aix43.h	10 Mar 2004 21:15:54 -0000
*************** do {									\
*** 96,114 ****
  #define ASM_DEFAULT_SPEC "-mcom"
  
  #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS()      \
!   do                                  \
!     {                                 \
!       builtin_define ("_IBMR2");      \
!       builtin_define ("_POWER");      \
!       builtin_define ("_AIX");        \
!       builtin_define ("_AIX32");      \
!       builtin_define ("_AIX41");      \
!       builtin_define ("_AIX43");      \
!       builtin_define ("_LONG_LONG");  \
!       builtin_assert ("system=unix"); \
!       builtin_assert ("system=aix");  \
!     }                                 \
    while (0)
  
  #undef CPP_SPEC
--- 96,107 ----
  #define ASM_DEFAULT_SPEC "-mcom"
  
  #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS()     \
!   do                                 \
!     {                                \
!       builtin_define ("_AIX43");     \
!       TARGET_OS_AIX_CPP_BUILTINS (); \
!     }                                \
    while (0)
  
  #undef CPP_SPEC
Index: aix51.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/aix51.h,v
retrieving revision 1.22
diff -c -p -r1.22 aix51.h
*** aix51.h	18 Feb 2004 15:05:14 -0000	1.22
--- aix51.h	10 Mar 2004 21:15:54 -0000
*************** do {									\
*** 96,115 ****
  #define ASM_DEFAULT_SPEC "-mcom"
  
  #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS()      \
!   do                                  \
!     {                                 \
!       builtin_define ("_IBMR2");      \
!       builtin_define ("_POWER");      \
!       builtin_define ("_LONG_LONG");  \
!       builtin_define ("_AIX");        \
!       builtin_define ("_AIX32");      \
!       builtin_define ("_AIX41");      \
!       builtin_define ("_AIX43");      \
!       builtin_define ("_AIX51");      \
!       builtin_assert ("system=unix"); \
!       builtin_assert ("system=aix");  \
!     }                                 \
    while (0)
  
  #undef CPP_SPEC
--- 96,108 ----
  #define ASM_DEFAULT_SPEC "-mcom"
  
  #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS()     \
!   do                                 \
!     {                                \
!       builtin_define ("_AIX43");     \
!       builtin_define ("_AIX51");     \
!       TARGET_OS_AIX_CPP_BUILTINS (); \
!     }                                \
    while (0)
  
  #undef CPP_SPEC
Index: aix52.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/aix52.h,v
retrieving revision 1.7
diff -c -p -r1.7 aix52.h
*** aix52.h	18 Feb 2004 15:05:14 -0000	1.7
--- aix52.h	10 Mar 2004 21:15:54 -0000
*************** do {									\
*** 83,103 ****
  #define ASM_DEFAULT_SPEC "-mppc"
  
  #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS()      \
!   do                                  \
!     {                                 \
!       builtin_define ("_IBMR2");      \
!       builtin_define ("_POWER");      \
!       builtin_define ("_LONG_LONG");  \
!       builtin_define ("_AIX");        \
!       builtin_define ("_AIX32");      \
!       builtin_define ("_AIX41");      \
!       builtin_define ("_AIX43");      \
!       builtin_define ("_AIX51");      \
!       builtin_define ("_AIX52");      \
!       builtin_assert ("system=unix"); \
!       builtin_assert ("system=aix");  \
!     }                                 \
    while (0)
  
  #undef CPP_SPEC
--- 83,96 ----
  #define ASM_DEFAULT_SPEC "-mppc"
  
  #undef TARGET_OS_CPP_BUILTINS
! #define TARGET_OS_CPP_BUILTINS()     \
!   do                                 \
!     {                                \
!       builtin_define ("_AIX43");     \
!       builtin_define ("_AIX51");     \
!       builtin_define ("_AIX52");     \
!       TARGET_OS_AIX_CPP_BUILTINS (); \
!     }                                \
    while (0)
  
  #undef CPP_SPEC
Index: rs6000-c.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000-c.c,v
retrieving revision 1.13
diff -c -p -r1.13 rs6000-c.c
*** rs6000-c.c	10 Mar 2004 18:16:25 -0000	1.13
--- rs6000-c.c	10 Mar 2004 21:15:54 -0000
*************** rs6000_cpu_cpp_builtins (cpp_reader *pfi
*** 113,123 ****
    RS6000_CPU_CPP_ENDIAN_BUILTINS();
  
    if (TARGET_LONG_DOUBLE_128)
!     {
!       builtin_define ("__LONG_DOUBLE_128__");
!       if (TARGET_AIX && TARGET_XCOFF)
! 	builtin_define ("__LONGDOUBLE128");
!     }
  
    switch (rs6000_current_abi)
      {
--- 113,119 ----
    RS6000_CPU_CPP_ENDIAN_BUILTINS();
  
    if (TARGET_LONG_DOUBLE_128)
!     builtin_define ("__LONG_DOUBLE_128__");
  
    switch (rs6000_current_abi)
      {


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