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
cc08b87d
Commit
cc08b87d
authored
Aug 11, 1993
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get size_t typedef using gcc, not cc
From-SVN: r5133
parent
64e026bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
gcc/Makefile.in
+2
-2
gcc/fixincludes
+7
-5
No files found.
gcc/Makefile.in
View file @
cc08b87d
...
...
@@ -1381,7 +1381,7 @@ stmp-headers: stmp-int-hdrs gfloat.h
touch stmp-headers
# Build fixed copies of system files.
stmp-fixinc
:
$(srcdir)/$(FIXINCLUDES) gsyslimits.h
stmp-fixinc
:
$(srcdir)/$(FIXINCLUDES) gsyslimits.h
xgcc cpp
rm
-rf
include
mkdir include
if
[
x
$(FIXINCLUDES)
!=
xMakefile.in
]
;
\
...
...
@@ -1389,7 +1389,7 @@ stmp-fixinc: $(srcdir)/$(FIXINCLUDES) gsyslimits.h
for
dir
in
$(SYSTEM_HEADER_DIR)
$(OTHER_FIXINCLUDES_DIRS)
;
do
\
if
[
-d
$$
dir
]
;
\
then
\
$(srcdir)
/
$(FIXINCLUDES)
include
$$
dir
$(srcdir)
;
\
$(srcdir)
/
$(FIXINCLUDES)
include
$$
dir
$(srcdir)
"
`
pwd
`
/xgcc -B
`
pwd
`
/"
;
\
else
true
;
fi
;
\
done
;
\
else
true
;
\
...
...
gcc/fixincludes
View file @
cc08b87d
...
...
@@ -5,6 +5,9 @@
# See README-fixinc for more information.
# Command to run gcc.
GCCCMD
=
${
4
-
${
GCCCMD
-gcc
}}
# Directory where gcc sources (and sometimes special include files) live.
# fixincludes doesn't use this, but fixinc.svr4 does, and I want to make
# sure somebody doesn't try to use arg3 for something incompatible. -- gumby
...
...
@@ -340,14 +343,13 @@ for file in sys/types.h stdlib.h sys/stdtypes.h; do
if
[
-r
${
LIB
}
/
$file
]
;
then
echo
Fixing
$file
comment
#
Extract the definition of SIZE_TYPE
, if any.
#
Get the definition of __SIZE_TYPE__
, if any.
# (This file must be called something.c).
echo
"#include
\"
tm.h
\"
gobblegobble SIZE_TYPE"
>
${
LIB
}
/types.c
foo
=
`
cd
${
LIB
}
;
cc
-E
-I
${
ORIGDIR
}
-I
${
SRCDIR
}
-I
${
SRCDIR
}
/config types.c |
grep
gobblegobble | sed
-e
"s/gobblegobble[ ]*//"
`
echo
"__SIZE_TYPE__"
>
${
LIB
}
/types.c
foo
=
`
${
GCCCMD
}
-E
-P
${
LIB
}
/types.c
`
rm
-f
${
LIB
}
/types.c
# Default to our preferred type.
if
[
"
$foo
"
=
SIZE_TYPE
]
;
then
foo
=
"unsigned long int"
;
else
foo
=
`
echo
$foo
| sed
-e
's/^.*"\(.*\)".*$/\1/'
`
;
fi
if
[
"
$foo
"
=
__SIZE_TYPE__
]
;
then
foo
=
"unsigned long int"
;
fi
sed
-e
"s/typedef[ a-z_]*[ ]size_t/typedef
$foo
size_t/"
${
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
...
...
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