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
1ca0c604
Commit
1ca0c604
authored
Jul 11, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile most of cc1plus in the `cp' subdirector.
From-SVN: r7710
parent
b5890b31
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
14 deletions
+34
-14
gcc/make-cc1.com
+34
-14
No files found.
gcc/make-cc1.com
View file @
1ca0c604
...
@@ -32,6 +32,7 @@ $ CFLAGS = "/Debug/noVerbos/CC1=""-mpcc-alignment"""
...
@@ -32,6 +32,7 @@ $ CFLAGS = "/Debug/noVerbos/CC1=""-mpcc-alignment"""
$! CFLAGS = "/noOpt" !uncomment for VAXC
$! CFLAGS = "/noOpt" !uncomment for VAXC
$ CINCL1 = "/Incl=[]" !stage 1 -I flags
$ CINCL1 = "/Incl=[]" !stage 1 -I flags
$ CINCL2 = "/Incl=([],[.ginclude])" !stage 2,3,... flags
$ CINCL2 = "/Incl=([],[.ginclude])" !stage 2,3,... flags
$ CINCL_SUB = "/Incl=([],[-],[-.ginclude])" ![.cp] flags
$!
$!
$! Link options
$! Link options
$!
$!
...
@@ -89,6 +90,7 @@ $DO_ALL = 0
...
@@ -89,6 +90,7 @@ $DO_ALL = 0
$DO_LINK = 0
$DO_LINK = 0
$DO_DEBUG = 0
$DO_DEBUG = 0
$DO_CC1PLUS = 0
$DO_CC1PLUS = 0
$if f$trnlnm("cfile$").nes."" then close/noLog cfile$
$open cfile$ compilers.list
$open cfile$ compilers.list
$cinit:read cfile$ compilername/end=cinit_done
$cinit:read cfile$ compilername/end=cinit_done
$DO_'compilername'=0
$DO_'compilername'=0
...
@@ -151,11 +153,11 @@ $if size.eq.0 then goto no_message
...
@@ -151,11 +153,11 @@ $if size.eq.0 then goto no_message
$gas_message:
$gas_message:
$type sys$input
$type sys$input
Note: GCC 2.
0 treats external variables differently than GCC 1.40
does.
Note: GCC 2.
x treats external variables differently than GCC 1.x
does.
Before you use GCC 2.
0, you should obtain a version of the assembler which
Before you use GCC 2.
x, you should obtain a version of the assembler which
contains the patches to work with GCC 2.
0 (GCC-AS 1.38 does not contain
contains the patches to work with GCC 2.
x (GCC-AS 1.38 does not contain
these patches - whatever comes after this probably will). The assembler
these patches - whatever comes after this probably will). The assembler
in gcc-vms-1.4
0.tar.Z
from prep does contain the proper patches.
in gcc-vms-1.4
2.tar.gz
from prep does contain the proper patches.
If you do not update the assembler, the compiler will still work,
If you do not update the assembler, the compiler will still work,
but `extern const' variables will be treated as `extern'. This will result
but `extern const' variables will be treated as `extern'. This will result
...
@@ -166,7 +168,7 @@ $!
...
@@ -166,7 +168,7 @@ $!
$no_message:
$no_message:
$!
$!
$!
$!
$ if DO_DEBUG.eq.1 then LDFLAGS
:='LDFLAGS'/debug
$ if DO_DEBUG.eq.1 then LDFLAGS
= LDFLAGS + "/Debug"
$!
$!
$if DO_LINK.eq.1 then goto compile_cc1
$if DO_LINK.eq.1 then goto compile_cc1
$!
$!
...
@@ -206,8 +208,8 @@ $! First build a couple of header files from the machine description
...
@@ -206,8 +208,8 @@ $! First build a couple of header files from the machine description
$! These are used by many of the source modules, so we build them now.
$! These are used by many of the source modules, so we build them now.
$!
$!
$set verify
$set verify
$ 'CC''CFLAGS' rtl.
C
$ 'CC''CFLAGS' rtl.
c
$ 'CC''CFLAGS' obstack.
C
$ 'CC''CFLAGS' obstack.
c
$!'f$verify(0)
$!'f$verify(0)
$! Generate insn-attr.h
$! Generate insn-attr.h
$ call generate insn-attr.h
$ call generate insn-attr.h
...
@@ -220,6 +222,8 @@ $!
...
@@ -220,6 +222,8 @@ $!
$ call generate insn-attrtab.c "rtlanal.obj,"
$ call generate insn-attrtab.c "rtlanal.obj,"
$set verify
$set verify
$ 'CC''CFLAGS' insn-attrtab.c
$ 'CC''CFLAGS' insn-attrtab.c
$ 'CC''CFLAGS' bc-emit.c
$ 'CC''CFLAGS' bc-optab.c
$!'f$verify(0)
$!'f$verify(0)
$ endif
$ endif
$!
$!
...
@@ -289,7 +293,8 @@ $cloop:read cfile$ compilername/end=cdone
...
@@ -289,7 +293,8 @@ $cloop:read cfile$ compilername/end=cdone
$! language specific modules
$! language specific modules
$!
$!
$if (DO_ALL + DO_'compilername').eq.0 then goto cloop
$if (DO_ALL + DO_'compilername').eq.0 then goto cloop
$if DO_LINK.eq.0 then call compile 'compilername'-objs.opt "obstack"
$if DO_LINK.eq.0 then -
call compile 'compilername'-objs.opt "obstack,bc-emit,bc-optab"
$!
$!
$! CAUTION: If you want to link gcc-cc1* to the sharable image library
$! CAUTION: If you want to link gcc-cc1* to the sharable image library
$! VAXCRTL, see the notes in gcc.texinfo (or INSTALL) first.
$! VAXCRTL, see the notes in gcc.texinfo (or INSTALL) first.
...
@@ -332,9 +337,20 @@ $flnm=f$element(i,",",line)
...
@@ -332,9 +337,20 @@ $flnm=f$element(i,",",line)
$i=i+1
$i=i+1
$if flnm.eqs."" then goto loop
$if flnm.eqs."" then goto loop
$if flnm.eqs."," then goto loop
$if flnm.eqs."," then goto loop
$if f$locate(flnm,"''p2'").nes.f$length("''p2'") then goto loop1
$if f$locate(flnm,p2).lt.f$length(p2) then goto loop1
$! check for front-end subdirectory: "[.prfx]flnm"
$prfx = ""
$k = f$locate("]",flnm)
$if k.eq.1 then goto loop1 ![]c-common for [.cp]
$if k.lt.f$length(flnm) then prfx = f$extract(2,k-2,flnm)
$if k.lt.f$length(flnm) then flnm = f$extract(k+1,99,flnm)
$ if prfx.nes.""
$ then set default [.'prfx'] !push
$ save_cflags = CFLAGS
$ CFLAGS = CFLAGS - CINCL1 - CINCL2 + CINCL_SUB
$ endif
$!
$!
$if f$locate("
-
parse",flnm).nes.f$length(flnm)
$if f$locate("parse",flnm).nes.f$length(flnm)
$ then
$ then
$ if (f$search("''flnm'.C") .eqs. "") then goto yes_bison
$ if (f$search("''flnm'.C") .eqs. "") then goto yes_bison
$ if (f$cvtime(f$file_attributes("''flnm'.Y","RDT")).les. -
$ if (f$cvtime(f$file_attributes("''flnm'.Y","RDT")).les. -
...
@@ -346,10 +362,10 @@ $ 'BISON''BISON_FLAGS' 'flnm'.y
...
@@ -346,10 +362,10 @@ $ 'BISON''BISON_FLAGS' 'flnm'.y
$ 'RENAME' 'flnm'_tab.c 'flnm'.c
$ 'RENAME' 'flnm'_tab.c 'flnm'.c
$ 'RENAME' 'flnm'_tab.h 'flnm'.h
$ 'RENAME' 'flnm'_tab.h 'flnm'.h
$!'f$verify(0)
$!'f$verify(0)
$ if flnm.eqs."cp-parse"
$ if flnm.eqs."cp-parse"
.or. (prfx.eqs."cp" .and. flnm.eqs."parse")
$ then ! fgrep '#define YYEMPTY' cp-parse.c >>cp-parse.h
$ then ! fgrep '#define YYEMPTY' cp-parse.c >>cp-parse.h
$ open/Append jfile$
cp-parse
.h
$ open/Append jfile$
'flnm'
.h
$ 'SEARCH'/Exact/Output=jfile$
cp-parse
.c "#define YYEMPTY"
$ 'SEARCH'/Exact/Output=jfile$
'flnm'
.c "#define YYEMPTY"
$ close jfile$
$ close jfile$
$ endif
$ endif
$no_bison:
$no_bison:
...
@@ -361,9 +377,13 @@ $!
...
@@ -361,9 +377,13 @@ $!
$set verify
$set verify
$ 'CC''CFLAGS' 'flnm'.c
$ 'CC''CFLAGS' 'flnm'.c
$!'f$verify(0)
$!'f$verify(0)
$ if prfx.nes.""
$ then set default [-] !pop
$ CFLAGS = save_CFLAGS
$ endif
$
$goto loop1
$goto loop1
$!
$!
$goto loop
$!
$!
$! In case of error or abort, go here (In order to close file).
$! In case of error or abort, go here (In order to close file).
$!
$!
...
...
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