[PATCH] correct check-c++-types.sh script
Kevin P. Fleming
kpfleming@cox.net
Fri Sep 12 02:01:00 GMT 2003
I had to apply the following patch to CVS libc from today to get make
check to get past the running of this script. There were two problems:
- g++ was not being passed a specific input file parameter, so it was
not reading the test program; adding "-" as the last parameter cured that
- for some reason, bash on my system does not handle process
substitution properly (generates errors about missing /dev/fd/...
files), but it seems that the extra cat process was unnecessary, as
this simpler version appears to accomplish the task
In case it matters, I'm compiling with gcc-3.3.1. Mozilla seems to be
munging the inline patch around the sed line, so I'll attach it as well.
--- libc/scripts/check-c++-types.sh Mon Sep 8 16:54:34 2003
+++ libc/scripts/check-new Thu Sep 11 18:48:36 2003
@@ -35,14 +35,13 @@
cxx="$*"
while read t; do
echo -n "$t:"
- $cxx -S -xc++ -o - -D_GNU_SOURCE <(cat <<EOF
+ $cxx -S -xc++ -o - -D_GNU_SOURCE - <<EOF |
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/resource.h>
#include <unistd.h>
void foo ($t) { }
EOF
-) |
sed
's/[[:space:]]*[.]globa\?l[[:space:]]*_Z3foo\([_[:alnum:]]*\).*/\1/p;d'
done <<EOF |
blkcnt64_t
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: glibc-cvs-check-script.patch
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20030912/0da5b668/attachment.ksh>
More information about the Libc-alpha
mailing list