summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-02-12 17:50:48 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-02-12 17:50:48 +0000
commitd7aa26580ab04a166d9f99cdeac5ac19dbb8dccd (patch)
tree286ed8a10e9ea73398003962ef3fb6d38079e5fb
parent3a1589729d97fc4818ce1d3e3c4e2b770b1626ac (diff)
downloadgcc-d7aa26580ab04a166d9f99cdeac5ac19dbb8dccd.tar.gz
Initial revision
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@310 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/make-cccp.com50
-rw-r--r--gcc/make-l2.com53
2 files changed, 103 insertions, 0 deletions
diff --git a/gcc/make-cccp.com b/gcc/make-cccp.com
new file mode 100644
index 00000000000..f224ac58ff3
--- /dev/null
+++ b/gcc/make-cccp.com
@@ -0,0 +1,50 @@
+$! Set the def dir to proper place for use in batch. Works for interactive too.
+$flnm = f$enviroment("PROCEDURE") ! get current procedure name
+$set default 'f$parse(flnm,,,"DEVICE")''f$parse(flnm,,,"DIRECTORY")'
+$!
+$! Build the GNU "C" pre-processor on VMS
+$!
+$
+$!
+$! C compiler
+$!
+$ CC := gcc
+$ BISON := bison
+$ RENAME := rename
+$!
+$! Compiler options
+$!
+$ CFLAGS = "/debug/inc=([],[.config])"
+$!
+$! Link options
+$!
+$ LDFLAGS := /nomap
+$!
+$! Link libraries
+$!
+$ LIBS := gnu_cc:[000000]gcclib/libr,sys$share:vaxcrtl/libr
+$ if "''p1'" .eqs. "LINK" then goto Link
+$ 'CC 'CFLAGS cccp.c
+$ t1:='f$search("CEXP.C")'
+$ if "''t1'" .eqs. "" then goto 10$
+$ t1:='f$file_attributes("CEXP.Y","RDT")'
+$ t1:='f$cvtime(t1)'
+$ t2:='f$file_attributes("CEXP.C","RDT")'
+$ t2:='f$cvtime(t2)'
+$ if t1 .les. t2 then goto 20$
+$ 10$:
+$ bison cexp.y
+$ rename cexp_tab.c cexp.c
+$ 20$:
+$!
+$ 'CC 'CFLAGS cexp.c
+$ 'CC 'CFLAGS version.c
+$ Link:
+$ link 'LDFLAGS /exe=gcc-cpp cccp,cexp,version,version.opt/opt,'LIBS'
+$!
+$! CAUTION: If you want to link gcc-cpp to the sharable image library
+$! VAXCRTL, see the notes in gcc.texinfo (or INSTALL) first.
+$!
+$! Done
+$!
+$ exit
diff --git a/gcc/make-l2.com b/gcc/make-l2.com
new file mode 100644
index 00000000000..154a22ed1f9
--- /dev/null
+++ b/gcc/make-l2.com
@@ -0,0 +1,53 @@
+$! Set the def dir to proper place for use in batch. Works for interactive too.
+$flnm = f$enviroment("PROCEDURE") ! get current procedure name
+$set default 'f$parse(flnm,,,"DEVICE")''f$parse(flnm,,,"DIRECTORY")'
+$@$diska:[eric]test_gcc2
+$!
+$! Command file to build libgcc2.olb. You should only run this once you
+$! have the current compiler installed, otherwise some of the builtins will
+$! not be recognized. Once you have built libgcc2.olb, you can merge this
+$! with gnu_cc:[000000]gcclib.olb
+$!
+$lib/create libgcc2.olb
+$call compile_libgcc2 "L_muldi3"
+$call compile_libgcc2 "L_divdi3"
+$call compile_libgcc2 "L_moddi3"
+$call compile_libgcc2 "L_udivdi3"
+$call compile_libgcc2 "L_umoddi3"
+$call compile_libgcc2 "L_negdi2"
+$call compile_libgcc2 "L_lshrdi3"
+$call compile_libgcc2 "L_lshldi3"
+$call compile_libgcc2 "L_ashldi3"
+$call compile_libgcc2 "L_ashrdi3"
+$call compile_libgcc2 "L_udivmoddi4"
+$call compile_libgcc2 "L_cmpdi2"
+$call compile_libgcc2 "L_ucmpdi2"
+$call compile_libgcc2 "L_floatdidf"
+$call compile_libgcc2 "L_floatdisf"
+$call compile_libgcc2 "L_fixunsdfsi"
+$call compile_libgcc2 "L_fixunssfsi"
+$call compile_libgcc2 "L_fixunsdfdi"
+$call compile_libgcc2 "L_fixdfdi"
+$call compile_libgcc2 "L_fixunssfdi"
+$call compile_libgcc2 "L_fixsfdi"
+$call compile_libgcc2 "L_varargs"
+$call compile_libgcc2 "L_eprintf"
+$call compile_libgcc2 "L_builtin_new"
+$call compile_libgcc2 "L_builtin_New" L_builtin_nnew
+$call compile_libgcc2 "L_builtin_del"
+$call compile_libgcc2 "L_bb"
+$call compile_libgcc2 "L_shtab"
+$call compile_libgcc2 "L_clear_cache"
+$call compile_libgcc2 "L_trampoline"
+$call compile_libgcc2 "L__main"
+$!call compile_libgcc2 "L_exit"
+$exit
+$!
+$compile_libgcc2:
+$subroutine
+$objname = p1
+$if p2.nes."" then objname = p2
+$gcc/machine/include=([],[.config])/debug/define="''p1'" libgcc2.c/obj='objname'.obj
+$lib libgcc2.olb 'objname'.obj
+$del 'objname'.obj;/nolog
+$endsubroutine