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
d920e825
Commit
d920e825
authored
Jun 28, 2001
by
H.J. Lu
Committed by
H.J. Lu
Jun 27, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CFLAGS_FOR_BUILD for canadian cross build.
From-SVN: r43628
parent
09482e0d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
8 deletions
+28
-8
ChangeLog
+5
-0
Makefile.in
+2
-0
gcc/ChangeLog
+13
-0
gcc/build-make
+4
-7
gcc/configure
+0
-0
gcc/configure.in
+4
-1
No files found.
ChangeLog
View file @
d920e825
2001-06-27 H.J. Lu (hjl@gnu.org)
* Makefile (CFLAGS_FOR_BUILD): New.
(EXTRA_GCC_FLAGS): Add CFLAGS_FOR_BUILD.
2001-06-13 Joseph S. Myers <jsm28@cam.ac.uk>
* README: Remove version number.
...
...
Makefile.in
View file @
d920e825
...
...
@@ -87,6 +87,7 @@ CXXFLAGS = -g -O2
LDFLAGS
=
LIBCFLAGS
=
$(CFLAGS)
CFLAGS_FOR_BUILD
=
$(CFLAGS)
CFLAGS_FOR_TARGET
=
$(CFLAGS)
LDFLAGS_FOR_TARGET
=
LIBCFLAGS_FOR_TARGET
=
$(CFLAGS_FOR_TARGET)
...
...
@@ -473,6 +474,7 @@ EXTRA_GCC_FLAGS = \
"
`
echo
'RANLIB=
$(RANLIB)
'
| sed
-e
s/.
*
=
$$
/XFOO
=
/
`
"
\
'WINDRES=$
$(WINDRES_FOR_TARGET)
'
\
"GCC_FOR_TARGET=
$(GCC_FOR_TARGET)
"
\
"CFLAGS_FOR_BUILD=
$(CFLAGS_FOR_BUILD)
"
\
"
`
echo
'LANGUAGES=
$(LANGUAGES)
'
| sed
-e
s/.
*
=
$$
/XFOO
=
/
`
"
\
"
`
echo
'STMP_FIXPROTO=
$(STMP_FIXPROTO)
'
| sed
-e
s/.
*
=
$$
/XFOO
=
/
`
"
\
"
`
echo
'LIMITS_H_TEST=
$(LIMITS_H_TEST)
'
| sed
-e
s/.
*
=
$$
/XFOO
=
/
`
"
\
...
...
gcc/ChangeLog
View file @
d920e825
2001
-
06
-
27
H
.
J
.
Lu
(
hjl
@gnu
.
org
)
*
build
-
make
(
CC
)
:
Removed
.
(
HOST_CC
)
:
Set
to
$
(
CC_FOR_BUILD
).
(
HOST_CFLAGS
)
:
Replace
$
(
CFLAGS
)
with
$
(
CFLAGS_FOR_BUILD
).
Fix
a
typo
in
comments
.
*
configure
.
in
:
Set
CFLAGS
to
$
(
CFLAGS_FOR_BUILD
)
when
generating
auto
-
build
.
h
for
canadian
cross
compile
.
Set
CC
to
`
"${CC_FOR_BUILD}"
'
instead
of
just
`$
{
CC_FOR_BUILD
}
'
.
Save
/
restore
CFLAGS
.
*
configure
:
Regenerated
.
2001
-
06
-
27
Jim
Wilson
<
wilson
@redhat
.
com
>
*
emit
-
rtl
.
c
(
gen_highpart
)
:
Call
validize_mem
.
...
...
gcc/build-make
View file @
d920e825
# We have to use the cross-compiler we just built to compile it.
CC = gcc -b $(host)
# Need those to compile binaries running on host machine.
# It is configured by
#
# configure --host=target_cpu-target_os \
# --target=
host=
target_cpu-target_os --build=host_cpu-host_os
# --target=target_cpu-target_os --build=host_cpu-host_os
#
# That HOST stuff has to be taken care of very carefully.
HOST_PREFIX=l-
HOST_PREFIX_1=$(HOST_PREFIX)
HOST_CC=$(CC
) -b $(build
)
HOST_CFLAGS=$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS
) $(XCFLAGS
) \
-DGENERATOR_FILE
HOST_CC=$(CC
_FOR_BUILD
)
HOST_CFLAGS=$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS
_FOR_BUILD
) \
$(XCFLAGS)
-DGENERATOR_FILE
HOST_LDFLAGS=$(LDFLAGS)
HOST_CPPFLAGS=$(ALL_CPPFLAGS)
HOST_MALLOC=$(MALLOC)
...
...
gcc/configure
View file @
d920e825
This diff is collapsed.
Click to expand it.
gcc/configure.in
View file @
d920e825
...
...
@@ -844,8 +844,11 @@ else
/* | [A-Za-z]:[\\/]* ) realsrcdir=${srcdir};;
*) realsrcdir=../${srcdir};;
esac
CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
saved_CFLAGS="${CFLAGS}"
CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
${realsrcdir}/configure \
--target=$target --host=$build --build=$build
CFLAGS="${saved_CFLAGS}"
# We just finished tests for the build machine, so rename
# the file auto-build.h in the gcc directory.
...
...
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