This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][2/3] Unbreak m68k bootstrap
- From: Maxim Kuvyrkov <maxim at codesourcery dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: Roman Zippel <zippel at linux-m68k dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 14 Oct 2007 14:06:09 +0400
- Subject: [PATCH][2/3] Unbreak m68k bootstrap
- References: <4711E7FF.7010002@codesourcery.com>
Hello Andreas,
This patch fixes one of bootstrap failure issues on m68k.
The patch in neighboring thread (1/3) enables use of autogenerated enums
for instruction attributes in <arch>-protos.h header. This patch
applies that to fix bootstrap-time warning.
The patch was bootstrapped on m68k-unknown-linux-gnu with
enable-languages=c.
OK for trunk?
:ADDPATCH m68k:
Thanks,
Maxim
2007-10-12 Maxim Kuvyrkov <maxim@codesourcery.com>
* config/m68k/m68k.h (m68k_sched_cpu, m68k_sched_attr_opx_type,
m68k_sched_attr_opy_type, m68k_sched_attr_size, m68k_sched_attr_op_mem,
m68k_sched_branch_type): Move declarations to ...
* config/m68/m68k-protos.h: ... here.
Index: config/m68k/m68k.h
===================================================================
--- config/m68k/m68k.h (revision 184625)
+++ config/m68k/m68k.h (working copy)
@@ -1148,10 +1148,3 @@ extern M68K_CONST_METHOD m68k_const_meth
extern void m68k_emit_move_double (rtx [2]);
-extern enum attr_cpu m68k_sched_cpu;
-
-extern enum attr_opx_type m68k_sched_attr_opx_type (rtx, int);
-extern enum attr_opy_type m68k_sched_attr_opy_type (rtx, int);
-extern int m68k_sched_attr_size (rtx);
-extern enum attr_op_mem m68k_sched_attr_op_mem (rtx);
-extern enum attr_type m68k_sched_branch_type (rtx);
Index: config/m68k/m68k-protos.h
===================================================================
--- config/m68k/m68k-protos.h (revision 184625)
+++ config/m68k/m68k-protos.h (working copy)
@@ -65,6 +65,16 @@ extern int emit_move_sequence (rtx *, en
extern bool m68k_movem_pattern_p (rtx, rtx, HOST_WIDE_INT, bool);
extern const char *m68k_output_movem (rtx *, rtx, HOST_WIDE_INT, bool);
+#ifdef HAVE_ATTR_cpu
+extern enum attr_cpu m68k_sched_cpu;
+
+extern enum attr_opx_type m68k_sched_attr_opx_type (rtx, int);
+extern enum attr_opy_type m68k_sched_attr_opy_type (rtx, int);
+extern int m68k_sched_attr_size (rtx);
+extern enum attr_op_mem m68k_sched_attr_op_mem (rtx);
+extern enum attr_type m68k_sched_branch_type (rtx);
+#endif /* HAVE_ATTR_cpu */
+
#endif /* RTX_CODE */
extern bool m68k_regno_mode_ok (int, enum machine_mode);