From: Richard Stallman Date: Fri, 20 Nov 1992 23:26:34 +0000 (+0000) Subject: (math.h): Get rid of inconsistent inline definitions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28bbe06bc2a3d3a1edf1aca7e8097c2bee2655c2;p=gcc.git (math.h): Get rid of inconsistent inline definitions for abs that are present in HP-UX 8.0. From-SVN: r2765 --- diff --git a/gcc/fixincludes b/gcc/fixincludes index 665af49c9a0..433250e20c1 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