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]

insn-output warning fix



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


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