aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>1994-12-14 16:42:18 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>1994-12-14 16:42:18 +0000
commita1eb0286add4ea8e0783882a3a404987843aefcc (patch)
tree5b302c63c36316f02c12abf7d147bd833e5d2503 /gcc
parentf280b11440eaf4a76e9b7ae79cdfa7e236156bd0 (diff)
downloadgcc-a1eb0286add4ea8e0783882a3a404987843aefcc.zip
gcc-a1eb0286add4ea8e0783882a3a404987843aefcc.tar.gz
gcc-a1eb0286add4ea8e0783882a3a404987843aefcc.tar.bz2
Fix non-const atof parameter on NEWS-OS 4.2R
From-SVN: r8653
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/fixincludes4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 723824f..1f32b53 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -1555,7 +1555,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
fi
fi
-# parameter to atof not const on DECstation Ultrix V4.0.
+# parameter to atof not const on DECstation Ultrix V4.0 and NEWS-OS 4.2R.
# also get rid of bogus inline definitions in HP-UX 8.0
file=math.h
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
@@ -1566,7 +1566,7 @@ fi
if [ -r ${LIB}/$file ]; then
echo Fixing $file, non-const arg
- sed -e 's@atof( char \*__nptr );@atof( const char *__nptr );@' \
+ sed -e 's@atof(\([ ]*char[ ]*\*[^)]*\))@atof(const \1)@' \
-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]*) {.*}@@' \