[patch] Libgloss: fix for building mips16.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[patch] Libgloss: fix for building mips16.

David Ung

This patch fixes the problem of trying to build libgloss for mips16.  As
cygmon.c cannot be compiled with mips16 since it uses "syscall".
ok?

David.

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

Index: libgloss/mips/Makefile.in
===================================================================
RCS file: /cvs/src/src/libgloss/mips/Makefile.in,v
retrieving revision 1.6
diff -c -p -b -r1.6 Makefile.in
*** libgloss/mips/Makefile.in 28 Jun 2004 22:42:20 -0000 1.6
--- libgloss/mips/Makefile.in 13 Oct 2005 16:47:14 -0000
*************** cfe_mem.o: ${srcdir}/cfe_mem.c ${srcdir}
*** 243,248 ****
--- 243,251 ----
  cma101.o: ${srcdir}/cma101.c
  $(CC) -c $(CFLAGS_FOR_TARGET) $(CFLAGS) -mno-mips16 ${srcdir}/cma101.c
 
+ # cygmon can not be compiled 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

Reply | Threaded
Open this post in threaded view
|

Re: [patch] Libgloss: fix for building mips16.

Eric Christopher-2

On Oct 13, 2005, at 9:48 AM, David Ung wrote:

>
> This patch fixes the problem of trying to build libgloss for  
> mips16.  As
> cygmon.c cannot be compiled with mips16 since it uses "syscall".
> ok?

libgloss is part of newlib. You need to send the patch there.


-eric