This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Sim] Patch to sim/common/cgen.sh


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]