diff options
author | korbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-04 14:50:14 +0000 |
---|---|---|
committer | korbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-04 14:50:14 +0000 |
commit | 58d8674b68b58550bd0102a09bc56e2d6610584b (patch) | |
tree | 1139fcfb8baaeb60de8c0fe74b6da086f0164504 /gcc/fixinc/inclhack.sh | |
parent | f3e32e0ba5f925e960ed78e95faf484ed5211f0b (diff) | |
download | gcc-58d8674b68b58550bd0102a09bc56e2d6610584b.tar.gz |
Remove `extern double cabs' declarations from math.h
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33667 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc/inclhack.sh')
-rwxr-xr-x | gcc/fixinc/inclhack.sh | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/gcc/fixinc/inclhack.sh b/gcc/fixinc/inclhack.sh index 6ed6dfa7d93..aa363dc65c9 100755 --- a/gcc/fixinc/inclhack.sh +++ b/gcc/fixinc/inclhack.sh @@ -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 ) |