* Re: opcodes patches
@ 2000-07-28 12:52 Nick Clifton
0 siblings, 0 replies; 5+ messages in thread
From: Nick Clifton @ 2000-07-28 12:52 UTC (permalink / raw)
To: binutils; +Cc: bje
Hi Guys,
I am forwarding this email for Ben Elliston, who is having some
problems with ORBS...
Cheers
Nick
------------------------------------------------------------------
The following patches add CGEN support to the opcodes
Makefile/configury. I have not included patches for generated files
like `configure'.
2000-07-28 Ben Elliston <bje@redhat.com>
* Makefile.am (CGEN, CGENDEPS, CGENDIR, CGENFLAGS): New.
(run-cgen, stamp-m32r, stamp-fr30): New targets.
* Makefile.in: Regenerate.
* configure.in: Add --enable-cgen-maint option.
* configure: Regenerate.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/opcodes/configure.in,v
retrieving revision 1.11
diff -u -r1.11 configure.in
--- configure.in 2000/07/20 16:46:28 1.11
+++ configure.in 2000/07/28 07:20:05
@@ -88,6 +88,24 @@
AC_CHECK_HEADERS(string.h strings.h stdlib.h)
+cgen_maint=no
+cgendir='$(srcdir)/../cgen'
+
+AC_ARG_ENABLE(cgen-maint,
+[ --enable-cgen-maint[=dir] build cgen generated files],
+[case "${enableval}" in
+ yes) cgen_maint=yes ;;
+ no) cgen_maint=no ;;
+ *)
+ # argument is cgen install directory (not implemented yet).
+ # Having a `share' directory might be more appropriate for the .scm,
+ # .cpu, etc. files.
+ cgen_maint=yes
+ cgendir=${cgen_maint}/lib/cgen
+ ;;
+esac])dnl
+AM_CONDITIONAL(CGEN_MAINT, test x${cgen_maint} = xyes)
+AC_SUBST(cgendir)
using_cgen=no
Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/opcodes/Makefile.am,v
retrieving revision 1.21
diff -u -r1.21 Makefile.am
--- Makefile.am 2000/07/20 16:56:18 1.21
+++ Makefile.am 2000/07/28 07:20:07
@@ -223,8 +223,46 @@
$(SHELL) ./config.status --recheck
CLEANFILES = \
+ stamp-m32r stamp-fr30 \
libopcodes.a stamp-lib dep.sed DEP DEPA DEP1 DEP2
+
+CGENDIR = @cgendir@
+CGEN = `if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi`
+CGENFLAGS = -v
+
+CGENDEPS = ../cgen/stamp-cgen \
+ $(CGENDIR)/desc.scm $(CGENDIR)/desc-cpu.scm \
+ $(CGENDIR)/opcodes.scm $(CGENDIR)/opc-asmdis.scm \
+ $(CGENDIR)/opc-ibld.scm $(CGENDIR)/opc-itab.scm \
+ $(CGENDIR)/opc-opinst.scm \
+ cgen-asm.in cgen-dis.in cgen-ibld.in
+
+if CGEN_MAINT
+M32R_DEPS = stamp-m32r
+FR30_DEPS = stamp-fr30
+else
+M32R_DEPS =
+FR30_DEPS =
+endif
+
+run-cgen:
+ $(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGEN) \
+ $(CGENDIR) "$(CGENFLAGS)" $(arch) $(prefix) \
+ "$(options)" $(extrafiles)
+ touch stamp-${prefix}
+.PHONY: run-cgen
+
+# For now, require developers to configure with --enable-cgen-maint.
+$(srcdir)/m32r-desc.h $(srcdir)/m32r-desc.c $(srcdir)/m32r-opc.h $(srcdir)/m32r-opc.c $(srcdir)/m32r-ibld.c $(srcdir)/m32r-opinst.c $(srcdir)/m32r-asm.c $(srcdir)/m32r-dis.c: $(M32R_DEPS)
+ @true
+stamp-m32r: $(CGENDEPS) $(CGENDIR)/m32r.cpu $(CGENDIR)/m32r.opc
+ $(MAKE) run-cgen arch=m32r prefix=m32r options=opinst extrafiles=opinst
+
+$(srcdir)/fr30-desc.h $(srcdir)/fr30-desc.c $(srcdir)/fr30-opc.h $(srcdir)/fr30-opc.c $(srcdir)/fr30-ibld.c $(srcdir)/fr30-asm.c $(srcdir)/fr30-dis.c: $(FR30_DEPS)
+ @true
+stamp-fr30: $(CGENDEPS) $(CGENDIR)/fr30.cpu $(CGENDIR)/fr30.opc
+ $(MAKE) run-cgen arch=fr30 prefix=fr30 options= extrafiles=
# The start marker is written this way to pass through automake unscathed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: opcodes patches
@ 2000-07-28 15:09 Nick Clifton
0 siblings, 0 replies; 5+ messages in thread
From: Nick Clifton @ 2000-07-28 15:09 UTC (permalink / raw)
To: bje; +Cc: binutils
Hi Ben,
: Approved.
:
: Should I check these in myself?
Yes please.
Cheers
Nick
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: opcodes patches
@ 2000-07-28 13:13 Nick Clifton
0 siblings, 0 replies; 5+ messages in thread
From: Nick Clifton @ 2000-07-28 13:13 UTC (permalink / raw)
To: bje; +Cc: binutils
Hi Ben,
: 2000-07-28 Ben Elliston <bje@redhat.com>
:
: * Makefile.am (CGEN, CGENDEPS, CGENDIR, CGENFLAGS): New.
: (run-cgen, stamp-m32r, stamp-fr30): New targets.
: * Makefile.in: Regenerate.
: * configure.in: Add --enable-cgen-maint option.
: * configure: Regenerate.
Approved.
Cheers
Nick
^ permalink raw reply [flat|nested] 5+ messages in thread
* opcodes patches
2000-03-30 14:46 Ben Elliston
@ 2000-03-30 15:07 ` Doug Evans
0 siblings, 0 replies; 5+ messages in thread
From: Doug Evans @ 2000-03-30 15:07 UTC (permalink / raw)
To: Ben Elliston; +Cc: binutils
Ben Elliston writes:
> Is this the right place to submit patches to the opcodes directory?
Yep.
^ permalink raw reply [flat|nested] 5+ messages in thread
* opcodes patches
@ 2000-03-30 14:46 Ben Elliston
2000-03-30 15:07 ` Doug Evans
0 siblings, 1 reply; 5+ messages in thread
From: Ben Elliston @ 2000-03-30 14:46 UTC (permalink / raw)
To: binutils
Is this the right place to submit patches to the opcodes directory?
Thanks, B.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-07-28 15:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-28 12:52 opcodes patches Nick Clifton
-- strict thread matches above, loose matches on Subject: below --
2000-07-28 15:09 Nick Clifton
2000-07-28 13:13 Nick Clifton
2000-03-30 14:46 Ben Elliston
2000-03-30 15:07 ` Doug Evans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).