diff options
author | Richard Stallman <rms@gnu.org> | 1992-11-20 23:26:34 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-11-20 23:26:34 +0000 |
commit | 28bbe06bc2a3d3a1edf1aca7e8097c2bee2655c2 (patch) | |
tree | 1307b99f5ce85b21c0fe3810b280b08dcbf7a5f7 /gcc | |
parent | cdd6e2db6a911a0b113a315793492c854319bc53 (diff) | |
download | gcc-28bbe06bc2a3d3a1edf1aca7e8097c2bee2655c2.zip gcc-28bbe06bc2a3d3a1edf1aca7e8097c2bee2655c2.tar.gz gcc-28bbe06bc2a3d3a1edf1aca7e8097c2bee2655c2.tar.bz2 |
(math.h): Get rid of inconsistent inline definitions
for abs that are present in HP-UX 8.0.
From-SVN: r2765
Diffstat (limited to 'gcc')
-rwxr-xr-x | gcc/fixincludes | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes index 665af49..433250e 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -819,6 +819,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then fi # parameter to atof not const on DECstation Ultrix V4.0. +# also get rid of bogus inline definitions in HP-UX 8.0 file=math.h if [ -r $file ] && [ ! -r ${LIB}/$file ]; then cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" @@ -828,6 +829,8 @@ 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); }@@' \ ${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 |