Commit c5984b7b by Bruce Korb Committed by Bruce Korb

don't skip GLIBC files any more, more C++ header testing, corrected spelling of mach

From-SVN: r30704
parent 97c1c80b
1999-11-29 Bruce Korb <autogen@linuxbox.com>
* fixinc/fixincl.c(process): don't skip GLIBC files any more.
* fixinc/hackshell.tpl: ditto
* fixinc/fixtests.c(double_slash_test): more C++ header testing
* fixinc/inclhack.def(AAB_fd_zero_glibc*): corrected spelling of mach
1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk> 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
* reload.c (push_reload): When looking for a register to put into * reload.c (push_reload): When looking for a register to put into
......
...@@ -38,9 +38,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -38,9 +38,6 @@ Boston, MA 02111-1307, USA. */
Any file that contains this string is presumed to have Any file that contains this string is presumed to have
been carefully constructed and will not be fixed */ been carefully constructed and will not be fixed */
static const char gnu_lib_mark[] =
"This file is part of the GNU C Library";
/* The contents of this string are not very important. It is mostly /* The contents of this string are not very important. It is mostly
just used as part of the "I am alive and working" test. */ just used as part of the "I am alive and working" test. */
...@@ -1341,11 +1338,6 @@ process () ...@@ -1341,11 +1338,6 @@ process ()
#endif #endif
if (VLEVEL( VERB_PROGRESS )) if (VLEVEL( VERB_PROGRESS ))
fprintf (stderr, "%6d %-50s \r", data_map_size, pz_curr_file ); fprintf (stderr, "%6d %-50s \r", data_map_size, pz_curr_file );
if (strstr (pz_curr_data, gnu_lib_mark) != (char *) NULL)
{
UNLOAD_DATA();
return;
}
process_chain_head = NOPROCESS; process_chain_head = NOPROCESS;
......
...@@ -326,18 +326,12 @@ tSCC zAab_Fd_Zero_Glibc_1_0List[] = ...@@ -326,18 +326,12 @@ tSCC zAab_Fd_Zero_Glibc_1_0List[] =
/* /*
* Machine/OS name selection pattern * Machine/OS name selection pattern
*/ */
#define apzAab_Fd_Zero_Glibc_1_0Machs (const char**)NULL tSCC* apzAab_Fd_Zero_Glibc_1_0Machs[] = {
"i[34567]86-*-linux-gnu*",
/* (const char*)NULL };
* content selection pattern - do fix if pattern found #define AAB_FD_ZERO_GLIBC_1_0_TEST_CT 0
*/ #define AAB_FD_ZERO_GLIBC_1_0_RE_CT 0
tSCC zAab_Fd_Zero_Glibc_1_0Select0[] = #define aAab_Fd_Zero_Glibc_1_0Tests (tTestDesc*)NULL
"i[34567]86-*-linux-gnu*";
#define AAB_FD_ZERO_GLIBC_1_0_TEST_CT 1
#define AAB_FD_ZERO_GLIBC_1_0_RE_CT 1
tTestDesc aAab_Fd_Zero_Glibc_1_0Tests[] = {
{ TT_EGREP, zAab_Fd_Zero_Glibc_1_0Select0, (regex_t*)NULL }, };
/* /*
* Fix Command Arguments for Aab_Fd_Zero_Glibc_1_0 * Fix Command Arguments for Aab_Fd_Zero_Glibc_1_0
...@@ -372,18 +366,12 @@ tSCC zAab_Fd_Zero_Glibc_1_XList[] = ...@@ -372,18 +366,12 @@ tSCC zAab_Fd_Zero_Glibc_1_XList[] =
/* /*
* Machine/OS name selection pattern * Machine/OS name selection pattern
*/ */
#define apzAab_Fd_Zero_Glibc_1_XMachs (const char**)NULL tSCC* apzAab_Fd_Zero_Glibc_1_XMachs[] = {
"i[34567]86-*-linux-gnu*",
/* (const char*)NULL };
* content selection pattern - do fix if pattern found #define AAB_FD_ZERO_GLIBC_1_X_TEST_CT 0
*/ #define AAB_FD_ZERO_GLIBC_1_X_RE_CT 0
tSCC zAab_Fd_Zero_Glibc_1_XSelect0[] = #define aAab_Fd_Zero_Glibc_1_XTests (tTestDesc*)NULL
"i[34567]86-*-linux-gnu*";
#define AAB_FD_ZERO_GLIBC_1_X_TEST_CT 1
#define AAB_FD_ZERO_GLIBC_1_X_RE_CT 1
tTestDesc aAab_Fd_Zero_Glibc_1_XTests[] = {
{ TT_EGREP, zAab_Fd_Zero_Glibc_1_XSelect0, (regex_t*)NULL }, };
/* /*
* Fix Command Arguments for Aab_Fd_Zero_Glibc_1_X * Fix Command Arguments for Aab_Fd_Zero_Glibc_1_X
...@@ -418,18 +406,12 @@ tSCC zAab_Fd_Zero_Glibc_2_0List[] = ...@@ -418,18 +406,12 @@ tSCC zAab_Fd_Zero_Glibc_2_0List[] =
/* /*
* Machine/OS name selection pattern * Machine/OS name selection pattern
*/ */
#define apzAab_Fd_Zero_Glibc_2_0Machs (const char**)NULL tSCC* apzAab_Fd_Zero_Glibc_2_0Machs[] = {
"i[34567]86-*-linux-gnu*",
/* (const char*)NULL };
* content selection pattern - do fix if pattern found #define AAB_FD_ZERO_GLIBC_2_0_TEST_CT 0
*/ #define AAB_FD_ZERO_GLIBC_2_0_RE_CT 0
tSCC zAab_Fd_Zero_Glibc_2_0Select0[] = #define aAab_Fd_Zero_Glibc_2_0Tests (tTestDesc*)NULL
"i[34567]86-*-linux-gnu*";
#define AAB_FD_ZERO_GLIBC_2_0_TEST_CT 1
#define AAB_FD_ZERO_GLIBC_2_0_RE_CT 1
tTestDesc aAab_Fd_Zero_Glibc_2_0Tests[] = {
{ TT_EGREP, zAab_Fd_Zero_Glibc_2_0Select0, (regex_t*)NULL }, };
/* /*
* Fix Command Arguments for Aab_Fd_Zero_Glibc_2_0 * Fix Command Arguments for Aab_Fd_Zero_Glibc_2_0
...@@ -4394,7 +4376,7 @@ extern char *\tsprintf();\\\n\ ...@@ -4394,7 +4376,7 @@ extern char *\tsprintf();\\\n\
* *
* List of all fixes * List of all fixes
*/ */
#define REGEX_COUNT 79 #define REGEX_COUNT 76
#define MACH_LIST_SIZE_LIMIT 279 #define MACH_LIST_SIZE_LIMIT 279
#define FIX_COUNT 112 #define FIX_COUNT 112
......
...@@ -114,7 +114,9 @@ TEST_FOR_FIX_PROC_HEAD( double_slash_test ) ...@@ -114,7 +114,9 @@ TEST_FOR_FIX_PROC_HEAD( double_slash_test )
return SKIP_FIX; return SKIP_FIX;
if (strstr( fname, "xx/" ) != NULL) if (strstr( fname, "xx/" ) != NULL)
return SKIP_FIX; return SKIP_FIX;
if (strstr( fname, "++/" ) != NULL) if (strstr( fname, "++" ) != NULL)
return SKIP_FIX;
if (strstr( text, "extern \"C++\"" ) != NULL)
return SKIP_FIX; return SKIP_FIX;
/* Now look for the comment markers in the text */ /* Now look for the comment markers in the text */
......
...@@ -9,9 +9,7 @@ ...@@ -9,9 +9,7 @@
for file in $files; do for file in $files; do
# Skip unreadable files, symlinks to directories and glibc files # Skip unreadable files, symlinks to directories and glibc files
if test ! -r "${file}" || test -d "${file}/." \ if test ! -r "${file}" || test -d "${file}/." ; then
|| fgrep 'This file is part of the GNU C Library' "${file}" \
> /dev/null 2>&1; then
continue continue
fi fi
......
...@@ -160,7 +160,7 @@ typedef char * va_list; ...@@ -160,7 +160,7 @@ typedef char * va_list;
fix = { fix = {
hackname = AAB_fd_zero_glibc_1_0; hackname = AAB_fd_zero_glibc_1_0;
files = asm/posix_types.h; files = asm/posix_types.h;
select = 'i[34567]86-*-linux-gnu*'; mach = 'i[34567]86-*-linux-gnu*';
/* /*
* Define _POSIX_TYPES_H_WRAPPER at the end of the wrapper, not * Define _POSIX_TYPES_H_WRAPPER at the end of the wrapper, not
...@@ -199,7 +199,7 @@ fix = { ...@@ -199,7 +199,7 @@ fix = {
fix = { fix = {
hackname = AAB_fd_zero_glibc_1_x; hackname = AAB_fd_zero_glibc_1_x;
files = gnu/types.h; files = gnu/types.h;
select = 'i[34567]86-*-linux-gnu*'; mach = 'i[34567]86-*-linux-gnu*';
/* /*
* Define _TYPES_H_WRAPPER at the end of the wrapper, not * Define _TYPES_H_WRAPPER at the end of the wrapper, not
...@@ -238,7 +238,7 @@ fix = { ...@@ -238,7 +238,7 @@ fix = {
fix = { fix = {
hackname = AAB_fd_zero_glibc_2_0; hackname = AAB_fd_zero_glibc_2_0;
files = selectbits.h; files = selectbits.h;
select = 'i[34567]86-*-linux-gnu*'; mach = 'i[34567]86-*-linux-gnu*';
/* /*
* Define _SELECTBITS_H_WRAPPER at the end of the wrapper, not * Define _SELECTBITS_H_WRAPPER at the end of the wrapper, not
......
...@@ -354,9 +354,7 @@ while [ $# != 0 ]; do ...@@ -354,9 +354,7 @@ while [ $# != 0 ]; do
for file in $files; do for file in $files; do
# Skip unreadable files, symlinks to directories and glibc files # Skip unreadable files, symlinks to directories and glibc files
if test ! -r "${file}" || test -d "${file}/." \ if test ! -r "${file}" || test -d "${file}/." ; then
|| fgrep 'This file is part of the GNU C Library' "${file}" \
> /dev/null 2>&1; then
continue continue
fi fi
...@@ -524,8 +522,7 @@ _EOF_ ...@@ -524,8 +522,7 @@ _EOF_
# Fix 8: Aab_Fd_Zero_Glibc_1_0 # Fix 8: Aab_Fd_Zero_Glibc_1_0
# #
case "${file}" in ./asm/posix_types.h ) case "${file}" in ./asm/posix_types.h )
if ( test -n "`egrep 'i[34567]86-*-linux-gnu*' ${file}`" case "$target_canonical" in i[34567]86-*-linux-gnu* )
) > /dev/null 2>&1 ; then
echo "aab_fd_zero_glibc_1_0 replacing file ${file}" >&2 echo "aab_fd_zero_glibc_1_0 replacing file ${file}" >&2
cat > ${DESTFILE} << '_EOF_' cat > ${DESTFILE} << '_EOF_'
/* This file fixes __FD_ZERO bug for glibc-1.x. */ /* This file fixes __FD_ZERO bug for glibc-1.x. */
...@@ -544,7 +541,8 @@ _EOF_ ...@@ -544,7 +541,8 @@ _EOF_
_EOF_ _EOF_
continue continue
fi # end of select 'if' ;; # case end for machine type test
esac
;; # case end for file name test ;; # case end for file name test
esac esac
...@@ -553,8 +551,7 @@ _EOF_ ...@@ -553,8 +551,7 @@ _EOF_
# Fix 9: Aab_Fd_Zero_Glibc_1_X # Fix 9: Aab_Fd_Zero_Glibc_1_X
# #
case "${file}" in ./gnu/types.h ) case "${file}" in ./gnu/types.h )
if ( test -n "`egrep 'i[34567]86-*-linux-gnu*' ${file}`" case "$target_canonical" in i[34567]86-*-linux-gnu* )
) > /dev/null 2>&1 ; then
echo "aab_fd_zero_glibc_1_x replacing file ${file}" >&2 echo "aab_fd_zero_glibc_1_x replacing file ${file}" >&2
cat > ${DESTFILE} << '_EOF_' cat > ${DESTFILE} << '_EOF_'
/* This file fixes __FD_ZERO bug for glibc-1.x. */ /* This file fixes __FD_ZERO bug for glibc-1.x. */
...@@ -573,7 +570,8 @@ _EOF_ ...@@ -573,7 +570,8 @@ _EOF_
_EOF_ _EOF_
continue continue
fi # end of select 'if' ;; # case end for machine type test
esac
;; # case end for file name test ;; # case end for file name test
esac esac
...@@ -582,8 +580,7 @@ _EOF_ ...@@ -582,8 +580,7 @@ _EOF_
# Fix 10: Aab_Fd_Zero_Glibc_2_0 # Fix 10: Aab_Fd_Zero_Glibc_2_0
# #
case "${file}" in ./selectbits.h ) case "${file}" in ./selectbits.h )
if ( test -n "`egrep 'i[34567]86-*-linux-gnu*' ${file}`" case "$target_canonical" in i[34567]86-*-linux-gnu* )
) > /dev/null 2>&1 ; then
echo "aab_fd_zero_glibc_2_0 replacing file ${file}" >&2 echo "aab_fd_zero_glibc_2_0 replacing file ${file}" >&2
cat > ${DESTFILE} << '_EOF_' cat > ${DESTFILE} << '_EOF_'
/* This file fixes __FD_ZERO bug for glibc-2.0.x. */ /* This file fixes __FD_ZERO bug for glibc-2.0.x. */
...@@ -602,7 +599,8 @@ _EOF_ ...@@ -602,7 +599,8 @@ _EOF_
_EOF_ _EOF_
continue continue
fi # end of select 'if' ;; # case end for machine type test
esac
;; # case end for file name test ;; # case end for file name test
esac esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment