Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
a1eb0286
Commit
a1eb0286
authored
30 years ago
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix non-const atof parameter on NEWS-OS 4.2R
From-SVN: r8653
parent
f280b114
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gcc/fixincludes
+2
-2
No files found.
gcc/fixincludes
View file @
a1eb0286
...
...
@@ -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]*) {.*}@@'
\
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment