Commit bb904c1a by David Edelsohn Committed by David Edelsohn

aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...

	* 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.

From-SVN: r79274
parent b45d3a36
2004-03-10 David Edelsohn <edelsohn@gnu.org>
* 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.
2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* fold-const.c (tree_expr_nonnegative_p): Add more builtin cases. * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
......
...@@ -58,19 +58,20 @@ ...@@ -58,19 +58,20 @@
#define LINK_LIBGCC_SPECIAL_1 #define LINK_LIBGCC_SPECIAL_1
/* Names to predefine in the preprocessor for this target machine. */ /* Names to predefine in the preprocessor for this target machine. */
#define TARGET_OS_CPP_BUILTINS() \ #define TARGET_OS_AIX_CPP_BUILTINS() \
do \ do \
{ \ { \
builtin_define ("_IBMR2"); \ builtin_define ("_IBMR2"); \
builtin_define ("_POWER"); \ builtin_define ("_POWER"); \
builtin_define ("_AIX"); \ builtin_define ("_AIX"); \
builtin_define ("_AIX32"); \ builtin_define ("_AIX32"); \
builtin_define ("_LONG_LONG"); \ builtin_define ("_AIX41"); \
builtin_assert ("system=unix"); \ builtin_define ("_LONG_LONG"); \
builtin_assert ("system=aix"); \ if (TARGET_LONG_DOUBLE_128) \
builtin_assert ("cpu=rs6000"); \ builtin_define ("__LONGDOUBLE128"); \
builtin_assert ("machine=rs6000"); \ builtin_assert ("system=unix"); \
} \ builtin_assert ("system=aix"); \
} \
while (0) while (0)
/* Define appropriate architecture macros for preprocessor depending on /* Define appropriate architecture macros for preprocessor depending on
......
...@@ -33,18 +33,11 @@ ...@@ -33,18 +33,11 @@
#define ASM_DEFAULT_SPEC "-mcom" #define ASM_DEFAULT_SPEC "-mcom"
#undef TARGET_OS_CPP_BUILTINS #undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \ #define TARGET_OS_CPP_BUILTINS() \
do \ do \
{ \ { \
builtin_define ("_IBMR2"); \ TARGET_OS_AIX_CPP_BUILTINS (); \
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) while (0)
#undef CPP_SPEC #undef CPP_SPEC
......
...@@ -96,19 +96,12 @@ do { \ ...@@ -96,19 +96,12 @@ do { \
#define ASM_DEFAULT_SPEC "-mcom" #define ASM_DEFAULT_SPEC "-mcom"
#undef TARGET_OS_CPP_BUILTINS #undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \ #define TARGET_OS_CPP_BUILTINS() \
do \ do \
{ \ { \
builtin_define ("_IBMR2"); \ builtin_define ("_AIX43"); \
builtin_define ("_POWER"); \ TARGET_OS_AIX_CPP_BUILTINS (); \
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) while (0)
#undef CPP_SPEC #undef CPP_SPEC
......
...@@ -96,20 +96,13 @@ do { \ ...@@ -96,20 +96,13 @@ do { \
#define ASM_DEFAULT_SPEC "-mcom" #define ASM_DEFAULT_SPEC "-mcom"
#undef TARGET_OS_CPP_BUILTINS #undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \ #define TARGET_OS_CPP_BUILTINS() \
do \ do \
{ \ { \
builtin_define ("_IBMR2"); \ builtin_define ("_AIX43"); \
builtin_define ("_POWER"); \ builtin_define ("_AIX51"); \
builtin_define ("_LONG_LONG"); \ TARGET_OS_AIX_CPP_BUILTINS (); \
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) while (0)
#undef CPP_SPEC #undef CPP_SPEC
......
...@@ -83,21 +83,14 @@ do { \ ...@@ -83,21 +83,14 @@ do { \
#define ASM_DEFAULT_SPEC "-mppc" #define ASM_DEFAULT_SPEC "-mppc"
#undef TARGET_OS_CPP_BUILTINS #undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \ #define TARGET_OS_CPP_BUILTINS() \
do \ do \
{ \ { \
builtin_define ("_IBMR2"); \ builtin_define ("_AIX43"); \
builtin_define ("_POWER"); \ builtin_define ("_AIX51"); \
builtin_define ("_LONG_LONG"); \ builtin_define ("_AIX52"); \
builtin_define ("_AIX"); \ TARGET_OS_AIX_CPP_BUILTINS (); \
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) while (0)
#undef CPP_SPEC #undef CPP_SPEC
......
...@@ -113,11 +113,7 @@ rs6000_cpu_cpp_builtins (cpp_reader *pfile) ...@@ -113,11 +113,7 @@ rs6000_cpu_cpp_builtins (cpp_reader *pfile)
RS6000_CPU_CPP_ENDIAN_BUILTINS(); RS6000_CPU_CPP_ENDIAN_BUILTINS();
if (TARGET_LONG_DOUBLE_128) if (TARGET_LONG_DOUBLE_128)
{ builtin_define ("__LONG_DOUBLE_128__");
builtin_define ("__LONG_DOUBLE_128__");
if (TARGET_AIX && TARGET_XCOFF)
builtin_define ("__LONGDOUBLE128");
}
switch (rs6000_current_abi) switch (rs6000_current_abi)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment