Commit 6508bdd5 by Neil Booth Committed by Neil Booth

sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.


	* config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
	* config/sparc/liteelf.h, config/sparc/openbsd64.h,
	config/sparc/rtemself.h, config/sparc/sol2-64.h,
	config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
	Update for use of TARGET_SUB_OS_CPP_BUILTINS.

From-SVN: r66905
parent 8d55c164
2003-05-17 Neil Booth <neil@daikokuya.co.uk> 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
* config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
* config/sparc/liteelf.h, config/sparc/openbsd64.h,
config/sparc/rtemself.h, config/sparc/sol2-64.h,
config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
Update for use of TARGET_SUB_OS_CPP_BUILTINS.
2003-05-17 Neil Booth <neil@daikokuya.co.uk>
* i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES. TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
......
...@@ -53,6 +53,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -53,6 +53,7 @@ Boston, MA 02111-1307, USA. */
" "
/* Names to predefine in the preprocessor for this target machine. */ /* Names to predefine in the preprocessor for this target machine. */
#define TARGET_SUB_OS_CPP_BUILTINS()
#define TARGET_OS_CPP_BUILTINS() \ #define TARGET_OS_CPP_BUILTINS() \
do { \ do { \
builtin_define_std ("unix"); \ builtin_define_std ("unix"); \
...@@ -62,7 +63,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -62,7 +63,7 @@ Boston, MA 02111-1307, USA. */
builtin_define ("__PRAGMA_REDEFINE_EXTNAME"); \ builtin_define ("__PRAGMA_REDEFINE_EXTNAME"); \
builtin_assert ("system=unix"); \ builtin_assert ("system=unix"); \
builtin_assert ("system=svr4"); \ builtin_assert ("system=svr4"); \
/* For C++ we need to add some additional macro \ /* For C++ we need to add some additional macro \
definitions required by the C++ standard \ definitions required by the C++ standard \
library. */ \ library. */ \
if (c_language == clk_cplusplus) \ if (c_language == clk_cplusplus) \
...@@ -72,6 +73,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -72,6 +73,7 @@ Boston, MA 02111-1307, USA. */
builtin_define ("_LARGEFILE64_SOURCE=1"); \ builtin_define ("_LARGEFILE64_SOURCE=1"); \
builtin_define ("__EXTENSIONS__"); \ builtin_define ("__EXTENSIONS__"); \
} \ } \
TARGET_SUB_OS_CPP_BUILTINS(); \
} while (0) } while (0)
/* The sun bundled assembler doesn't accept -Yd, (and neither does gas). /* The sun bundled assembler doesn't accept -Yd, (and neither does gas).
......
...@@ -19,7 +19,8 @@ along with GNU CC; see the file COPYING. If not, write to ...@@ -19,7 +19,8 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#define TARGET_OS_CPP_BUILTINS() \ #undef TARGET_SUB_OS_CPP_BUILTINS
#define TARGET_SUB_OS_CPP_BUILTINS() \
do \ do \
{ \ { \
builtin_define ("__sparclite__"); \ builtin_define ("__sparclite__"); \
......
...@@ -31,7 +31,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -31,7 +31,6 @@ Boston, MA 02111-1307, USA. */
#define SPARC_DEFAULT_CMODEL CM_MEDMID #define SPARC_DEFAULT_CMODEL CM_MEDMID
/* Target OS builtins. */ /* Target OS builtins. */
#undef TARGET_OS_CPP_BUILTINS /* Defined in sp64-elf.h. */
#define TARGET_OS_CPP_BUILTINS() \ #define TARGET_OS_CPP_BUILTINS() \
do \ do \
{ \ { \
......
...@@ -20,7 +20,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, ...@@ -20,7 +20,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* Target OS builtins. */ /* Target OS builtins. */
#define TARGET_OS_CPP_BUILTINS() \ #define TARGET_SUB_OS_CPP_BUILTINS() \
do \ do \
{ \ { \
builtin_define_std ("sparc"); \ builtin_define_std ("sparc"); \
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
MASK_STACK_BIAS + MASK_FPU + MASK_LONG_DOUBLE_128) MASK_STACK_BIAS + MASK_FPU + MASK_LONG_DOUBLE_128)
/* Target OS builtins. */ /* Target OS builtins. */
#define TARGET_OS_CPP_BUILTINS() \ #undef TARGET_SUB_OS_CPP_BUILTINS
#define TARGET_SUB_OS_CPP_BUILTINS() \
do \ do \
{ \ { \
builtin_define_std ("sparc"); \ builtin_define_std ("sparc"); \
......
...@@ -38,8 +38,9 @@ Boston, MA 02111-1307, USA. */ ...@@ -38,8 +38,9 @@ Boston, MA 02111-1307, USA. */
#undef SPARC_DEFAULT_CMODEL #undef SPARC_DEFAULT_CMODEL
#define SPARC_DEFAULT_CMODEL CM_EMBMEDANY #define SPARC_DEFAULT_CMODEL CM_EMBMEDANY
/* Target OS builtins. */ /* Target OS builtins for config/sol.h. */
#define TARGET_OS_CPP_BUILTINS() \ #undef TARGET_SUB_OS_CPP_BUILTINS
#define TARGET_SUB_OS_CPP_BUILTINS() \
do \ do \
{ \ { \
builtin_define_std ("sparc"); \ builtin_define_std ("sparc"); \
......
...@@ -19,7 +19,8 @@ along with GNU CC; see the file COPYING. If not, write to ...@@ -19,7 +19,8 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#define TARGET_OS_CPP_BUILTINS() \ #undef TARGET_SUB_OS_CPP_BUILTINS
#define TARGET_SUB_OS_CPP_BUILTINS() \
do \ do \
{ \ { \
builtin_define ("__sparclite86x__"); \ builtin_define ("__sparclite86x__"); \
......
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