This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[Sim] Patch to sim/common/cgen.sh
- To: gdb-patches at sources dot redhat dot com
- Subject: [Sim] Patch to sim/common/cgen.sh
- From: Ben Elliston <bje at redhat dot com>
- Date: Sat, 6 Jan 2001 02:32:12 +1100
- Cc: cgen at sources dot redhat dot com
I have committed the following simple patch to cgen.sh.
2001-01-06 Ben Elliston <bje@redhat.com>
* cgen.sh: Allow extrafiles to include the semantics files when
generating an ISA-specific decoder.
*** cgen.sh 2000/12/13 23:01:22 1.12
--- cgen.sh 2001/01/05 04:30:57
***************
*** 97,102 ****
--- 97,108 ----
fileopts="$fileopts \
-T tmp-dec.h1 \
-D tmp-dec.c1"
+ case "$extrafiles" in
+ ignored) # Do nothing.
+ ;;
+ *) fileopts="$fileopts $extrafiles"
+ ;;
+ esac
;;
esac
***************
*** 150,155 ****
--- 156,170 ----
${rootdir}/move-if-change tmp-dec.h ${srcdir}/decode${suffix}.h
sed $sedscript < tmp-dec.c1 > tmp-dec.c
${rootdir}/move-if-change tmp-dec.c ${srcdir}/decode${suffix}.c
+
+ if test -f tmp-sem.c1 ; then \
+ sed $sedscript < tmp-sem.c1 > tmp-sem.c ; \
+ ${rootdir}/move-if-change tmp-sem.c ${srcdir}/sem${suffix}.c ; \
+ fi
+ if test -f tmp-semsw.c1 ; then \
+ sed $sedscript < tmp-semsw.c1 > tmp-semsw.c ; \
+ ${rootdir}/move-if-change tmp-semsw.c ${srcdir}/sem${suffix}-switch.c ; \
+ fi
rm -f tmp-dec.h1 tmp-dec.c1
;;