public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* [Sim] Patch to sim/common/cgen.sh
@ 2001-01-04 20:32 Ben Elliston
  0 siblings, 0 replies; only message in thread
From: Ben Elliston @ 2001-01-04 20:32 UTC (permalink / raw)
  To: gdb-patches; +Cc: cgen

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
  		;;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-01-04 20:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-04 20:32 [Sim] Patch to sim/common/cgen.sh Ben Elliston

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).