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]

Tweaks for MIPS-Linux



The MIPS-Linux is missing some definitions.  I'm appending a patch
that creates a proper TARGET_VERSION and switches on the sysv pragmas
and vtable thunks which are needed on Linux.

Andreas

1999-11-24  Andreas Jaeger  <aj@suse.de>

	* config/mips/linux.h (TARGET_VERSION): Added.
	(HANDLE_SYSV_PRAGMA): Added.
	(DEFAULT_VTABLE_THUNKS): Added.

============================================================
Index: gcc/config/mips/linux.h
--- gcc/config/mips/linux.h	1999/09/24 02:01:08	1.6
+++ gcc/config/mips/linux.h	1999/11/24 08:13:36
@@ -18,6 +18,13 @@
 the Free Software Foundation, 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
+#undef TARGET_VERSION
+#if TARGET_ENDIAN_DEFAULT == 0
+#define TARGET_VERSION fprintf (stderr, " (MIPSel GNU/ELF)");
+#else
+#define TARGET_VERSION fprintf (stderr, " (MIPS GNU/ELF)");
+#endif
+
 /* Required to keep collect2.c happy */
 #undef OBJECT_FORMAT_COFF 
 
@@ -25,6 +32,13 @@
 #undef TARGET_DEFAULT
 #define TARGET_DEFAULT (MASK_ABICALLS|MASK_GAS)
 
+
+/* Handle #pragma weak and #pragma pack.  */
+#define HANDLE_SYSV_PRAGMA
+
+/* Use more efficient ``thunks'' to implement C++ vtables. */
+#undef DEFAULT_VTABLE_THUNKS
+#define DEFAULT_VTABLE_THUNKS 1
 
 /* Provide a STARTFILE_SPEC appropriate for GNU/Linux.  Here we add
    the GNU/Linux magical crtbegin.o file (see crtstuff.c) which

-- 
 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]