This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: bootstrap broken on mainline for targets not using DFA
- From: Bernardo Innocenti <bernie at develer dot com>
- To: Vladimir Makarov <vmakarov at redhat dot com>
- Cc: Richard Henderson <rth at redhat dot com>, Mostafa Hagog <MUSTAFA at il dot ibm dot com>, gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Tue, 08 Jun 2004 23:45:33 +0200
- Subject: Re: bootstrap broken on mainline for targets not using DFA
- Organization: Develer S.r.l.
- References: <OF95B8C779.79B87E06-ONC2256E9E.004E0924-C2256E9E.004F0558@il.ibm.com> <40C61DE5.7000307@develer.com> <20040608202236.GA2757@redhat.com> <40C621E3.90504@redhat.com>
Vladimir Makarov wrote:
Richard Henderson wrote:
On Tue, Jun 08, 2004 at 10:13:25PM +0200, Bernardo Innocenti wrote:
+#ifdef INSN_SCHEDULING
#include "config.h"
That's too early for INSN_SCHEDULING to ever be defined.
Ops... Richard, thanks for the email. I've missed this. Bernado,
please ignore my previous email. Ifdef should be at least after
sched-int.h. Better to put if after all includes. Otherwise, all ports
using a pipeline decription will be broken.
Silly me, I'm very ashamed :-)
This is what I finally committed:
2004-06-08 Bernardo Innocenti <bernie@develer.com>
* modulo-sched.c: Compile only when INSN_SCHEDULING is
defined.
diff -u -p -r1.2 modulo-sched.c
--- modulo-sched.c 30 May 2004 07:12:55 -0000 1.2
+++ modulo-sched.c 8 Jun 2004 21:19:06 -0000
@@ -49,6 +49,7 @@ Software Foundation, 59 Temple Place - S
#include "df.h"
#include "ddg.h"
+#ifdef INSN_SCHEDULING
/* This file contains the implementation of the Swing Modulo Scheduler,
described in the following references:
@@ -2123,3 +2124,5 @@ rotate_partial_schedule (partial_schedul
ps->max_cycle -= start_cycle;
ps->min_cycle -= start_cycle;
}
+
+#endif /* INSN_SCHEDULING*/
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/