public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Fix for expr.c prototype bug
@ 1997-08-29 10:00 Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 1997-08-29 10:00 UTC (permalink / raw)
  To: egcs

This patch fixes the expr.c prototype bug for real, so that the prototype
for insn_gen_function can be reenabled.


1997-08-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* expr.h (insn_gen_function): Reenable prototype.

	* expr.c (move_by_pieces_1, clear_by_pieces_1): Fix prototype of
	first parameter.

--- egcs-970825/gcc/expr.c.~1~	Mon Aug  4 17:41:53 1997
+++ egcs-970825/gcc/expr.c	Sat Aug 23 08:08:31 1997
@@ -159,10 +159,10 @@
 static void init_queue		PROTO((void));
 static void move_by_pieces	PROTO((rtx, rtx, int, int));
 static int move_by_pieces_ninsns PROTO((unsigned int, int));
-static void move_by_pieces_1	PROTO((rtx (*) (), enum machine_mode,
+static void move_by_pieces_1	PROTO((rtx (*) (rtx, ...), enum machine_mode,
 				       struct move_by_pieces *));
 static void clear_by_pieces	PROTO((rtx, int, int));
-static void clear_by_pieces_1	PROTO((rtx (*) (), enum machine_mode,
+static void clear_by_pieces_1	PROTO((rtx (*) (rtx, ...), enum machine_mode,
 				       struct clear_by_pieces *));
 static int is_zeros_p		PROTO((tree));
 static int mostly_zeros_p	PROTO((tree));
@@ -1504,7 +1504,7 @@
 
 static void
 move_by_pieces_1 (genfun, mode, data)
-     rtx (*genfun) ();
+     rtx (*genfun) PROTO ((rtx, ...));
      enum machine_mode mode;
      struct move_by_pieces *data;
 {
@@ -2020,7 +2020,7 @@
 
 static void
 clear_by_pieces_1 (genfun, mode, data)
-     rtx (*genfun) ();
+     rtx (*genfun) PROTO ((rtx, ...));
      enum machine_mode mode;
      struct clear_by_pieces *data;
 {
--- egcs-970825/gcc/expr.h.~1~	Wed Aug 27 19:37:00 1997
+++ egcs-970825/gcc/expr.h	Wed Aug 27 19:37:21 1997
@@ -315,7 +315,7 @@
 #define GEN_FCN(CODE) (*insn_gen_function[(int) (CODE)])
 #endif
 
-extern rtx (*const insn_gen_function[]) ();
+extern rtx (*const insn_gen_function[]) PROTO ((rtx, ...));
 
 extern optab add_optab;
 extern optab sub_optab;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fix for expr.c prototype bug
  1997-08-29 13:47 g77 problem in egcs-ss-970828 Toon Moene
@ 1997-08-29 15:01 ` Jeffrey A Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1997-08-29 15:01 UTC (permalink / raw)
  To: egcs

  In message you write:
  > This patch fixes the expr.c prototype bug for real, so that the prototype
  > for insn_gen_function can be reenabled.
  > 
  > 
  > 1997-08-27  Andreas Schwab  
  > 
  > 	* expr.h (insn_gen_function): Reenable prototype.
  > 
  > 	* expr.c (move_by_pieces_1, clear_by_pieces_1): Fix prototype of
  > 	first parameter.
Thanks, I've installed this patch.

jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-08-29 15:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-29 10:00 Fix for expr.c prototype bug Andreas Schwab
1997-08-29 13:47 g77 problem in egcs-ss-970828 Toon Moene
1997-08-29 15:01 ` Fix for expr.c prototype bug Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).