Commit 72b9c7fb by Bruce Korb Committed by Bruce Korb

Remove `extern double cabs' declarations from math.h

From-SVN: r33667
parent c5acf51f
2000-05-04 Bruce Korb <bkorb@gnu.org>
* fixincl/inclhack.def: added broken_cabs -
Remove `extern double cabs' declarations from math.h
* fixincl/inclhack.sh: regen
* fixincl/fixincl.x: regen
Thu May 4 09:45:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
......
......@@ -750,6 +750,19 @@ fix = {
/*
* Remove `extern double cabs' declarations from math.h.
* This conflicts with C9x. Discovered on AIX.
*/
fix = {
hackname = broken_cabs;
files = "math.h";
select = '^extern double cabs';
sed = '/^extern double cabs();/d';
sed = '/^extern double cabs(struct dbl_hypot);/d';
};
/*
* Fix <c_asm.h> on Digital UNIX V4.0:
* It contains a prototype for a DEC C internal asm() function,
* clashing with gcc's asm keyword. So protect this with __DECC.
......
......@@ -6,7 +6,7 @@
# files which are fixed to work correctly with ANSI C and placed in a
# directory that GNU C will search.
#
# This script contains 117 fixup scripts.
# This script contains 118 fixup scripts.
#
# See README-fixinc for more information.
#
......@@ -1241,6 +1241,28 @@ struct rusage;
#
# Fix Broken_Cabs
#
case "${file}" in ./math.h )
if ( test -n "`egrep '^extern double cabs' ${file}`"
) > /dev/null 2>&1 ; then
fixlist="${fixlist}
broken_cabs"
if [ ! -r ${DESTFILE} ]
then infile=${file}
else infile=${DESTFILE} ; fi
sed -e '/^extern double cabs();/d' \
-e '/^extern double cabs(struct dbl_hypot);/d' \
< $infile > ${DESTDIR}/fixinc.tmp
rm -f ${DESTFILE}
mv -f ${DESTDIR}/fixinc.tmp ${DESTFILE}
fi # end of select 'if'
;; # case end for file name test
esac
#
# Fix Dec_Intern_Asm
#
case "${file}" in ./c_asm.h )
......
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