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]

PATCH: fix target arm-linux


The following patch gets GCC building for arm-linux.  Without the
patch, LINUX_TARGET_OS_CPP_BUILTINS is not defined at all.  Is this
the right fix, though?


2003-12-09  Ben Elliston  <bje@wasabisystems.com>

	* config/arm/linux-elf.h (LINUX_TARGET_OS_CPP_BUILTINS): Define.

Index: config/arm/linux-elf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/linux-elf.h,v
retrieving revision 1.42
diff -u -p -r1.42 linux-elf.h
--- config/arm/linux-elf.h	29 Nov 2003 03:08:09 -0000	1.42
+++ config/arm/linux-elf.h	9 Dec 2003 10:48:27 -0000
@@ -91,6 +91,16 @@
 
 #define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS()
 
+#define LINUX_TARGET_OS_CPP_BUILTINS()				\
+    do {							\
+	builtin_define ("__gnu_linux__");			\
+	builtin_define_std ("linux");				\
+	builtin_define_std ("unix");				\
+	builtin_assert ("system=linux");			\
+	builtin_assert ("system=unix");				\
+	builtin_assert ("system=posix");			\
+    } while (0)
+
 /* This is how we tell the assembler that two symbols have the same value.  */
 #define ASM_OUTPUT_DEF(FILE, NAME1, NAME2) \
   do					   \


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