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]

Further tweaks MIPS/Linux



We don't need MD_EXEC_PREFIX and MD_STARTFILE_PREFIX on Linux, I've
undefined them for MIPS/Linux.  

I'd also like to use the same ASM_FILE_START definition as is used on
other Linux platforms and for the Hurd on Mips.

I also changed the copyright notice, this has been forgotten by the
last checkin.

Please apply the appended patch.

Thanks,
Andreas


2000-03-10  Andreas Jaeger  <aj@suse.de>

	* config/mips/linux.h: Undefine MD_EXEC_PREFIX and
	MD_STARTFILE_PREFIX since those are not needed on linux.
	(ASM_FILE_START): New, from mips/gnu.h.


============================================================
Index: gcc/config/mips/linux.h
--- gcc/config/mips/linux.h	2000/03/09 19:38:52	1.10
+++ gcc/config/mips/linux.h	2000/03/10 12:12:24
@@ -1,5 +1,5 @@
 /* Definitions for MIPS running Linux-based GNU systems with ELF format.
-   Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -25,6 +25,19 @@
 #define TARGET_VERSION fprintf (stderr, " (MIPS GNU/ELF)");
 #endif
 
+#undef MD_EXEC_PREFIX
+#undef MD_STARTFILE_PREFIX
+
+/* Output at beginning of assembler file.  */
+/* The .file command should always begin the output.  */
+#undef ASM_FILE_START
+#define ASM_FILE_START(FILE)						\
+  do {									\
+	mips_asm_file_start (FILE);					\
+	fprintf (FILE, "\t.version\t\"01.01\"\n");			\
+  } while (0)
+
+
 /* Required to keep collect2.c happy */
 #undef OBJECT_FORMAT_COFF 
 
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

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