inclhack.def (sun_auth_proto): Apply to all targets.
* fixinc/inclhack.def (sun_auth_proto): Apply to all targets. (sysz_stdlib_for_sun): Similarly. * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt. From-SVN: r26878
This commit is contained in:
parent
ac65c2d785
commit
ef16b5e5dd
|
@ -1,3 +1,9 @@
|
||||||
|
Tue May 11 01:32:01 1999 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
|
* fixinc/inclhack.def (sun_auth_proto): Apply to all targets.
|
||||||
|
(sysz_stdlib_for_sun): Similarly.
|
||||||
|
* fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt.
|
||||||
|
|
||||||
Mon May 10 20:34:10 1999 Jim Wilson <wilson@cygnus.com>
|
Mon May 10 20:34:10 1999 Jim Wilson <wilson@cygnus.com>
|
||||||
|
|
||||||
* config/mips/elf.h (UNIQUE_SECTION_P): Undef.
|
* config/mips/elf.h (UNIQUE_SECTION_P): Undef.
|
||||||
|
|
|
@ -214,9 +214,17 @@ tSCC zArm_Norcroft_HintList[] =
|
||||||
* Machine/OS name selection pattern
|
* Machine/OS name selection pattern
|
||||||
*/
|
*/
|
||||||
#define apzArm_Norcroft_HintMachs (const char**)NULL
|
#define apzArm_Norcroft_HintMachs (const char**)NULL
|
||||||
#define ARM_NORCROFT_HINT_TEST_CT 0
|
|
||||||
#define ARM_NORCROFT_HINT_RE_CT 0
|
/*
|
||||||
#define aArm_Norcroft_HintTests (tTestDesc*)NULL
|
* content selection pattern - do fix if pattern found
|
||||||
|
*/
|
||||||
|
tSCC zArm_Norcroft_HintSelect0[] =
|
||||||
|
"___type p_type";
|
||||||
|
|
||||||
|
#define ARM_NORCROFT_HINT_TEST_CT 1
|
||||||
|
#define ARM_NORCROFT_HINT_RE_CT 1
|
||||||
|
tTestDesc aArm_Norcroft_HintTests[] = {
|
||||||
|
{ TT_EGREP, zArm_Norcroft_HintSelect0, (regex_t*)NULL }, };
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fix Command Arguments for Arm_Norcroft_Hint
|
* Fix Command Arguments for Arm_Norcroft_Hint
|
||||||
|
@ -615,7 +623,7 @@ tSCC zNo_Double_SlashSelect0[] =
|
||||||
* perform the 'test' shell command - do fix on success
|
* perform the 'test' shell command - do fix on success
|
||||||
*/
|
*/
|
||||||
tSCC zNo_Double_SlashTest0[] =
|
tSCC zNo_Double_SlashTest0[] =
|
||||||
"-z `echo ${file} | egrep '(cxx|\\+\\+)/' `";
|
"-z `echo ${file} | egrep '(CC|cxx|\\+\\+)/' `";
|
||||||
|
|
||||||
#define NO_DOUBLE_SLASH_TEST_CT 2
|
#define NO_DOUBLE_SLASH_TEST_CT 2
|
||||||
#define NO_DOUBLE_SLASH_RE_CT 1
|
#define NO_DOUBLE_SLASH_RE_CT 1
|
||||||
|
@ -627,7 +635,8 @@ tTestDesc aNo_Double_SlashTests[] = {
|
||||||
* Fix Command Arguments for No_Double_Slash
|
* Fix Command Arguments for No_Double_Slash
|
||||||
*/
|
*/
|
||||||
const char* apzNo_Double_SlashPatch[] = { "sed",
|
const char* apzNo_Double_SlashPatch[] = { "sed",
|
||||||
"-e", "/\\(^|[^:]\\)\\/\\/[^\"*]/s|//.*$||g",
|
"-e", "s,^//.*$,,",
|
||||||
|
"-e", "s,[^:]//[^\"].*$,,",
|
||||||
(char*)NULL };
|
(char*)NULL };
|
||||||
|
|
||||||
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
@ -2650,9 +2659,7 @@ tSCC zSun_Auth_ProtoList[] =
|
||||||
/*
|
/*
|
||||||
* Machine/OS name selection pattern
|
* Machine/OS name selection pattern
|
||||||
*/
|
*/
|
||||||
tSCC* apzSun_Auth_ProtoMachs[] = {
|
#define apzSun_Auth_ProtoMachs (const char**)NULL
|
||||||
"*-sun-*",
|
|
||||||
(const char*)NULL };
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* content selection pattern - do fix if pattern found
|
* content selection pattern - do fix if pattern found
|
||||||
|
@ -2896,10 +2903,7 @@ tSCC zSysz_Stdlib_For_SunList[] =
|
||||||
/*
|
/*
|
||||||
* Machine/OS name selection pattern
|
* Machine/OS name selection pattern
|
||||||
*/
|
*/
|
||||||
tSCC* apzSysz_Stdlib_For_SunMachs[] = {
|
#define apzSysz_Stdlib_For_SunMachs (const char**)NULL
|
||||||
"*-sun*",
|
|
||||||
"m88k-*sysv3*",
|
|
||||||
(const char*)NULL };
|
|
||||||
#define SYSZ_STDLIB_FOR_SUN_TEST_CT 0
|
#define SYSZ_STDLIB_FOR_SUN_TEST_CT 0
|
||||||
#define SYSZ_STDLIB_FOR_SUN_RE_CT 0
|
#define SYSZ_STDLIB_FOR_SUN_RE_CT 0
|
||||||
#define aSysz_Stdlib_For_SunTests (tTestDesc*)NULL
|
#define aSysz_Stdlib_For_SunTests (tTestDesc*)NULL
|
||||||
|
@ -3874,7 +3878,7 @@ const char* apzZzz_TimePatch[] = { "sh", "-c",
|
||||||
*
|
*
|
||||||
* List of all fixes
|
* List of all fixes
|
||||||
*/
|
*/
|
||||||
#define REGEX_COUNT 75
|
#define REGEX_COUNT 76
|
||||||
#define FIX_COUNT 104
|
#define FIX_COUNT 104
|
||||||
tFixDesc fixDescList[ FIX_COUNT ] = {
|
tFixDesc fixDescList[ FIX_COUNT ] = {
|
||||||
{ zAix_SyswaitName, zAix_SyswaitList,
|
{ zAix_SyswaitName, zAix_SyswaitList,
|
||||||
|
|
|
@ -1483,8 +1483,9 @@ fix = {
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* On *some* SunOS-es, rpc/auth.h, rpc/clnt.h, rpc/svc.h, and
|
* Apply fix this to all OSs since this problem seems to effect
|
||||||
* rpc/xdr.h need prototypes for its ops function pointers.
|
* more than just SunOS. In general, fixes which are triggered
|
||||||
|
* by a specific target are bad.
|
||||||
*/
|
*/
|
||||||
fix = {
|
fix = {
|
||||||
hackname = sun_auth_proto;
|
hackname = sun_auth_proto;
|
||||||
|
@ -1492,7 +1493,6 @@ fix = {
|
||||||
files = rpc/clnt.h;
|
files = rpc/clnt.h;
|
||||||
files = rpc/svc.h;
|
files = rpc/svc.h;
|
||||||
files = rpc/xdr.h;
|
files = rpc/xdr.h;
|
||||||
mach = "*-sun-*";
|
|
||||||
/*
|
/*
|
||||||
* Select those files containing '(*name)()' but *not*
|
* Select those files containing '(*name)()' but *not*
|
||||||
* containing '(*name)(junk)'. The change would be innocuous
|
* containing '(*name)(junk)'. The change would be innocuous
|
||||||
|
@ -1974,13 +1974,11 @@ fix = {
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fix return type of exit and abort in <stdlib.h> on SunOS 4.1.
|
* Fix return type of exit and abort in <stdlib.h>
|
||||||
* Also wrap protection around size_t for m88k-sysv3 systems.
|
* Also wrap protection around size_t.
|
||||||
*/
|
*/
|
||||||
fix = {
|
fix = {
|
||||||
hackname = sysz_stdlib_for_sun;
|
hackname = sysz_stdlib_for_sun;
|
||||||
mach = "*-sun*";
|
|
||||||
mach = "m88k-*sysv3*";
|
|
||||||
files = stdlib.h;
|
files = stdlib.h;
|
||||||
|
|
||||||
sed = "s/int\tabort/void\tabort/g";
|
sed = "s/int\tabort/void\tabort/g";
|
||||||
|
|
|
@ -472,6 +472,8 @@ struct rusage;
|
||||||
# Fix 6: Arm_Norcroft_Hint
|
# Fix 6: Arm_Norcroft_Hint
|
||||||
#
|
#
|
||||||
case "${file}" in ./X11/Intrinsic.h )
|
case "${file}" in ./X11/Intrinsic.h )
|
||||||
|
if ( test -n "`egrep '___type p_type' ${file}`"
|
||||||
|
) > /dev/null 2>&1 ; then
|
||||||
fixlist="${fixlist}
|
fixlist="${fixlist}
|
||||||
arm_norcroft_hint"
|
arm_norcroft_hint"
|
||||||
if [ ! -r ${DESTFILE} ]
|
if [ ! -r ${DESTFILE} ]
|
||||||
|
@ -482,6 +484,7 @@ struct rusage;
|
||||||
< $infile > ${DESTDIR}/fixinc.tmp
|
< $infile > ${DESTDIR}/fixinc.tmp
|
||||||
rm -f ${DESTFILE}
|
rm -f ${DESTFILE}
|
||||||
mv -f ${DESTDIR}/fixinc.tmp ${DESTFILE}
|
mv -f ${DESTDIR}/fixinc.tmp ${DESTFILE}
|
||||||
|
fi # end of selection 'if'
|
||||||
;; # case end for file name test
|
;; # case end for file name test
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -736,7 +739,7 @@ struct rusage;
|
||||||
# Fix 17: No_Double_Slash
|
# Fix 17: No_Double_Slash
|
||||||
#
|
#
|
||||||
if ( test -n "`egrep '(^|[^:])//[^\"*]' ${file}`" -a \
|
if ( test -n "`egrep '(^|[^:])//[^\"*]' ${file}`" -a \
|
||||||
'(' -z `echo ${file} | egrep '(cxx|\+\+)/' ` ')'
|
'(' -z `echo ${file} | egrep '(CC|cxx|\+\+)/' ` ')'
|
||||||
) > /dev/null 2>&1 ; then
|
) > /dev/null 2>&1 ; then
|
||||||
fixlist="${fixlist}
|
fixlist="${fixlist}
|
||||||
no_double_slash"
|
no_double_slash"
|
||||||
|
@ -744,7 +747,8 @@ struct rusage;
|
||||||
then infile=${file}
|
then infile=${file}
|
||||||
else infile=${DESTFILE} ; fi
|
else infile=${DESTFILE} ; fi
|
||||||
|
|
||||||
sed -e '/\(^|[^:]\)\/\/[^"*]/s|//.*$||g' \
|
sed -e 's,^//.*$,,' \
|
||||||
|
-e 's,[^:]//[^"].*$,,' \
|
||||||
< $infile > ${DESTDIR}/fixinc.tmp
|
< $infile > ${DESTDIR}/fixinc.tmp
|
||||||
rm -f ${DESTFILE}
|
rm -f ${DESTFILE}
|
||||||
mv -f ${DESTDIR}/fixinc.tmp ${DESTFILE}
|
mv -f ${DESTDIR}/fixinc.tmp ${DESTFILE}
|
||||||
|
@ -2151,7 +2155,6 @@ void (*signal(...))(...);\
|
||||||
./rpc/clnt.h | \
|
./rpc/clnt.h | \
|
||||||
./rpc/svc.h | \
|
./rpc/svc.h | \
|
||||||
./rpc/xdr.h )
|
./rpc/xdr.h )
|
||||||
case "$target_canonical" in *-sun-* )
|
|
||||||
if ( test -n "`egrep '\\(\\*[a-z][a-z_]*\\)\\(\\)' ${file}`" -a \
|
if ( test -n "`egrep '\\(\\*[a-z][a-z_]*\\)\\(\\)' ${file}`" -a \
|
||||||
-z "`egrep '\\(\\*[a-z][a-z_]*\\)\\([ ]*[a-zA-Z.].*\\)' ${file}`"
|
-z "`egrep '\\(\\*[a-z][a-z_]*\\)\\([ ]*[a-zA-Z.].*\\)' ${file}`"
|
||||||
) > /dev/null 2>&1 ; then
|
) > /dev/null 2>&1 ; then
|
||||||
|
@ -2171,8 +2174,6 @@ void (*signal(...))(...);\
|
||||||
rm -f ${DESTFILE}
|
rm -f ${DESTFILE}
|
||||||
mv -f ${DESTDIR}/fixinc.tmp ${DESTFILE}
|
mv -f ${DESTDIR}/fixinc.tmp ${DESTFILE}
|
||||||
fi # end of selection 'if'
|
fi # end of selection 'if'
|
||||||
;; # case end for machine type test
|
|
||||||
esac
|
|
||||||
;; # case end for file name test
|
;; # case end for file name test
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -2330,8 +2331,6 @@ extern unsigned int\
|
||||||
# Fix 78: Sysz_Stdlib_For_Sun
|
# Fix 78: Sysz_Stdlib_For_Sun
|
||||||
#
|
#
|
||||||
case "${file}" in ./stdlib.h )
|
case "${file}" in ./stdlib.h )
|
||||||
case "$target_canonical" in *-sun* | \
|
|
||||||
m88k-*sysv3* )
|
|
||||||
fixlist="${fixlist}
|
fixlist="${fixlist}
|
||||||
sysz_stdlib_for_sun"
|
sysz_stdlib_for_sun"
|
||||||
if [ ! -r ${DESTFILE} ]
|
if [ ! -r ${DESTFILE} ]
|
||||||
|
@ -2354,8 +2353,6 @@ extern unsigned int\
|
||||||
< $infile > ${DESTDIR}/fixinc.tmp
|
< $infile > ${DESTDIR}/fixinc.tmp
|
||||||
rm -f ${DESTFILE}
|
rm -f ${DESTFILE}
|
||||||
mv -f ${DESTDIR}/fixinc.tmp ${DESTFILE}
|
mv -f ${DESTDIR}/fixinc.tmp ${DESTFILE}
|
||||||
;; # case end for machine type test
|
|
||||||
esac
|
|
||||||
;; # case end for file name test
|
;; # case end for file name test
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -3039,7 +3036,7 @@ cat > /dev/null ) < $infile > ${DESTDIR}/fixinc.tmp
|
||||||
# Find any include directives that use "file".
|
# Find any include directives that use "file".
|
||||||
#
|
#
|
||||||
dir=`echo ${file} | sed -e s';/[^/]*$;;'`
|
dir=`echo ${file} | sed -e s';/[^/]*$;;'`
|
||||||
ddir=`echo ${DESTDIR} | sed 's;/[^/]*$;;'`/$dir
|
ddir=`ec${DESTDIR}/$dir
|
||||||
|
|
||||||
for include in `
|
for include in `
|
||||||
egrep '^[ ]*#[ ]*include[ ]*"[^/]' ${DESTFILE} |
|
egrep '^[ ]*#[ ]*include[ ]*"[^/]' ${DESTFILE} |
|
||||||
|
|
Loading…
Reference in New Issue