This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: SH: use register names instead of numbers


> If we're going to do this, I think we should do it in the tm.h
> generated by configure rather than in config/cpu/cpu.h.

Like this?

	* configure.in: #include insn-codes.h in tm.h.

Index: configure.in
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/configure.in,v
retrieving revision 1.403
diff -p -r1.403 configure.in
*** configure.in	2000/11/21 19:36:05	1.403
--- configure.in	2000/11/22 22:34:59
*************** do
*** 4657,4662 ****
--- 4657,4668 ----
  	then
  		echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
  	fi
+ 	if test $link = tm.h
+ 	then
+ 		echo "#ifndef GENERATOR_FILE" >>$link
+ 		echo "#include \"insn-codes.h\"" >>$link
+ 		echo "#endif" >>$link
+ 	fi
  
  	for file in `eval echo '$'$var`; do
  		case $file in

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