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]
Other format: [Raw text]

[PATCH] Update decls in genemit.c


Since r225883, genemit.c's gen_insn/gen_expand/gen_split have a parameter
of type md_rtx_info *, not rtx, but the function prototypes weren't updated,
which results into 'declared but never defined' warnings.  The following
trivial patch updates the declarations.

Bootstrapped/regtested on x86_64-linux, ok for trunk?

2015-07-20  Marek Polacek  <polacek@redhat.com>

	* genemit.c (gen_insn, gen_expand, gen_split): Update declaration.

diff --git gcc/genemit.c gcc/genemit.c
index 2d2fb62..2fa2062 100644
--- gcc/genemit.c
+++ gcc/genemit.c
@@ -51,9 +51,9 @@ struct clobber_ent
 
 static void print_code			(RTX_CODE);
 static void gen_exp			(rtx, enum rtx_code, char *);
-static void gen_insn			(rtx, int);
-static void gen_expand			(rtx);
-static void gen_split			(rtx);
+static void gen_insn			(md_rtx_info *);
+static void gen_expand			(md_rtx_info *);
+static void gen_split			(md_rtx_info *);
 static void output_add_clobbers		(void);
 static void output_added_clobbers_hard_reg_p (void);
 static void gen_rtx_scratch		(rtx, enum rtx_code);

	Marek


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