diff options
author | Richard Stallman <rms@gnu.org> | 1993-11-21 06:54:47 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-11-21 06:54:47 +0000 |
commit | e6093ed4f8a618d44a0121a082488a78b2407c17 (patch) | |
tree | f02cb868fded15bbd4299420d978dee70e64646e /gcc | |
parent | 700ba19c9c6ebb003db28af327628ff6340de438 (diff) | |
download | gcc-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-x | gcc/fixincludes | 8 |
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 |