aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-11-21 06:54:47 +0000
committerRichard Stallman <rms@gnu.org>1993-11-21 06:54:47 +0000
commite6093ed4f8a618d44a0121a082488a78b2407c17 (patch)
treef02cb868fded15bbd4299420d978dee70e64646e /gcc
parent700ba19c9c6ebb003db28af327628ff6340de438 (diff)
downloadgcc-e6093ed4f8a618d44a0121a082488a78b2407c17.zip
gcc-e6093ed4f8a618d44a0121a082488a78b2407c17.tar.gz
gcc-e6093ed4f8a618d44a0121a082488a78b2407c17.tar.bz2
(math.h): When deleting inline sqrt and abs,
be flexible about arg name and function body. From-SVN: r6126
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/fixincludes8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 30f3388..6c89ded 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -1078,10 +1078,10 @@ fi
if [ -r ${LIB}/$file ]; then
echo Fixing $file, non-const arg
sed -e 's@atof( char \*__nptr );@atof( const char *__nptr );@' \
- -e 's@inline int abs(int d) { return (d>0)?d:-d; }@@' \
- -e 's@inline double abs(double d) { return fabs(d); }@@' \
- -e 's@inline int sqr(int x) {return(x\*x);} /\* For AT&T compatibility \*/@@' \
- -e 's@inline double sqr(double x) {return(x\*x);}@@' \
+ -e 's@inline int abs(int [a-z][a-z]*) {.*}@@' \
+ -e 's@inline double abs(double [a-z][a-z]*) {.*}@@' \
+ -e 's@inline int sqr(int [a-z][a-z]*) {.*}@@' \
+ -e 's@inline double sqr(double [a-z][a-z]*) {.*}@@' \
${LIB}/$file > ${LIB}/${file}.sed
rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
if cmp $file ${LIB}/$file >/dev/null 2>&1; then