This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


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

Re: make-syscalls.sh broken?


Rod Stewart <stewart@netwinder.org> writes:

> This change, which was applied on 13-Jun-00, appears to have broken the
> build process of glibc (well it appears to be the common factor, and
> prior to this change building was succeeding)  

Here's the complete patch.  Please let me know how it works for alpha.

Index: make-syscalls.sh
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/make-syscalls.sh,v
retrieving revision 1.14
diff -u -p -r1.14 make-syscalls.sh
--- make-syscalls.sh	2000/06/13 07:27:11	1.14
+++ make-syscalls.sh	2000/06/15 17:56:59
@@ -46,7 +46,8 @@ echo "$calls" | while read file srcfile 
 callnum=-
 eval `{ echo "#include <sysdep.h>";
 	echo "callnum=SYS_ify ($syscall)"; } |
-	  $asm_CPP - |grep "^callnum=" |grep -v $syscall`
+	  $asm_CPP - |sed -n -e "/^callnum=.*$syscall/d" \
+			     -e "/^\(callnum=\)[ 	]*\(.*\)/s//\1'\2'/p"`
 
   # Derive the number of arguments from the argument signature
   case $args in
@@ -63,7 +64,7 @@ eval `{ echo "#include <sysdep.h>";
   # Make sure only the first syscall rule is used, if multiple dirs
   # define the same syscall.
  echo "#### CALL=$file NUMBER=$callnum ARGS=$args SOURCE=$srcfile"
- case x$srcfile$callnum in
+ case x$srcfile"$callnum" in
  x*-) ;; ### Do nothing for undefined callnum
  x-*)
   echo "ifeq (,\$(filter $file,\$(unix-syscalls)))"
@@ -151,8 +152,9 @@ shared-only-routines += $file
  ;;
  esac
 
-  case x$callnum,$srcfile,$args in
-  x[0-9]*,-,*[sp]* | x*,*.[sS],*[sp]*)
+  case x"$callnum",$srcfile,$args in
+  x-,-,*) ;;
+  x*,-,*[sp]* | x*,*.[sS],*[sp]*)
     echo "ifeq (,\$(filter $file,\$(bp-thunks)))"
     echo "bp-thunks += $file";
     echo "\

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