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]

PATCH: bugfix for OUT_FCN macro definition


When cross compiling to a vax-dec-vms system, I got an error from the
definition of OUT_FCN which tried to access a non-existent member of
insn_data.  (OUT_FCN() is only used in vax.md.)  I guessed that the
following might be the right fix.

Okay to install?

		--Kaveh



2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* recog.h (OUT_FCN): Fix bug in macro definition.

diff -rup orig/egcs-CVS20000118/gcc/recog.h egcs-CVS20000118/gcc/recog.h
--- orig/egcs-CVS20000118/gcc/recog.h	Mon Jan 17 12:01:39 2000
+++ egcs-CVS20000118/gcc/recog.h	Tue Jan 18 09:41:35 2000
@@ -187,7 +187,7 @@ extern struct operand_alternative recog_
 
 /* Access the output function for CODE.  */
 
-#define OUT_FCN(CODE) (*insn_data[(int) (CODE)].outfun)
+#define OUT_FCN(CODE) (*(insn_output_fn) insn_data[(int) (CODE)].output)
 
 /* A table defined in insn-output.c that give information about
    each insn-code value.  */

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