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
d62216b7
Commit
d62216b7
authored
Sep 12, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial revision
From-SVN: r10335
parent
4edb56f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
181 additions
and
0 deletions
+181
-0
gcc/config/winnt/config-nt.bat
+51
-0
gcc/config/winnt/config-nt.sed
+130
-0
No files found.
gcc/config/winnt/config-nt.bat
0 → 100644
View file @
d62216b7
echo Configuring GCC for Windows NT on %2
rem This batch file assumes a unix-type "sed" program
echo #include "%2/xm-winnt.h" >config.h
echo #include "%2/xm-winnt.h" >hconfig.h
echo #include "%2/xm-winnt.h" >tconfig.h
echo #include "%2/winnt.h" >tm.h
rem This batch file assumes a unix-type "sed" program
echo # Makefile generated by "config-nt.bat"> Makefile
echo all.nt: cpp.exe cc1.exe cc1obj.exe xgcc.exe ld.exe stmp-headers libgcc.lib stmp-float_h specs stamp-objlist>> Makefile
sed -f config/%2/config-nt.sed -f config/winnt/config-nt.sed Makefile.in >> Makefile
set LANG=
echo # >specs.h
echo # >options.h
if not exist cp\make-lang.in goto no_cp
if exist cp\lang-specs.h echo #include "cp/lang-specs.h">>specs.h
if exist cp\lang-options.h echo #include "cp/lang-options.h">>options.h
sed -f config/%2/config-nt.sed -f config/winnt/config-nt.sed cp\make-lang.in >> Makefile
sed -f config/%2/config-nt.sed -f config/winnt/config-nt.sed cp\makefile.in > cp\Makefile
set LANG=%LANG% c++.#
:no_cp
if not exist ada\make-lang.in goto no_ada
if exist ada\lang-specs.h echo #include "ada/lang-specs.h">>specs.h
if exist ada\lang-options.h echo #include "ada/lang-options.h">>options.h
sed -f config/%2/config-nt.sed -f config/winnt/config-nt.sed ada\make-lang.in >> Makefile
sed -f config/%2/config-nt.sed -f config/winnt/config-nt.sed ada\makefile.in > ada\Makefile
set LANG=%LANG% ada.#
:no_ada
if not exist f\make-lang.in goto no_f
if exist f\lang-specs.h echo #include "f/lang-specs.h">>specs.h
if exist f\lang-options.h echo #include "f/lang-options.h">>options.h
sed -f config/%2/config-nt.sed -f config/winnt/config-nt.sed f\make-lang.in >> Makefile
sed -f config/%2/config-nt.sed -f config/winnt/config-nt.sed f\makefile.in > f\Makefile
set LANG=%LANG% f.#
:no_f
echo lang.mostlyclean: %LANG% | sed "s/#/mostlyclean/g" >> Makefile
echo lang.clean: %LANG% | sed "s/#/clean/g" >> Makefile
echo lang.distclean: %LANG% | sed "s/#/distclean/g" >> Makefile
echo lang.realclean: %LANG% | sed "s/#/realclean/g" >> Makefile
echo #define MULTILIB_SELECT ". ;" > multilib.h1
copy multilib.h1 multilib.h
del multilib.h1
gcc/config/winnt/config-nt.sed
0 → 100644
View file @
d62216b7
/
^
Makefile
/,/
^
rm -f config
.
run
/
d
s
/
rm -f
/
del
/
s
/
|| cp
/
|| copy
/
/
^
config
.
status
/,/
fi
/
d
s
/
config
.
status
//
g
s
/
\/
dev
\/
null
/
NUL
/
g
s
/
$
(
srcdir
)
\/
c-parse
/
c-parse
/
g
s
/
$
(
srcdir
)
\/
objc-parse
.
y
/
objc-parse.y
/
g
s
/
$
(
srcdir
)
\/
c-gperf
/
c-gperf
/
g
/
^
multilib
.
h
/
s
/
multilib
/
not-multilib
/
/
^
xmake_file=
/
d
/^tm
a
ke_file=/ d
/
^
lang_specs_files=
/
d
/^
la
ng_options_files=/ d
/
^
version=
/
c
\
version=2.7.0
s
/
CC = cc
/
CC = cl
/
s
/
^
SHELL =
.*
/
SHELL =
/
s
/
CFLAGS = -g
/
CFLAGS =
/
s
/
:
\$
/
:
\$
/
g
s
/
<
\
*
\$
(
srcdir
)
\/
/
< $(srcdir)
\\
/
g
s
/
^
\$
(
srcdir
)
\/
move-if-change
/
copy
/
s
/
^
USE_
/
# USE_
/
s
/
`echo
\$
(
srcdir
)
\/
//
g
s
/
| sed 's,
\^\\\.\/
,,'`
//
g
s
/
^
cd
\$
(
srcdir
)[
]
*
;
/
/
/
^
stamp-attrtab
/,/
copy
/
{
/
\\
$
/
d
/
f
i
/d
/
copy
/
i
\
\ genattrtab $(md_file) > tmp-attrtab.c
}
/
^
enquire
[
]
*
:
/
s
/
\$
(
GCC_PARTS
)//
g
/
^
enquire
.
o
[
]
*
:
/
s
/
\$
(
GCC_PASSES
)//
g
/
^
GCC_FOR_TARGET =
/
c
\
GCC_FOR_TARGET = xgcc
/
^
ENQUIRE_LDFLAGS =
/
c
\
ENQUIRE_LDFLAGS =
s
/
;
*
@true
//
/
>
*
stamp-objlist
/
c
\
echo.exe $(OBJS) $(BC_OBJS) | sed -e "s, \([a-z]\), ../\1,g" >stamp-objlist
/
^
OBJS
.*
stamp-objlist
/
s
?
`cat
..
/stamp-objlist`
?
@../stamp-objlist
?
s
/
^
\(
SUBDIR_OBSTACK
*
=
\)
.*$
/
\1
..
\/
obstack.o
/
s
/
^
\(
SUBDIR_USE_ALLOCA
*
=
\)
.*$
/
\1
/
s
/
^
\(
SUBDIR_MALLOC
*
=
\)
.*$
/
\1
/
/
####target
/
i
\
STMP_FIXPROTO =
\
OTHER_FIXINCLUDES_DIRS=.
\
RANLIB = :
\
RANLIB_TEST = false
\
OLDCC = cl
\
MAKE = nmake
\
SYMLINK = copy
\
INSTALL = $(srcdir)/install.sh -c
\
exeext = .exe
\
objext = .obj
\
oldobjext = .obj
\
\
EXTRA_PROGRAMS=ld.exe
\
\
ld.obj: $(srcdir)/config/winnt/ld.c
\
\ $(CC) $(CFLAGS) \\
\
\ -I. -I$(srcdir) -I$(srcdir)/config -c $(srcdir)/config/winnt/ld.c
\
\
ld.exe: ld.obj
\
link -out:ld.exe ld.obj $(LDFLAGS) $(CLIB)
\
\
EXTRA_GCC_OBJS=spawnv.obj oldnames.obj
\
spawnv.obj: $(srcdir)/config/winnt/spawnv.c
\
\ $(CC) $(CFLAGS) \\
\
\ -I. -I$(srcdir) -I$(srcdir)/config -c $(srcdir)/config/winnt/spawnv.c
\
\
oldnames.obj: $(srcdir)/config/winnt/oldnames.c
\
\ $(CC) $(CFLAGS) \\
\
\ -I. -I$(srcdir) -I$(srcdir)/config -c $(srcdir)/config/winnt/oldnames.c
s
/
^
C c:
/
Cc:
/
s
/
\$
{OBJS}
/
\$
(OBJS)
/
g
s
/
\$
{SYSTEM_HEADER_DIR}
/
\$
(SYSTEM_HEADER_DIR)
/
g
s
/
\$
{HOST_CC}
/
\$
(HOST_CC)
/
g
s
/
\$
{srcdir}
\/
/
/
g
s
/
\$
{mainversion}
/
\$
(mainversion)
/
g
s
/
\
$
(
srcdir
)
\/
move-if-change
$
//
s
/
\$
(
srcdir
)
\/
move-if-change
/
copy
/
g
/
^
# USE_HOST_OBSTACK
/
i
\
USE_HOST_OBSTACK=obstack.obj
/
^
# USE_ALLOCA
/
i
\
USE_ALLOCA=alloca.obj
/
^
# USE_HOST_ALLOCA
/
i
\
USE_HOST_ALLOCA=alloca.obj
s
/
^
ALLOCA =
/
ALLOCA = alloca.obj
/
s
/
^
ALLOCA_FINISH = true
/
ALLOCA_FINISH =
/
s
/
\.\/
/
/
s
/
^
bi-
\(
[
a-z
]
*
\)
*
:
/
bi-
\1
.exe :
/
s
/
bi-
\(
[
a-z
]
*
\)
$
/
bi-
\1
.exe
/
s
/
bi-
\(
[
a-z
]
*
\)
/
bi-
\1
.exe
/
g
s
/
^
gen
\(
[
a-z
]
*
\)
*
:
/
gen
\1
.exe :
/
s
/
gen
\(
[
a-z
]
*
\)
$
/
gen
\1
.exe
/
s
/
gen
\(
[
a-z
]
*
\)
/
gen
\1
.exe
/
g
s
/
genmultilib
.
exe
/
genmultilib
/
g
s
/
^
cccp
*
:
/
cccp.exe :
/
s
/
cccp
$
/
cccp.exe
/
s
/
cccp
/
cccp.exe
/
s
/
CCCP=cccp
.
exe
/
CCCP=cccp
/
s
/(
CCCP
)
$
/
(CCCP)$(exeext)
/
s
/
^
cpp
*
:
/
cpp.exe :
/
s
/
cpp
$
/
cpp.exe
/
s
/
cpp
/
cpp.exe
/
s
/
^
cc1
*
:
/
cc1.exe :
/
s
/
cc1
$
/
cc1.exe
/
s
/
cc1
/
cc1.exe
/
s
/
^
cc1obj
*
:
/
cc1obj.exe :
/
s
/
cc1obj
$
/
cc1obj.exe
/
s
/
cc1obj
/
cc1obj.exe
/
s
/
^
xgcc
*
:
/
xgcc.exe :
/
s
/
xgcc
$
/
xgcc.exe
/
s
/
xgcc
/
xgcc.exe
/
s
/
^
enquire
*
:
/
enquire.exe :
/
s
/
enquire
$
/
enquire.exe
/
s
/
enquire
/
enquire.exe
/
s
/
\.
o
*
:
/
.obj :
/
s
/
\.
o
$
/
.obj
/
s
/
\.
o
/
.obj
/
g
s
/
-rm -f cpp
.
exe
/
del cpp.exe
/
s
/
\$
(
CC
)
\$
(
ALL_CFLAGS
)
\$
(
LDFLAGS
)
-o
/
link $(LDFLAGS) -out:
/
s
/
\$
(
HOST_CC
)
\$
(
HOST_CFLAGS
)
\$
(
HOST_LDFLAGS
)
-o
/
link $(HOST_LDFLAGS) -out:
/
/
^
# Build libgcc
.
a
/
r
config/winnt/libgcc.mak
/
^
# Build libgcc
.
a
/,/
/
d
/^
# Build the include directory\./ r config/winnt/headers.mak
/
^
# Build the include directory
\.
/,/
touch objc-headers
/
d
s
/
^
\
//
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