This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] libgloss buildfix for mips16


Patch checked in.

-- Jeff J.

Thiemo Seufer wrote:
Hello All,

the appended patch builds cygmon.c always as non-mips16 code, this is
necessary because cygmon uses the syscall instruction which doesn't
exist in mips16.


Thiemo



2006-08-16 David Ung <davidu@mips.com>


	* mips/Makefile.in: Add rule for cygmon.o and pass the -mno-mips16
	option since it uses the syscall instruction.

Index: binutils/src/libgloss/mips/Makefile.in
===================================================================
--- libgloss/mips/Makefile.in.old 2004-06-28 23:42:20.000000000 +0100
+++ libgloss/mips/Makefile.in 2006-06-01 13:41:02.000000000 +0100
@@ -243,6 +243,9 @@
cma101.o: ${srcdir}/cma101.c
$(CC) -c $(CFLAGS_FOR_TARGET) $(CFLAGS) -mno-mips16 ${srcdir}/cma101.c
+# cygmon can not be compiled as mips16 since it uses the syscall instruction
+cygmon.o: ${srcdir}/cygmon.c
+ $(CC) -c $(CFLAGS_FOR_TARGET) $(CFLAGS) -mno-mips16 ${srcdir}/cygmon.c
syscalls.o: ${srcdir}/syscalls.c


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