[RFA:] Fix libgloss/d30v/syscalls.c
Hans-Peter Nilsson
hp@bitrange.com
Mon Apr 15 13:23:00 GMT 2002
Another one. Including sys/types.h is necessary because of
time_t. Note that d30v-elf ICE:s in libstdc++-v3 at the moment
in GCC CVS head, but at least it gets beyond this point with
this patch. (Please don't CC me discussions about multi-line
strings as such, sorry.)
2002-04-15 Hans-Peter Nilsson <hp@bitrange.com>
* d30v/syscalls.c: #include <sys/types.h>. Don't use multi-line
strings.
brgds, H-P
-------------- next part --------------
Index: syscalls.c
===================================================================
RCS file: /cvs/src/src/libgloss/d30v/syscalls.c,v
retrieving revision 1.1
diff -p -c -r1.1 syscalls.c
*** syscalls.c 17 Mar 2000 22:48:49 -0000 1.1
--- syscalls.c 15 Apr 2002 20:13:26 -0000
***************
*** 18,34 ****
#include <stdlib.h>
#include "syscall.h"
extern int *__errno(), errno;
__asm__ (
! " .globl __syscall
! .type __syscall,@function
! __syscall:
! trap 31 || nop
! cmpge f0,r2,0 -> jmp/tx link
! bra __set_errno
! .size __syscall,.-__syscall
");
int
--- 18,35 ----
#include <stdlib.h>
#include "syscall.h"
+ #include <sys/types.h>
extern int *__errno(), errno;
__asm__ (
! " .globl __syscall \n\
! .type __syscall,@function \n\
! __syscall: \n\
! trap 31 || nop \n\
! cmpge f0,r2,0 -> jmp/tx link \n\
! bra __set_errno \n\
! .size __syscall,.-__syscall \n\
");
int
More information about the Newlib
mailing list