This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: bugfix for OUT_FCN macro definition
- To: egcs-patches at egcs dot cygnus dot com
- Subject: PATCH: bugfix for OUT_FCN macro definition
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Tue, 18 Jan 2000 17:48:30 -0500 (EST)
- Cc: egcs-bugs at egcs dot cygnus dot com, rth at cygnus dot com
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. */