+2000-10-26 Ben Elliston <bje@redhat.com>
+
+ * cgen.sh: Handle an isa argument between cpu and mach. Default to
+ `all'. Pass `-i' options to cgen applications.
+ * Make-common.in (cgen-arch, cgen-cpu, cgen-decode, cgen-cpu-decode,
+ cgen-desc): Pass $(isa) to cgen.sh.
+
2000-10-08 Ben Elliston <bje@redhat.com>
* cgen-utils.c (cgen_rtx_error): New function.
cgen-arch: force
$(SHELL) $(srccom)/cgen.sh arch $(srcdir) \
$(CGEN) $(CGENDIR) "$(CGENFLAGS)" \
- $(arch) "$(FLAGS)" ignored $(mach) ignored ignored
-
+ $(arch) "$(FLAGS)" ignored "$(isa)" $(mach) ignored ignored
+
cgen-cpu: force
$(SHELL) $(srccom)/cgen.sh cpu $(srcdir) \
$(CGEN) $(CGENDIR) "$(CGENFLAGS)" \
- $(arch) "$(FLAGS)" $(cpu) $(mach) "$(SUFFIX)" "$(EXTRAFILES)"
+ $(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" "$(EXTRAFILES)"
cgen-decode: force
$(SHELL) $(srccom)/cgen.sh decode $(srcdir) \
$(CGEN) $(CGENDIR) "$(CGENFLAGS)" \
- $(arch) "$(FLAGS)" $(cpu) $(mach) "$(SUFFIX)" ignored
+ $(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" ignored
cgen-cpu-decode: force
$(SHELL) $(srccom)/cgen.sh cpu-decode $(srcdir) \
$(CGEN) $(CGENDIR) "$(CGENFLAGS)" \
- $(arch) "$(FLAGS)" $(cpu) $(mach) "$(SUFFIX)" "$(EXTRAFILES)"
+ $(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" "$(EXTRAFILES)"
cgen-desc: force
$(SHELL) $(srccom)/cgen.sh desc $(srcdir) \
$(CGEN) $(CGENDIR) "$(CGENFLAGS)" \
- $(arch) "$(FLAGS)" $(cpu) $(mach) "$(SUFFIX)" ignored
+ $(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" ignored
## End COMMON_POST_CONFIG_FRAG
arch=$6
archflags=$7
cpu=$8
-mach=$9
+isa=$9
# bring parms past 9 portably into view
+shift ; mach=$9
shift ; suffix=$9
shift ; extrafiles=$9
ARCH=`echo ${arch} | tr "${lowercase}" "${uppercase}"`
CPU=`echo ${cpu} | tr "${lowercase}" "${uppercase}"`
+if test -z "$isa" ; then
+ isa=all
+fi
+
case $action in
arch)
rm -f tmp-arch.h1 tmp-arch.h
-f "${archflags}" \
-m ${mach} \
-a ${arch} \
+ -i ${isa} \
-A tmp-arch.h1 \
-B tmp-arch.c1 \
-N tmp-all.h1
-f "${archflags}" \
-m ${mach} \
-a ${arch} \
+ -i ${isa} \
${fileopts}
case $action in
-f "${archflags}" \
-m ${mach} \
-a ${arch} \
+ -i ${isa} \
-H tmp-desc.h1 \
-C tmp-desc.c1 \
-O tmp-opc.h1