Commit 6baa89b5 by Richard Kenner

(CFLAGS): Separate include file handling; for stage 1, CFLAGS1 is

appended to CFLAGS, otherwise CFLAGS2.

From-SVN: r7320
parent 9d926da5
...@@ -26,8 +26,10 @@ $ EDIT := edit ...@@ -26,8 +26,10 @@ $ EDIT := edit
$! $!
$! Compiler options $! Compiler options
$! $!
$ CFLAGS = "/debug/cc1_options=""-mpcc-alignment""/incl=([],[.config.])" $ CFLAGS = "/noVerbose/Debug/CC1=""-mpcc-alignment"""
$! CFLAGS = "/noopt/incl=([],[.config])" $! CFLAGS = "/noOpt" !uncomment for VAXC
$ CINCL1 = "/Incl=[]" !stage 1 -I flags
$ CINCL2 = "/Incl=([],[.ginclude])" !stage 2,3,... flags
$! $!
$! Link options $! Link options
$! $!
...@@ -36,7 +38,7 @@ $! ...@@ -36,7 +38,7 @@ $!
$! Link libraries $! Link libraries
$! $!
$ LIBS := gnu_cc:[000000]gcclib.olb/libr,sys$library:vaxcrtl.olb/libr $ LIBS := gnu_cc:[000000]gcclib.olb/libr,sys$library:vaxcrtl.olb/libr
$! LIBS := alloca.obj,sys$library:vaxcrtl.olb/libr $! LIBS := alloca.obj,sys$library:vaxcrtl.olb/Libr !uncomment for VAXC
$! $!
$! $!
$! First we figure out what needs to be done. This is sort of like a limited $! First we figure out what needs to be done. This is sort of like a limited
...@@ -80,6 +82,7 @@ $i=0 ...@@ -80,6 +82,7 @@ $i=0
$DO_ALL = 0 $DO_ALL = 0
$DO_LINK = 0 $DO_LINK = 0
$DO_DEBUG = 0 $DO_DEBUG = 0
$DO_CC1PLUS = 0
$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
...@@ -119,6 +122,18 @@ $if DO_CC1PLUS.eq.1 then echo " Link C++ compiler (gcc-cc1plus.exe)." ...@@ -119,6 +122,18 @@ $if DO_CC1PLUS.eq.1 then echo " Link C++ compiler (gcc-cc1plus.exe)."
$if DO_CC1OBJ.eq.1 then echo " Link objective-C compiler (gcc-cc1obj.exe)." $if DO_CC1OBJ.eq.1 then echo " Link objective-C compiler (gcc-cc1obj.exe)."
$if DO_DEBUG.eq.1 then echo " Link images to run under debugger." $if DO_DEBUG.eq.1 then echo " Link images to run under debugger."
$! $!
$! Update CFLAGS with appropriate CINCLx value.
$!
$if f$edit(f$extract(0,3,CC),"LOWERCASE").nes."gcc" then goto stage1
$if f$search("gcc-cc1.exe").eqs."" then goto stage1
$if f$file_attr("gnu_cc:[000000]gcc-cc1.exe","FID").nes.-
f$file_attr("gcc-cc1.exe","FID") then goto stage1
$ CFLAGS = CFLAGS + CINCL2
$ goto cinclX
$stage1:
$ CFLAGS = CFLAGS + CINCL1
$cinclX:
$!
$! Test and see if we need these messages or not. The -1 switch gives it away. $! Test and see if we need these messages or not. The -1 switch gives it away.
$! $!
$gas := $gnu_cc:[000000]gcc-as.exe $gas := $gnu_cc:[000000]gcc-as.exe
...@@ -333,6 +348,7 @@ $ close jfile$ ...@@ -333,6 +348,7 @@ $ close jfile$
$ endif $ endif
$!'f$verify(0) $!'f$verify(0)
$no_bison: $no_bison:
$ echo " (Ignore any warning about not finding file ""bison.simple"".)"
$ endif $ endif
$! $!
$if f$extract(0,5,flnm).eqs."insn-" then call generate 'flnm'.c $if f$extract(0,5,flnm).eqs."insn-" then call generate 'flnm'.c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment