+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>
* config/mips/elf.h (UNIQUE_SECTION_P): Undef.
* Machine/OS name selection pattern
*/
#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
* perform the 'test' shell command - do fix on success
*/
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_RE_CT 1
* Fix Command Arguments for No_Double_Slash
*/
const char* apzNo_Double_SlashPatch[] = { "sed",
- "-e", "/\\(^|[^:]\\)\\/\\/[^\"*]/s|//.*$||g",
+ "-e", "s,^//.*$,,",
+ "-e", "s,[^:]//[^\"].*$,,",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
/*
* Machine/OS name selection pattern
*/
-tSCC* apzSun_Auth_ProtoMachs[] = {
- "*-sun-*",
- (const char*)NULL };
+#define apzSun_Auth_ProtoMachs (const char**)NULL
/*
* content selection pattern - do fix if pattern found
/*
* Machine/OS name selection pattern
*/
-tSCC* apzSysz_Stdlib_For_SunMachs[] = {
- "*-sun*",
- "m88k-*sysv3*",
- (const char*)NULL };
+#define apzSysz_Stdlib_For_SunMachs (const char**)NULL
#define SYSZ_STDLIB_FOR_SUN_TEST_CT 0
#define SYSZ_STDLIB_FOR_SUN_RE_CT 0
#define aSysz_Stdlib_For_SunTests (tTestDesc*)NULL
*
* List of all fixes
*/
-#define REGEX_COUNT 75
+#define REGEX_COUNT 76
#define FIX_COUNT 104
tFixDesc fixDescList[ FIX_COUNT ] = {
{ zAix_SyswaitName, zAix_SyswaitList,
/*
- * On *some* SunOS-es, rpc/auth.h, rpc/clnt.h, rpc/svc.h, and
- * rpc/xdr.h need prototypes for its ops function pointers.
+ * Apply fix this to all OSs since this problem seems to effect
+ * more than just SunOS. In general, fixes which are triggered
+ * by a specific target are bad.
*/
fix = {
hackname = sun_auth_proto;
files = rpc/clnt.h;
files = rpc/svc.h;
files = rpc/xdr.h;
- mach = "*-sun-*";
/*
* Select those files containing '(*name)()' but *not*
* containing '(*name)(junk)'. The change would be innocuous
/*
- * Fix return type of exit and abort in <stdlib.h> on SunOS 4.1.
- * Also wrap protection around size_t for m88k-sysv3 systems.
+ * Fix return type of exit and abort in <stdlib.h>
+ * Also wrap protection around size_t.
*/
fix = {
hackname = sysz_stdlib_for_sun;
- mach = "*-sun*";
- mach = "m88k-*sysv3*";
files = stdlib.h;
sed = "s/int\tabort/void\tabort/g";
# Fix 6: Arm_Norcroft_Hint
#
case "${file}" in ./X11/Intrinsic.h )
+ if ( test -n "`egrep '___type p_type' ${file}`"
+ ) > /dev/null 2>&1 ; then
fixlist="${fixlist}
arm_norcroft_hint"
if [ ! -r ${DESTFILE} ]
< $infile > ${DESTDIR}/fixinc.tmp
rm -f ${DESTFILE}
mv -f ${DESTDIR}/fixinc.tmp ${DESTFILE}
+ fi # end of selection 'if'
;; # case end for file name test
esac
# Fix 17: No_Double_Slash
#
if ( test -n "`egrep '(^|[^:])//[^\"*]' ${file}`" -a \
- '(' -z `echo ${file} | egrep '(cxx|\+\+)/' ` ')'
+ '(' -z `echo ${file} | egrep '(CC|cxx|\+\+)/' ` ')'
) > /dev/null 2>&1 ; then
fixlist="${fixlist}
no_double_slash"
then infile=${file}
else infile=${DESTFILE} ; fi
- sed -e '/\(^|[^:]\)\/\/[^"*]/s|//.*$||g' \
+ sed -e 's,^//.*$,,' \
+ -e 's,[^:]//[^"].*$,,' \
< $infile > ${DESTDIR}/fixinc.tmp
rm -f ${DESTFILE}
mv -f ${DESTDIR}/fixinc.tmp ${DESTFILE}
./rpc/clnt.h | \
./rpc/svc.h | \
./rpc/xdr.h )
- case "$target_canonical" in *-sun-* )
if ( test -n "`egrep '\\(\\*[a-z][a-z_]*\\)\\(\\)' ${file}`" -a \
-z "`egrep '\\(\\*[a-z][a-z_]*\\)\\([ ]*[a-zA-Z.].*\\)' ${file}`"
) > /dev/null 2>&1 ; then
rm -f ${DESTFILE}
mv -f ${DESTDIR}/fixinc.tmp ${DESTFILE}
fi # end of selection 'if'
- ;; # case end for machine type test
- esac
;; # case end for file name test
esac
# Fix 78: Sysz_Stdlib_For_Sun
#
case "${file}" in ./stdlib.h )
- case "$target_canonical" in *-sun* | \
- m88k-*sysv3* )
fixlist="${fixlist}
sysz_stdlib_for_sun"
if [ ! -r ${DESTFILE} ]
< $infile > ${DESTDIR}/fixinc.tmp
rm -f ${DESTFILE}
mv -f ${DESTDIR}/fixinc.tmp ${DESTFILE}
- ;; # case end for machine type test
- esac
;; # case end for file name test
esac
# Find any include directives that use "file".
#
dir=`echo ${file} | sed -e s';/[^/]*$;;'`
- ddir=`echo ${DESTDIR} | sed 's;/[^/]*$;;'`/$dir
+ ddir=`ec${DESTDIR}/$dir
for include in `
egrep '^[ ]*#[ ]*include[ ]*"[^/]' ${DESTFILE} |