Commit 62f6a494 by Neil Booth Committed by Neil Booth

i370.h (TARGET_CPU_CPP_BUILTINS): Use.

config/i370:
	* i370.h (TARGET_CPU_CPP_BUILTINS): Use.
	* linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
	* mvs.h: Similarly.
	* oe.h: Similarly.

From-SVN: r54191
parent 0acb0203
2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
config/i370:
* i370.h (TARGET_CPU_CPP_BUILTINS): Use.
* linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
* mvs.h: Similarly.
* oe.h: Similarly.
Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz> Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
* final.c (final): Allow notes to not have computed addresses; * final.c (final): Allow notes to not have computed addresses;
......
...@@ -24,6 +24,18 @@ Boston, MA 02111-1307, USA. */ ...@@ -24,6 +24,18 @@ Boston, MA 02111-1307, USA. */
#ifndef GCC_I370_H #ifndef GCC_I370_H
#define GCC_I370_H #define GCC_I370_H
/* Target CPU builtins. */ \
#define TARGET_CPU_CPP_BUILTINS() \
do \
{ \
builtin_define_std ("GCC"); \
builtin_define_std ("gcc"); \
builtin_assert ("machine=i370"); \
builtin_assert ("cpu=i370"); \
} \
while (0)
/* Run-time compilation parameters selecting different hardware subsets. */ /* Run-time compilation parameters selecting different hardware subsets. */
extern int target_flags; extern int target_flags;
......
...@@ -32,10 +32,15 @@ Boston, MA 02111-1307, USA. */ ...@@ -32,10 +32,15 @@ Boston, MA 02111-1307, USA. */
/* TODO: convert include to ${tm_file} list in config.gcc. */ /* TODO: convert include to ${tm_file} list in config.gcc. */
#include "i370/i370.h" #include "i370/i370.h"
/* Names to predefine in the preprocessor for this target machine. */ /* Target OS preprocessor built-ins. */ \
#define TARGET_OS_CPP_BUILTINS() \
#undef CPP_PREDEFINES do { \
#define CPP_PREDEFINES "-DGCC -Dgcc -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -Asystem=posix -Acpu=i370 -Amachine=i370" builtin_define_std ("unix"); \
builtin_define_std ("linux"); \
builtin_define ("__gnu_linux__"); \
builtin_define ("__ELF__"); \
builtin_assert ("system=posix"); \
} while (0)
/* Options for this target machine. */ /* Options for this target machine. */
......
...@@ -32,12 +32,19 @@ Boston, MA 02111-1307, USA. */ ...@@ -32,12 +32,19 @@ Boston, MA 02111-1307, USA. */
#define CPP_SPEC "-trigraphs" #define CPP_SPEC "-trigraphs"
/* Names to predefine in the preprocessor for this target machine. */ /* Target OS preprocessor built-ins. */ \
#define TARGET_OS_CPP_BUILTINS() \
do { \
builtin_define_std ("MVS"); \
builtin_define_std ("mvs"); \
MAYBE_LE370_MACROS(); \
builtin_assert ("system=mvs"); \
} while (0)
#if defined(LE370) #if defined(LE370)
#define CPP_PREDEFINES "-DGCC -Dgcc -DMVS -Dmvs -DLE370 -Asystem=mvs -Acpu=i370 -Amachine=i370" # define MAYBE_LE370_MACROS() do {builtin_define_std ("LE370");} while (0)
#else #else
#define CPP_PREDEFINES "-DGCC -Dgcc -DMVS -Dmvs -Asystem=mvs -Acpu=i370 -Amachine=i370" # define MAYBE_LE370_MACROS()
#endif #endif
/* Include system common definitions */ /* Include system common definitions */
......
...@@ -39,9 +39,16 @@ Boston, MA 02111-1307, USA. */ ...@@ -39,9 +39,16 @@ Boston, MA 02111-1307, USA. */
#define LIBGCC_SPEC "" #define LIBGCC_SPEC ""
#define STARTFILE_SPEC "/usr/local/lib/gccmain.o" #define STARTFILE_SPEC "/usr/local/lib/gccmain.o"
/* Names to predefine in the preprocessor for this target machine. */ /* Target OS preprocessor built-ins. */ \
#define TARGET_OS_CPP_BUILTINS() \
#define CPP_PREDEFINES "-DGCC -Dgcc -DUNIX -Dunix -Dopenedition -D__i370__ -Asystem=openedition -Asystem=unix -Acpu=i370 -Amachine=i370" do { \
builtin_define_std ("unix"); \
builtin_define_std ("UNIX"); \
builtin_define_std ("openedition"); \
builtin_define ("__i370__"); \
builtin_assert ("system=openedition"); \
builtin_assert ("system=unix"); \
} while (0)
/* Include system common definitions */ /* Include system common definitions */
......
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