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
6a2233eb
Commit
6a2233eb
authored
Mar 17, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r514
parent
2a4bfeed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
71 additions
and
0 deletions
+71
-0
gcc/fixinc.svr4
+71
-0
No files found.
gcc/fixinc.svr4
View file @
6a2233eb
...
...
@@ -812,6 +812,77 @@ if [ \! -z "$file_to_fix" ]; then
fi
fi
# Sony NEWSOS 5.0 does not support the complete ANSI C standard.
if
[
-x
/bin/sony
]
;
then
if
/bin/sony
;
then
# Change <stdio.h> to not define __filbuf, __flsbuf, and __iob
file
=
stdio.h
base
=
`
basename
$file
`
if
[
-r
${
LIB
}
/
$file
]
;
then
file_to_fix
=
${
LIB
}
/
$file
else
if
[
-r
${
INPUT
}
/
$file
]
;
then
file_to_fix
=
${
INPUT
}
/
$file
else
file_to_fix
=
""
fi
fi
if
[
\!
-z
"
$file_to_fix
"
]
;
then
echo
Checking
$file_to_fix
cp
$file_to_fix
/tmp/
$base
chmod +w /tmp/
$base
sed
-e
'
s/__filbuf/_filbuf/g
s/__flsbuf/_flsbuf/g
s/__iob/_iob/g
'
/tmp/
$base
>
/tmp/
$base
.sed
mv /tmp/
$base
.sed /tmp/
$base
if
cmp
$file_to_fix
/tmp/
$base
.sed
>
/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
fi
rm
-f
/tmp/
$base
fi
# Change <ctype.h> to not define __ctype
file
=
ctype.h
base
=
`
basename
$file
`
if
[
-r
${
LIB
}
/
$file
]
;
then
file_to_fix
=
${
LIB
}
/
$file
else
if
[
-r
${
INPUT
}
/
$file
]
;
then
file_to_fix
=
${
INPUT
}
/
$file
else
file_to_fix
=
""
fi
fi
if
[
\!
-z
"
$file_to_fix
"
]
;
then
echo
Checking
$file_to_fix
cp
$file_to_fix
/tmp/
$base
chmod +w /tmp/
$base
sed
-e
'
s/__ctype/_ctype/g
'
/tmp/
$base
>
/tmp/
$base
.sed
mv /tmp/
$base
.sed /tmp/
$base
if
cmp
$file_to_fix
/tmp/
$base
.sed
>
/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
fi
rm
-f
/tmp/
$base
fi
fi
fi
echo
'Removing unneeded directories:'
cd
$LIB
files
=
`
find
.
-type
d
-print
| sort
-r
`
...
...
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