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
631e21eb
Commit
631e21eb
authored
Feb 20, 1993
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Save temp file in ${LIB}. Use -I${ORIGDIR} when compiling types.c.
From-SVN: r3499
parent
49b6e255
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
gcc/fixincludes
+6
-3
No files found.
gcc/fixincludes
View file @
631e21eb
...
...
@@ -27,6 +27,9 @@ case "`pwd`" in
;;
esac
# Original directory.
ORIGDIR
=
`
${
PWDCMD
}
`
# Make sure it exists.
if
[
!
-d
$LIB
]
;
then
mkdir
$LIB
||
exit
1
...
...
@@ -294,9 +297,9 @@ do
# Extract the definition of SIZE_TYPE, if any.
# (This file must be called something.c).
echo
"#include
\"
tm.h
\"
gobblegobble SIZE_TYPE"
>
types.c
foo
=
`
cc
-E
-I
.
-I
$SRCDIR
-I
$SRCDIR
/config
types.c |
grep
gobblegobble | sed
-e
"s/gobblegobble[ ]*//"
`
rm
-f
types.c
gobblegobble SIZE_TYPE"
>
${
LIB
}
/
types.c
foo
=
`
cc
-E
-I
${
ORIGDIR
}
-I
${
SRCDIR
}
-I
${
SRCDIR
}
/config
${
LIB
}
/
types.c |
grep
gobblegobble | sed
-e
"s/gobblegobble[ ]*//"
`
rm
-f
${
LIB
}
/
types.c
# Default to our preferred type.
if
[
$foo
=
SIZE_TYPE
]
;
then
foo
=
"unsigned long int"
;
else
true
;
fi
sed
-e
"s/typedef[ a-z_]*[ ]size_t/typedef
$foo
size_t/"
${
LIB
}
/
$file
>
${
LIB
}
/
${
file
}
.sed
...
...
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