This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch for hppa1.1-unknown-rtems
- To: gcc-patches at gcc dot gnu dot org
- Subject: Patch for hppa1.1-unknown-rtems
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sun, 28 Oct 2001 09:09:12 -0500 (EST)
Currently, hppa1.1-unknown-rtems will not work because config.gcc sets
up Makefile to request pa/pa-pro.h which does not exist.
I noticed that there are two hppa1.1-unknown-rtems clauses in
config.gcc. The second one appears to allow cc1 to build.
So here's a patch to remove the bogus one, plus a minor warning fix
for a redefinition blather in every file.
Tested via a cross compile of cc1 from solaris2.7 to
hppa1.1-unknown-rtems.
Okay to install?
Thanks,
--Kaveh
2001-10-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
* config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
diff -rup orig/egcs-CVS20011026/gcc/config/pa/elf.h egcs-CVS20011026/gcc/config/pa/elf.h
--- orig/egcs-CVS20011026/gcc/config/pa/elf.h Fri Nov 17 01:05:22 2000
+++ egcs-CVS20011026/gcc/config/pa/elf.h Sat Oct 27 11:23:50 2001
@@ -40,6 +40,7 @@ do { \
output_file_directive ((FILE), main_input_filename); \
} while (0)
+#undef ASM_DECLARE_FUNCTION_NAME
#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \
do { \
if (TREE_PUBLIC (DECL)) \
@@ -81,6 +82,7 @@ do { \
(__main for example). To make sure all libcall names have section
info recorded in them, we do it here. */
+#undef ASM_OUTPUT_EXTERNAL_LIBCALL
#define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, RTL) \
do { fputs ("\t.IMPORT ", FILE); \
if (!function_label_operand (RTL, VOIDmode)) \
diff -rup orig/egcs-CVS20011026/gcc/config.gcc egcs-CVS20011026/gcc/config.gcc
--- orig/egcs-CVS20011026/gcc/config.gcc Fri Oct 19 19:17:56 2001
+++ egcs-CVS20011026/gcc/config.gcc Sat Oct 27 11:13:10 2001
@@ -741,13 +741,6 @@ hppa*-*-openbsd*)
target_cpu_default="MASK_PA_11"
tmake_file=pa/t-openbsd
;;
-hppa1.1-*-rtems*)
- tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
- tmake_file="pa/t-pro t-rtems"
- if test x$enable_threads = xyes; then
- thread_file='rtems'
- fi
- ;;
hppa1.1-*-pro*)
target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"