This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix HAVE_cc0 compilation of combine.c (PR bootstrap/52058)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 31 Jan 2012 17:10:21 +0100
- Subject: [committed] Fix HAVE_cc0 compilation of combine.c (PR bootstrap/52058)
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
SUBST_LINK is only used in code guarded with #ifdef HAVE_cc0, so this patch
guards that function and macro with the same to avoid warnings.
Committed to trunk as obvious.
2012-01-31 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/52058
* combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
--- gcc/combine.c.jj 2012-01-26 09:22:21.000000000 +0100
+++ gcc/combine.c 2012-01-31 17:06:31.505978890 +0100
@@ -790,6 +790,7 @@ do_SUBST_MODE (rtx *into, enum machine_m
#define SUBST_MODE(INTO, NEWVAL) do_SUBST_MODE(&(INTO), (NEWVAL))
+#ifndef HAVE_cc0
/* Similar to SUBST, but NEWVAL is a LOG_LINKS expression. */
static void
@@ -815,7 +816,7 @@ do_SUBST_LINK (struct insn_link **into,
}
#define SUBST_LINK(oldval, newval) do_SUBST_LINK (&oldval, newval)
-
+#endif
/* Subroutine of try_combine. Determine whether the replacement patterns
NEWPAT, NEWI2PAT and NEWOTHERPAT are cheaper according to insn_rtx_cost
Jakub