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
2a46424a
Commit
2a46424a
authored
May 05, 1993
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patches for IRIX 4.0.1
From-SVN: r4337
parent
90a04485
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletions
+30
-1
gcc/fixincludes
+30
-1
No files found.
gcc/fixincludes
View file @
2a46424a
...
@@ -273,7 +273,7 @@ while [ $# != 0 ]; do
...
@@ -273,7 +273,7 @@ while [ $# != 0 ]; do
s%^\([ ]*#[ ]*endif[ ]*\)\([^/ ].*\)$%\1/* \2 */%
s%^\([ ]*#[ ]*endif[ ]*\)\([^/ ].*\)$%\1/* \2 */%
s%^\([ ]*#[ ]*else[ ]*\)\([^/ ].*\)$%\1/* \2 */%
s%^\([ ]*#[ ]*else[ ]*\)\([^/ ].*\)$%\1/* \2 */%
/\/\/[^*]/ s|//\(.*\)$|/*\1*/|
/\/\/[^*]/ s|//\(.*\)$|/*\1*/|
/[ ]_IO[A-Z]*[ ]*(/ s/
(\(.\),/('
\'
'\1
'
\'
',/
/[ ]_IO[A-Z]*[ ]*(/ s/
\(_IO[A-Z]*[ ]*(\)\(.\),/\1'
\'
'\2
'
\'
',/
/[ ]BSD43__IO[A-Z]*[ ]*(/ s/(\(.\),/('
\'
'\1'
\'
',/
/[ ]BSD43__IO[A-Z]*[ ]*(/ s/(\(.\),/('
\'
'\1'
\'
',/
/#define._IO/ s/'
\'
'\([cgx]\)'
\'
'/\1/g
/#define._IO/ s/'
\'
'\([cgx]\)'
\'
'/\1/g
/#define.BSD43__IO/ s/'
\'
'\([cgx]\)'
\'
'/\1/g
/#define.BSD43__IO/ s/'
\'
'\([cgx]\)'
\'
'/\1/g
...
@@ -817,6 +817,35 @@ if [ -r ${LIB}/$file ]; then
...
@@ -817,6 +817,35 @@ if [ -r ${LIB}/$file ]; then
fi
fi
fi
fi
# Fix line in IRIX 4.0.1 header file. The sed script turns
# #define EM_CTRL (CUTIOC|0x1)
# into
# #define EM_CTRL (CUTIOC|0x'1')
file
=
sys/t3270reg.h
if
[
-r
${
LIB
}
/
$file
]
;
then
echo
Fixing
$file
, overeager sed script
sed
-e
"s/0x'1'/0x1/"
${
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
rm
-f
${
LIB
}
/
$file
fi
fi
# Turning // comments into /* */ comments trashes this IRIX 4.0.1
# header file, which embeds // comments inside multi-line /* */
# comments. If this looks like the IRIX header file, we refix it by
# just throwing away the // comments.
file
=
fam.h
if
[
-r
${
LIB
}
/
$file
]
;
then
if
egrep indigo.esd
${
LIB
}
/
$file
>
/dev/null
;
then
echo
Fixing
$file
, overeager sed script
rm
${
LIB
}
/
$file
sed
-e
's|//.*$||g'
$file
>
${
LIB
}
/
$file
chmod +w
${
LIB
}
/
$file
2>/dev/null
chmod a+r
${
LIB
}
/
$file
2>/dev/null
fi
fi
# Fix non-ANSI memcpy declaration that conflicts with gcc's builtin
# Fix non-ANSI memcpy declaration that conflicts with gcc's builtin
# declaration on Sun OS 4.x. We must only fix this on Sun OS 4.x, because
# declaration on Sun OS 4.x. We must only fix this on Sun OS 4.x, because
# many other systems have similar text but correct versions of the file.
# many other systems have similar text but correct versions of the file.
...
...
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