This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

[PATCH] Misc fixes


Hi!

As I mentioned in another mail, C99 designated initializers don't work ATM
in C++.  Also, IA-64 needs some __syscall_* wrappers to build.

2002-12-16  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
	* sysdeps/ieee754/bits/nan.h: Likewise.

	* sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
	__syscall_wait4, __syscall_ioctl, __syscall_write): Add.

--- libc/sysdeps/i386/fpu/bits/mathinline.h	16 Dec 2002 02:05:09 -0000	1.49
+++ libc/sysdeps/i386/fpu/bits/mathinline.h	6 Jul 2001 04:55:53 -0000	1.48
@@ -127,19 +127,19 @@
 __MATH_INLINE int
 __signbitf (float __x) __THROW
 {
-  __extension__ union { float __f; int __i; } __u = { .__f = __x };
+  __extension__ union { float __f; int __i; } __u = { __f: __x };
   return __u.__i < 0;
 }
 __MATH_INLINE int
 __signbit (double __x) __THROW
 {
-  __extension__ union { double __d; int __i[2]; } __u = { .__d = __x };
+  __extension__ union { double __d; int __i[2]; } __u = { __d: __x };
   return __u.__i[1] < 0;
 }
 __MATH_INLINE int
 __signbitl (long double __x) __THROW
 {
-  __extension__ union { long double __l; int __i[3]; } __u = { .__l = __x };
+  __extension__ union { long double __l; int __i[3]; } __u = { __l: __x };
   return (__u.__i[2] & 0x8000) != 0;
 }
 # endif
@@ -467,7 +467,7 @@ __inline_mathop_declNP (atan, "fld1; fpa
 
 __inline_mathcode_ (long double, __sgn1l, __x, \
   __extension__ union { long double __xld; unsigned int __xi[3]; } __n =      \
-    { .__xld = __x };							      \
+    { __xld: __x };							      \
   __n.__xi[2] = (__n.__xi[2] & 0x8000) | 0x3fff;			      \
   __n.__xi[1] = 0x80000000;						      \
   __n.__xi[0] = 0;							      \
@@ -666,7 +666,7 @@ __MATH_INLINE int
 __finite (double __x) __THROW
 {
   return (__extension__
-	  (((((union { double __d; int __i[2]; }) {.__d = __x}).__i[1]
+	  (((((union { double __d; int __i[2]; }) {__d: __x}).__i[1]
 	     | 0x800fffffu) + 1) >> 31));
 }
 
--- libc/sysdeps/ieee754/bits/nan.h	16 Dec 2002 02:05:09 -0000	1.6
+++ libc/sysdeps/ieee754/bits/nan.h	6 Jul 2001 04:55:54 -0000	1.5
@@ -29,7 +29,7 @@
 # define NAN \
   (__extension__                                                            \
    ((union { unsigned __l __attribute__((__mode__(__SI__))); float __d; })  \
-    { .__l = 0x7fc00000UL }).__d)
+    { __l: 0x7fc00000UL }).__d)
 
 #else
 
--- libc/sysdeps/unix/sysv/linux/ia64/syscalls.list	Mon Dec 16 03:18:52 2002
+++ libc/sysdeps/unix/sysv/linux/ia64/syscalls.list	Mon Dec 16 04:17:15 2002
@@ -81,6 +81,10 @@ s_stat		xstat	stat		i:sp	__syscall_stat
 s_lstat		lxstat	lstat		i:sp	__syscall_lstat
 s_fstat		fxstat	fstat		i:ip	__syscall_fstat
 s_sysctl	sysctl	_sysctl		i:p	__syscall__sysctl
+s_open		open	open		i:siv	__syscall_open
+s_wait4		wait4	wait4		i:iWiP	__syscall_wait4
+s_ioctl		ioctl	ioctl		i:iiI	__syscall_ioctl
+s_write		write	write		i:ibn	__syscall_write
 
 # IA-64 specific
 getunwind	EXTRA	getunwind	i:pi	getunwind

	Jakub


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