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
fc5c2df8
Commit
fc5c2df8
authored
Nov 30, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(regexp.h): Don't add a getrnge declaration if a conflicting
declaration is already present. From-SVN: r2823
parent
30c08fcc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
gcc/fixinc.svr4
+19
-11
No files found.
gcc/fixinc.svr4
View file @
fc5c2df8
...
...
@@ -467,6 +467,10 @@ fi
# Add a `static' declaration of `getrnge' into <regexp.h>.
# Don't do this if there is already a `static void getrnge' declaration
# present, since this would cause a redeclaration error. Solaris 2.x has
# such a declaration.
file
=
regexp.h
base
=
`
basename
$file
`
if
[
-r
${
LIB
}
/
$file
]
;
then
...
...
@@ -480,22 +484,26 @@ else
fi
if
[
\!
-z
"
$file_to_fix
"
]
;
then
echo
Checking
$file_to_fix
cp
$file_to_fix
/tmp/
$base
chmod +w /tmp/
$base
ex /tmp/
$base
<<
EOF
/^static int[ ]*size;/c
if
grep
"static void getrnge"
$file_to_fix
>
/dev/null
;
then
true
else
cp
$file_to_fix
/tmp/
$base
chmod +w /tmp/
$base
ex /tmp/
$base
<<
EOF
/^static int[ ]*size;/c
static int size ;
static int getrnge ();
.
wq
wq
EOF
if
cmp
$file_to_fix
/tmp/
$base
>
/dev/null 2>&1
;
then
\
echo
No change needed
in
$file_to_fix
else
echo
Fixed
$file_to_fix
rm
-f
${
LIB
}
/
$file
cp /tmp/
$base
${
LIB
}
/
$file
if
cmp
$file_to_fix
/tmp/
$base
>
/dev/null 2>&1
;
then
\
No change needed
in
$file_to_fix
else
echo
Fixed
$file_to_fix
rm
-f
${
LIB
}
/
$file
cp /tmp/
$base
${
LIB
}
/
$file
fi
fi
rm
-f
/tmp/
$base
fi
...
...
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