Commit b166fadd by Neil Booth Committed by Neil Booth

arc.h (CPP_PREDEFINES): Remove.

	* config/arc/arc.h (CPP_PREDEFINES): Remove.
	(CPP_SPEC): Update.
	(TARGET_CPU_CPP_BUILTINS): New.

From-SVN: r53510
parent 601328bb
2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk> 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
* config/arc/arc.h (CPP_PREDEFINES): Remove.
(CPP_SPEC): Update.
(TARGET_CPU_CPP_BUILTINS): New.
2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
* cpphash.h (cpp_macro): Move here, and make expansion a union. * cpphash.h (cpp_macro): Move here, and make expansion a union.
* cppmacro.c (cpp_macro): Remove. * cppmacro.c (cpp_macro): Remove.
(enter_macro_context, replace_args, warn_of_redefinition, (enter_macro_context, replace_args, warn_of_redefinition,
......
...@@ -43,13 +43,17 @@ Boston, MA 02111-1307, USA. */ ...@@ -43,13 +43,17 @@ Boston, MA 02111-1307, USA. */
#define TARGET_VERSION fprintf (stderr, " (arc)") #define TARGET_VERSION fprintf (stderr, " (arc)")
/* Names to predefine in the preprocessor for this target machine. */ /* Names to predefine in the preprocessor for this target machine. */
#define CPP_PREDEFINES "-Acpu=arc -Amachine=arc -D__arc__" #define TARGET_CPU_CPP_BUILTINS() \
do \
/* Additional flags for the preprocessor. */ { \
#define CPP_SPEC "\ builtin_define ("__arc__"); \
%{!mcpu=*:-D__base__} %{mcpu=base:-D__base__} \ if (TARGET_BIG_ENDIAN) \
%{EB:-D__big_endian__} \ builtin_define ("__big_endian__"); \
" if (arc_cpu_type == 0) \
builtin_define ("__base__"); \
builtin_assert ("cpu=arc"); \
builtin_assert ("machine=arc"); \
} while (0)
/* Pass -mmangle-cpu if we get -mcpu=*. /* Pass -mmangle-cpu if we get -mcpu=*.
Doing it this way lets one have it on as default with -mcpu=*, Doing it this way lets one have it on as default with -mcpu=*,
......
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