This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
insn-output warning fix
- To: gcc-patches at gcc dot gnu dot org (gcc-patches at gcc dot gnu dot org)
- Subject: insn-output warning fix
- From: "Philippe De Muyter" <phdm at macqel dot be>
- Date: Sun, 31 Oct 1999 16:54:32 +0100 (CET)
Symptom :
"insn-output.c", line 10363: warning: illegal pointer combination, op =
"insn-output.c", line 10373: warning: illegal pointer combination, op =
"insn-output.c", line 10393: warning: illegal pointer combination, op =
...
"insn-output.c", line 15183: warning: illegal pointer combination, op =
"insn-output.c", line 15203: warning: illegal pointer combination, op =
"insn-output.c", line 15213: warning: illegal pointer combination, op =
Fix :
Sun Oct 31 15:57:09 1999 Philippe De Muyter <phdm@macqel.be>
* genoutput.c (output_insn_data): Cast `INSN_OUTPUT_FORMAT_MULTI' and
`INSN_OUTPUT_FORMAT_FUNCTION' to `PTR'-type.
--- ./gcc/genoutput.c Sun Oct 31 13:09:48 1999
+++ ./gcc/genoutput.c Tue Oct 26 00:12:57 1999
@@ -354,7 +354,7 @@ output_insn_data ()
break;
case INSN_OUTPUT_FORMAT_MULTI:
case INSN_OUTPUT_FORMAT_FUNCTION:
- printf (" output_%d,\n", d->code_number);
+ printf (" (PTR) output_%d,\n", d->code_number);
break;
default:
abort ();