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] add c++types check for PPC and PPC64


Added c++-types checking for powerpc and powerpc64. The current Makefile does not allow multiple "config-machine"s that require difference types under a single "base-machine" (like powerpc32 and powerpc64). So I patch Makefile to check using the "config-machine" first then check for the "base-machine" in the else leg.

2003-10-09 Steven Munroe <sjmunroe@us.ibm.com>

* Makecheck: Allow for c++-types-$(config-machine)-$(config-os).data in addition to
c++-types-$(base-machine)-$(config-os).data.
* scripts/data/c++-types-powerpc-linux-gnu.data: New file.
* scripts/data/c++-types-powerpc64-linux-gnu.data: New file.
diff -rupP libc23-cvstip-20031006/Makefile libc23/Makefile
--- libc23-cvstip-20031006/Makefile	2003-09-08 21:30:15.000000000 -0500
+++ libc23/Makefile	2003-10-08 01:16:19.000000000 -0500
@@ -230,6 +230,10 @@ tests-clean:
 
 tests: $(objpfx)c++-types-check.out
 ifneq ($(CXX),no)
+ifneq (,$(wildcard scripts/data/c++-types-$(config-machine)-$(config-os).data))
+$(objpfx)c++-types-check.out: scripts/data/c++-types-$(config-machine)-$(config-os).data
+	scripts/check-c++-types.sh $^ $(CXX) $(filter-out -std=gnu99,$(CFLAGS)) $(CPPFLAGS) > $@
+else
 ifneq (,$(wildcard scripts/data/c++-types-$(base-machine)-$(config-os).data))
 $(objpfx)c++-types-check.out: scripts/data/c++-types-$(base-machine)-$(config-os).data
 	scripts/check-c++-types.sh $^ $(CXX) $(filter-out -std=gnu99,$(CFLAGS)) $(CPPFLAGS) > $@
@@ -239,6 +243,7 @@ $(objpfx)c++-types-check.out:
 	@echo "not run" > $@
 endif
 endif
+endif
 
 # The realclean target is just like distclean for the parent, but we want
 # the subdirs to know the difference in case they care.
diff -rupP libc23-cvstip-20031006/scripts/data/c++-types-powerpc64-linux-gnu.data libc23/scripts/data/c++-types-powerpc64-linux-gnu.data
--- libc23-cvstip-20031006/scripts/data/c++-types-powerpc64-linux-gnu.data	1969-12-31 18:00:00.000000000 -0600
+++ libc23/scripts/data/c++-types-powerpc64-linux-gnu.data	2003-10-07 21:21:43.000000000 -0500
@@ -0,0 +1,58 @@
+blkcnt64_t:l
+blkcnt_t:l
+blksize_t:l
+caddr_t:Pc
+clockid_t:i
+clock_t:l
+daddr_t:i
+dev_t:m
+fd_mask:l
+fsblkcnt64_t:m
+fsblkcnt_t:m
+fsfilcnt64_t:m
+fsfilcnt_t:m
+fsid_t:8__fsid_t
+gid_t:j
+id_t:j
+ino64_t:m
+ino_t:m
+int16_t:s
+int32_t:i
+int64_t:l
+int8_t:a
+intptr_t:l
+key_t:i
+loff_t:l
+mode_t:j
+nlink_t:m
+off64_t:l
+off_t:l
+pid_t:i
+pthread_key_t:j
+pthread_once_t:i
+pthread_spinlock_t:i
+pthread_t:m
+quad_t:l
+register_t:l
+rlim64_t:m
+rlim_t:m
+sigset_t:10__sigset_t
+size_t:m
+socklen_t:j
+ssize_t:l
+suseconds_t:l
+time_t:l
+u_char:h
+uid_t:j
+uint:j
+u_int:j
+u_int16_t:t
+u_int32_t:j
+u_int64_t:m
+u_int8_t:h
+ulong:m
+u_long:m
+u_quad_t:m
+useconds_t:j
+ushort:t
+u_short:t
diff -rupP libc23-cvstip-20031006/scripts/data/c++-types-powerpc-linux-gnu.data libc23/scripts/data/c++-types-powerpc-linux-gnu.data
--- libc23-cvstip-20031006/scripts/data/c++-types-powerpc-linux-gnu.data	1969-12-31 18:00:00.000000000 -0600
+++ libc23/scripts/data/c++-types-powerpc-linux-gnu.data	2003-10-07 21:22:02.000000000 -0500
@@ -0,0 +1,58 @@
+blkcnt64_t:x
+blkcnt_t:l
+blksize_t:l
+caddr_t:Pc
+clockid_t:i
+clock_t:l
+daddr_t:i
+dev_t:y
+fd_mask:l
+fsblkcnt64_t:y
+fsblkcnt_t:m
+fsfilcnt64_t:y
+fsfilcnt_t:m
+fsid_t:8__fsid_t
+gid_t:j
+id_t:j
+ino64_t:y
+ino_t:m
+int16_t:s
+int32_t:i
+int64_t:x
+int8_t:a
+intptr_t:i
+key_t:i
+loff_t:x
+mode_t:j
+nlink_t:j
+off64_t:x
+off_t:l
+pid_t:i
+pthread_key_t:j
+pthread_once_t:i
+pthread_spinlock_t:i
+pthread_t:m
+quad_t:x
+register_t:i
+rlim64_t:y
+rlim_t:m
+sigset_t:10__sigset_t
+size_t:j
+socklen_t:j
+ssize_t:i
+suseconds_t:l
+time_t:l
+u_char:h
+uid_t:j
+uint:j
+u_int:j
+u_int16_t:t
+u_int32_t:j
+u_int64_t:y
+u_int8_t:h
+ulong:m
+u_long:m
+u_quad_t:y
+useconds_t:j
+ushort:t
+u_short:t

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