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]

2.95.3: more patches for ARM GNU/Linux


I'd like to propose this patch for inclusion in 2.95.3.  (An equivalent was 
installed in the trunk on 2000-08-01.)

The first part prevents CPP from intruding on the user's namespace.  Several 
programs have variables called `arm' and break if it's predefined.  The second 
part is needed to compile GCC for an armv2-linux target.

2000-12-23  Philip Blundell  <philb@gnu.org>

	* config/arm/linux-elf.h (CPP_PREDEFINES): Don't define `arm' or
	`arm_elf'; do define `__arm__'.

	* config/arm/linux-elf26.h (SUBTARGET_LINK_SPEC): Rename to ...
	(SUBTARGET_EXTRA_LINK_SPEC): ... this.

diff -ur src.old/gcc/config/arm/linux-elf.h src/gcc/config/arm/linux-elf.h
--- src.old/gcc/config/arm/linux-elf.h	Tue Sep  5 12:03:34 2000
+++ src/gcc/config/arm/linux-elf.h	Tue Sep  5 13:24:02 2000
@@ -92,8 +92,8 @@
 
 #undef  CPP_PREDEFINES
 #define CPP_PREDEFINES \
-"-Dunix -Darm -Dlinux -Asystem(unix) -Asystem(posix) -Acpu(arm) \
--Amachine(arm) -D__ELF__ -Darm_elf"
+"-Dunix -D__arm__ -Dlinux -Asystem(unix) -Asystem(posix) -Acpu(arm) \
+-Amachine(arm) -D__ELF__"
 
 #ifndef SUBTARGET_DEFAULT_APCS26
 #define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
diff -ur src.old/gcc/config/arm/linux-elf26.h src/gcc/config/arm/linux-elf26.h
--- src.old/gcc/config/arm/linux-elf26.h	Tue Sep  5 12:03:34 2000
+++ src/gcc/config/arm/linux-elf26.h	Tue Sep  5 13:22:41 2000
@@ -21,7 +21,7 @@
 
 #define SUBTARGET_DEFAULT_APCS26
 
-#define SUBTARGET_LINK_SPEC	\
+#define SUBTARGET_EXTRA_LINK_SPEC	\
 	" %{mapcs-32:-m elf32arm} %{!mapcs-32:-m elf32arm26}"
 
 #define SUBTARGET_EXTRA_ASM_SPEC	\





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