Fri Sep 30 19:05:20 1994 Pat Rankin (rankin@eql.caltech.edu)

* vmsconf.sh (make-gas.com): handle DCL verification to enable
	sensible feedback to the user while gas is being built.
This commit is contained in:
Ken Raeburn 1994-10-01 04:15:45 +00:00
parent 76a390e234
commit c0b8690d94
1 changed files with 14 additions and 6 deletions

View File

@ -4,6 +4,7 @@ cat << 'EOF'
$! Set the def dir to proper place for use in batch. Works for interactive to. $! Set the def dir to proper place for use in batch. Works for interactive to.
$flnm = f$enviroment("PROCEDURE") ! get current procedure name $flnm = f$enviroment("PROCEDURE") ! get current procedure name
$set default 'f$parse(flnm,,,"DEVICE")''f$parse(flnm,,,"DIRECTORY")' $set default 'f$parse(flnm,,,"DEVICE")''f$parse(flnm,,,"DIRECTORY")'
$v = 'f$verify(0)'
$! $!
$! Command file to build a GNU assembler on VMS $! Command file to build a GNU assembler on VMS
$! $!
@ -32,10 +33,11 @@ $ !write sys$output "psect attributes."
$! $!
$ C_DEFS :="""VMS""" $ C_DEFS :="""VMS"""
$! C_DEFS :="""VMS""","""const=""" $! C_DEFS :="""VMS""","""const="""
$ C_INCLUDES :=/include=([],[.config],[-.include],[-.include.aout]) $ C_INCLUDES = "/Include=([],[.config],[-.include],[-.include.aout])"
$ C_FLAGS := /debug 'c_includes' $ C_FLAGS = "/noVerbose/Debug" + c_includes
$! $!
$! $!
$ on error then goto bail
$ if "''p1'" .eqs. "LINK" then goto Link $ if "''p1'" .eqs. "LINK" then goto Link
$! $!
$! This helps gcc 1.nn find the aout/* files. $! This helps gcc 1.nn find the aout/* files.
@ -50,6 +52,8 @@ $ opcode_dir = aout_dev+f$parse(flnm,,,"DIRECTORY")' -
- "GAS]" + "INCLUDE.OPCODE.]" - "][" - "GAS]" + "INCLUDE.OPCODE.]" - "]["
$assign 'opcode_dir' opcode/tran=conc $assign 'opcode_dir' opcode/tran=conc
$! $!
$ set verify
$!
EOF EOF
cfiles="`echo $* | sed -e 's/\.o/.c/g' -e 's!../\([^ /]*\)/\([^ /]*\.c\)![-.\1]\2!g'`" cfiles="`echo $* | sed -e 's/\.o/.c/g' -e 's!../\([^ /]*\)/\([^ /]*\.c\)![-.\1]\2!g'`"
@ -58,17 +62,19 @@ for cfile in $cfiles ; do
case $cfile in case $cfile in
"[-."*) "[-."*)
base=`echo $cfile | sed -e 's/\[.*\]//' -e 's/\.c$//'` base=`echo $cfile | sed -e 's/\[.*\]//' -e 's/\.c$//'`
echo "\$ gcc 'c_flags'/define=('C_DEFS')/object=[]$base.obj $cfile" echo "\$ gcc 'c_flags'/Define=('C_DEFS')/Object=[]$base.obj $cfile"
;; ;;
*) *)
echo "\$ gcc 'c_flags'/define=('C_DEFS') $cfile" echo "\$ gcc 'c_flags'/Define=('C_DEFS') $cfile"
;; ;;
esac esac
done done
cat << 'EOF' cat << 'EOF'
$link: $link:
$ link/nomap/exec=gcc-as version.opt/opt+sys$input:/opt $!'f$verify(0)'
$ set verify=(Proc,noImag)
$ link/noMap/Exec=gcc-as version.opt/Opt+sys$input:/Opt
! !
! Linker options file for GNU assembler ! Linker options file for GNU assembler
! !
@ -80,7 +86,9 @@ for obj in $* ; do
done done
cat << 'EOF' cat << 'EOF'
gnu_cc:[000000]gcclib/lib,sys$share:vaxcrtl/lib gnu_cc:[000000]gcclib.olb/Lib,sys$library:vaxcrtl.olb/Lib
! Tell linker exactly what psect attributes we want -- match VAXCRTL. ! Tell linker exactly what psect attributes we want -- match VAXCRTL.
psect_attr=ENVIRON,long,pic,ovr,rel,gbl,noshr,noexe,rd,wrt psect_attr=ENVIRON,long,pic,ovr,rel,gbl,noshr,noexe,rd,wrt
$!
$bail: exit $status + 0*f$verify(v) !'f$verify(0)'
EOF EOF