This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] correct check-c++-types.sh script
- From: "Kevin P. Fleming" <kpfleming at cox dot net>
- To: libc-alpha at sources dot redhat dot com
- Date: Thu, 11 Sep 2003 19:01:23 -0700
- Subject: [PATCH] correct check-c++-types.sh script
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
--- 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