This is the mail archive of the newlib@sources.redhat.com 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]

patch: mips16 and mips64 coexisting can't build setjmp.s


hi guys.

after this patch:

2001-03-08  Richard Sandiford  <rsandifo@redhat.com>

        * (libc/include/machine/setjmp.h): Use 23 long long ints for a
        jmpbuf on MIPS64 targets.
        * (libc/machine/mips/setjmp.S): Add MIPS64 version.

i can't build with -mips16 and -mips3 because -mips3 with -mips16 will
define:

	__mips16 and __mips64

consequently the ".set nomips16" is not emmitted.

here is a patch to fix the problem.  ok to install?

cheers

--
Aldy Hernandez			E-mail: aldyh@redhat.com
Professional Gypsy
Red Hat, Inc.
2001-07-12  Aldy Hernandez  <aldyh@redhat.com>

        * libc/machine/mips/setjmp.S: Allow	mips16	and mips64 to coexist.

Index: setjmp.S
===================================================================
RCS file: /cvs/src/src/newlib/libc/machine/mips/setjmp.S,v
retrieving revision 1.2
diff -c -p -r1.2 setjmp.S
*** setjmp.S	2001/03/08 21:39:32	1.2
--- setjmp.S	2001/07/12 17:12:24
***************
*** 9,19 ****
     The MIPS 64 version saves registers fp20 to fp31.  23 registers
     are saved in all.  */
  
- #ifndef __mips64
  #ifdef __mips16
  /* This file contains 32 bit assembly code.  */
  	.set nomips16
- #endif
  #endif
  
  /* int setjmp (jmp_buf);  */
--- 9,17 ----

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