* expr.c (make_expr_symbol): No longer static. Use symbol_create, not
[binutils-gdb.git] / gas / make-gas.com
1 $! Set the def dir to proper place for use in batch. Works for interactive to.
2 $flnm = f$enviroment("PROCEDURE") ! get current procedure name
3 $set default 'f$parse(flnm,,,"DEVICE")''f$parse(flnm,,,"DIRECTORY")'
4 $!
5 $! Command file to build a GNU assembler on VMS
6 $!
7 $! If you are using a version of GCC that supports global constants
8 $! you should remove the define="const=" from the gcc lines.
9 $!
10 $! Caution: Versions 1.38.1 and earlier had a bug in the handling of
11 $! some static constants. If you are using such a version of the
12 $! assembler, and you wish to compile without the "const=" hack,
13 $! you should first build this version *with* the "const="
14 $! definition, and then use that assembler to rebuild it without the
15 $! "const=" definition. Failure to do this will result in an assembler
16 $! that will mung floating point constants.
17 $!
18 $! Note: The version of gas shipped on the GCC VMS tapes has been patched
19 $! to fix the above mentioned bug.
20 $!
21 $ !The gcc-vms driver was modified to use `-1' quite some time ago,
22 $ !so don't echo this text any more...
23 $ !write sys$output "If this assembler is going to be used with GCC 1.n, you"
24 $ !write sys$output "need to modify the driver to supply the -1 switch to gas."
25 $ !write sys$output "This is required because of a small change in how global"
26 $ !write sys$output "constant variables are handled. Failure to include this"
27 $ !write sys$output "will result in linker warning messages about mismatched
28 $ !write sys$output "psect attributes."
29 $!
30 $ C_DEFS :="""VMS"""
31 $! C_DEFS :="""VMS""","""const="""
32 $ C_INCLUDES :=/include=([],[.config],[-.include],[-.include.aout])
33 $ C_FLAGS := /debug 'c_includes'
34 $!
35 $!
36 $ if "''p1'" .eqs. "LINK" then goto Link
37 $!
38 $! This helps gcc 1.nn find the aout/* files.
39 $!
40 $ aout_dev = f$parse(flnm,,,"DEVICE")
41 $ tmp = aout_dev - ":"
42 $if f$trnlnm(tmp).nes."" then aout_dev = f$trnlnm(tmp)
43 $ aout_dir = aout_dev+f$parse(flnm,,,"DIRECTORY")' -
44 - "GAS]" + "INCLUDE.AOUT.]" - "]["
45 $assign 'aout_dir' aout/tran=conc
46 $ opcode_dir = aout_dev+f$parse(flnm,,,"DIRECTORY")' -
47 - "GAS]" + "INCLUDE.OPCODE.]" - "]["
48 $assign 'opcode_dir' opcode/tran=conc
49 $!
50 $ gcc 'c_flags'/define=('C_DEFS') targ-cpu.c
51 $ gcc 'c_flags'/define=('C_DEFS') obj-format.c
52 $ gcc 'c_flags'/define=('C_DEFS') atof-targ.c
53 $ gcc 'c_flags'/define=('C_DEFS') app.c
54 $ gcc 'c_flags'/define=('C_DEFS') as.c
55 $ gcc 'c_flags'/define=('C_DEFS') atof-generic.c
56 $ gcc 'c_flags'/define=('C_DEFS') bignum-copy.c
57 $ gcc 'c_flags'/define=('C_DEFS') cond.c
58 $ gcc 'c_flags'/define=('C_DEFS') expr.c
59 $ gcc 'c_flags'/define=('C_DEFS') flonum-konst.c
60 $ gcc 'c_flags'/define=('C_DEFS') flonum-copy.c
61 $ gcc 'c_flags'/define=('C_DEFS') flonum-mult.c
62 $ gcc 'c_flags'/define=('C_DEFS') frags.c
63 $ gcc 'c_flags'/define=('C_DEFS') hash.c
64 $ gcc 'c_flags'/define=('C_DEFS') hex-value.c
65 $ gcc 'c_flags'/define=('C_DEFS') input-file.c
66 $ gcc 'c_flags'/define=('C_DEFS') input-scrub.c
67 $ gcc 'c_flags'/define=('C_DEFS') literal.c
68 $ gcc 'c_flags'/define=('C_DEFS') messages.c
69 $ gcc 'c_flags'/define=('C_DEFS') output-file.c
70 $ gcc 'c_flags'/define=('C_DEFS') read.c
71 $ gcc 'c_flags'/define=('C_DEFS') subsegs.c
72 $ gcc 'c_flags'/define=('C_DEFS') symbols.c
73 $ gcc 'c_flags'/define=('C_DEFS') write.c
74 $ gcc 'c_flags'/define=('C_DEFS') listing.c
75 $ gcc 'c_flags'/define=('C_DEFS') ecoff.c
76 $ gcc 'c_flags'/define=('C_DEFS') stabs.c
77 $ gcc 'c_flags'/define=('C_DEFS') xmalloc.c
78 $ gcc 'c_flags'/define=('C_DEFS')/object=[]obstack.obj [-.libiberty]obstack.c
79 $ gcc 'c_flags'/define=('C_DEFS')/object=[]strdup.obj [-.libiberty]strdup.c
80 $ gcc 'c_flags'/define=('C_DEFS')/object=[]strncasecmp.obj [-.libiberty]strncasecmp.c
81 $ gcc 'c_flags'/define=('C_DEFS')/object=[]concat.obj [-.libiberty]concat.c
82 $ gcc 'c_flags'/define=('C_DEFS')/object=[]getopt.obj [-.libiberty]getopt.c
83 $ gcc 'c_flags'/define=('C_DEFS')/object=[]getopt1.obj [-.libiberty]getopt1.c
84 $ gcc 'c_flags'/define=('C_DEFS')/object=[]getruntime.obj [-.libiberty]getruntime.c
85 $link:
86 $ link/nomap/exec=gcc-as version.opt/opt+sys$input:/opt
87 !
88 ! Linker options file for GNU assembler
89 !
90 targ-cpu.obj,-
91 obj-format.obj,-
92 atof-targ.obj,-
93 app.obj,-
94 as.obj,-
95 atof-generic.obj,-
96 bignum-copy.obj,-
97 cond.obj,-
98 expr.obj,-
99 flonum-konst.obj,-
100 flonum-copy.obj,-
101 flonum-mult.obj,-
102 frags.obj,-
103 hash.obj,-
104 hex-value.obj,-
105 input-file.obj,-
106 input-scrub.obj,-
107 literal.obj,-
108 messages.obj,-
109 output-file.obj,-
110 read.obj,-
111 subsegs.obj,-
112 symbols.obj,-
113 write.obj,-
114 listing.obj,-
115 ecoff.obj,-
116 stabs.obj,-
117 xmalloc.obj,-
118 obstack.obj,-
119 strdup.obj,-
120 strncasecmp.obj,-
121 concat.obj,-
122 getopt.obj,-
123 getopt1.obj,-
124 getruntime.obj,-
125 gnu_cc:[000000]gcclib/lib,sys$share:vaxcrtl/lib
126 ! Tell linker exactly what psect attributes we want -- match VAXCRTL.
127 psect_attr=ENVIRON,long,pic,ovr,rel,gbl,noshr,noexe,rd,wrt