This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Defines for MIPS/Linux
- To: gcc-patches at gcc dot gnu dot org
- Subject: Defines for MIPS/Linux
- From: Andreas Jaeger <aj at suse dot de>
- Date: 09 Mar 2000 19:20:55 +0100
For MIPS/Linux we should define NO_IMPLICIT_EXTERN_C (as on other
Linux platforms) and TARGET_MEM_FUNCTIONS (this is general usage for
MIPS/Linux and IMO better).
Please apply the appended patch.
Thanks,
Andreas
2000-03-09 Andreas Jaeger <aj@suse.de>
* config/mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
(TARGET_MEM_FUNCTIONS): Define.
Index: gcc/config/mips/linux.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/mips/linux.h,v
retrieving revision 1.9
diff -u -r1.9 linux.h
--- linux.h 1999/11/28 08:03:00 1.9
+++ linux.h 2000/03/09 18:14:00
@@ -40,6 +40,12 @@
#undef DEFAULT_VTABLE_THUNKS
#define DEFAULT_VTABLE_THUNKS 1
+/* Don't assume anything about the header files. */
+#define NO_IMPLICIT_EXTERN_C
+
+/* Generate calls to memcpy, etc., not bcopy, etc. */
+#define TARGET_MEM_FUNCTIONS
+
/* Specify predefined symbols in preprocessor. */
#undef CPP_PREDEFINES
#if TARGET_ENDIAN_DEFAULT == 0
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de