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
c2fdae8e
Commit
c2fdae8e
authored
Jul 22, 1994
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DJ patches for MSDOS
From-SVN: r7792
parent
bcd8cec8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
59 deletions
+78
-59
gcc/config/msdos/configur.bat
+33
-0
gcc/config/msdos/top.sed
+38
-0
gcc/configure.bat
+2
-54
gcc/gcc.c
+5
-5
No files found.
gcc/config/msdos/configur.bat
0 → 100644
View file @
c2fdae8e
@echo off
echo Configuring GCC for go32
rem This batch file assumes a unix-type "sed" program
if not exist config\msdos\configure.bat chdir ..\..
update config\i386\xm-dos.h config.h
update config\i386\xm-dos.h hconfig.h
update config\i386\xm-dos.h tconfig.h
update config\i386\go32.h tm.h
update config\i386\i386.md md
update config\i386\i386.c aux-output.c
echo # Makefile generated by "configure.bat"> Makefile
echo all.dos: cccp cc1 cc1obj xgcc s-objlist >> Makefile
sed -f config/msdos/top.sed Makefile.in >> Makefile
set LANG=
if not exist cp\make-lang.in goto no_cp
sed -f config/msdos/top.sed cp\make-lang.in >> Makefile
sed -f config/msdos/top.sed cp\makefile.in > cp\Makefile
set LANG=%LANG% c++.&
:no_cp
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
update multilib.h1 multilib.h
del multilib.h1
gcc/config/msdos/top.sed
0 → 100644
View file @
c2fdae8e
/
\.
o
[
]
*
:
/
s
/
config
.
status
//
/
^
multilib
.
h
/
s
/
multilib
/
not-multilib
/
/
^
target=
/
c
\
target=go32
/
^
xmake_file=
/
d
/^tm
a
ke_file=/ d
/
^
version=
/
c
\
version=2.6.0
s
/
CC = cc
/
CC = gcc
/
s
/
:
\$
/
:
\$
/
g
s
/
^
\
*
\.\/
/
go32
/
s
/
<
\
*
\$
(
srcdir
)
\/
/
< $(srcdir)
\\
/
g
s
/
^
\$
(
srcdir
)
\/
move-if-change
/
update
/
s
/
^
USE_
/
# USE_
/
s
/
`echo
\$
(
srcdir
)
\/
//
g
s
/
| sed 's,
\^\\\.\/
,,'`
//
g
s
/
^
cd
\$
(
srcdir
)[
]
*
;
/
/
/
^
# USE_HOST_OBSTACK
/
i
\
USE_HOST_OBSTACK=obstack.o
/
^
stamp-attrtab
/,/
update
/
{
/
\\
/
d
/f
i
/d
/
update
/
i
\
go32 genattrtab md > t-attrtab.c
}
/
^
enquire
[
]
*
:
/
s
/
\$
(
GCC_PARTS
)//
g
/
^
enquire
.
o
[
]
*
:
/
s
/
\$
(
GCC_PASSES
)//
g
/
^
GCC_FOR_TARGET =
/
c
\
GCC_FOR_TARGET = gcc
s
/
;
*
@true
//
s
/
stamp-
/
s-
/
g
s
/
tmp-
/
t-
/
g
/
>
*
s-objlist
/
c
\
echo.exe -o s-objlist $(addprefix ../,$(OBJS) $(BC_OBJS))
/
^
OBJS
.*
s-objlist
/
s
?
`cat
..
/s-objlist`
?
@../s-objlist
?
s
/
^
\(
SUBDIR_OBSTACK
*
=
\)
.*$
/
\1
..
\/
obstack.o
/
s
/
^
\(
SUBDIR_USE_ALLOCA
*
=
\)
.*$
/
\1
/
s
/
^
\(
SUBDIR_MALLOC
*
=
\)
.*$
/
\1
/
gcc/configure.bat
View file @
c2fdae8e
@echo off
@echo off
echo Configuring GCC for go32
config\msdos\configure %1 %2 %3 %4
rem This batch file assumes a unix-type "sed" program
update config\i386\xm-dos.h config.h
update config\i386\xm-dos.h hconfig.h
update config\i386\xm-dos.h tconfig.h
update config\i386\go32.h tm.h
update config\i386\i386.md md
update config\i386\i386.c aux-output.c
echo # Makefile generated by "configure.bat"> Makefile
echo all.dos: cccp cc1 cc1plus cc1obj xgcc>> Makefile
if exist config.sed del config.sed
echo "/\.o[ ]*:/ s/config.status// ">> config.sed
echo "/^target=/ c\ ">> config.sed
echo "target=go32 ">> config.sed
echo "/^version=/ c\ ">> config.sed
sed -e "s/.*\"\([^ \"]*\)[ \"].*/version=\1/" version.c >> config.sed
echo "s/CC = cc/CC = gcc/ ">> config.sed
echo "s/:\$/: \$/g ">> config.sed
echo "s/^ \ *\.\// go32 / ">> config.sed
echo "s/<\ *\$(srcdir)\//< $(srcdir)\\/g ">> config.sed
echo "s/^ \$(srcdir)\/move-if-change/ update/ ">> config.sed
echo "s/^USE_/# USE_/ ">> config.sed
echo "s/`echo \$(srcdir)\///g ">> config.sed
echo "s/ | sed 's,\^\\\.\/,,'`//g ">> config.sed
echo "s/^ cd \$(srcdir)[ ]*;/ / ">> config.sed
echo "/^# USE_HOST_OBSTACK/ i\ ">> config.sed
echo "USE_HOST_OBSTACK=obstack.o ">> config.sed
echo "/^stamp-attrtab/,/update/ { ">> config.sed
echo " /\\/d ">> config.sed
echo " /fi/d ">> config.sed
echo " /update/ i\ ">> config.sed
echo " go32 genattrtab md > t-attrtab.c ">> config.sed
echo "} ">> config.sed
echo "/^enquire[ ]*:/ s/\$(GCC_PARTS)//g ">> config.sed
echo "/^enquire.o[ ]*:/ s/\$(GCC_PASSES)//g ">> config.sed
echo "/^GCC_FOR_TARGET =/ c\ ">> config.sed
echo "GCC_FOR_TARGET = gcc ">> config.sed
echo "s/; *@true// ">> config.sed
echo "s/stamp-/s-/g ">> config.sed
echo "s/tmp-/t-/g ">> config.sed
sed -e "s/^\"//" -e "s/\"$//" -e "s/[ ]*$//" config.sed > config2.sed
sed -f config2.sed Makefile.in >> Makefile
del config.sed
del config2.sed
gcc/gcc.c
View file @
c2fdae8e
...
@@ -1873,10 +1873,7 @@ static int last_pipe_input;
...
@@ -1873,10 +1873,7 @@ static int last_pipe_input;
#ifndef OS2
#ifndef OS2
#ifdef __MSDOS__
#ifdef __MSDOS__
/* Declare these to avoid compilation error. They won't be called. */
#include <process.h>
int
execv
(
const
char
*
a
,
const
char
**
b
){}
int
execvp
(
const
char
*
a
,
const
char
**
b
){}
static
int
static
int
pexecute
(
search_flag
,
program
,
argv
,
not_last
)
pexecute
(
search_flag
,
program
,
argv
,
not_last
)
int
search_flag
;
int
search_flag
;
...
@@ -1884,6 +1881,9 @@ pexecute (search_flag, program, argv, not_last)
...
@@ -1884,6 +1881,9 @@ pexecute (search_flag, program, argv, not_last)
char
*
argv
[];
char
*
argv
[];
int
not_last
;
int
not_last
;
{
{
#ifdef __GO32__
int
i
=
(
search_flag
?
spawnv
:
spawnvp
)
(
1
,
program
,
argv
);
#else
char
*
scmd
,
*
rf
;
char
*
scmd
,
*
rf
;
FILE
*
argfile
;
FILE
*
argfile
;
int
i
,
el
=
search_flag
?
0
:
4
;
int
i
,
el
=
search_flag
?
0
:
4
;
...
@@ -1912,13 +1912,13 @@ pexecute (search_flag, program, argv, not_last)
...
@@ -1912,13 +1912,13 @@ pexecute (search_flag, program, argv, not_last)
i
=
system
(
scmd
);
i
=
system
(
scmd
);
remove
(
rf
);
remove
(
rf
);
#endif
if
(
i
==
-
1
)
if
(
i
==
-
1
)
{
{
perror_exec
(
program
);
perror_exec
(
program
);
return
MIN_FATAL_STATUS
<<
8
;
return
MIN_FATAL_STATUS
<<
8
;
}
}
return
i
<<
8
;
return
i
<<
8
;
}
}
...
...
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