Commit c0ac5f31 by Jim Wilson

Add #ifdef INSN_SCHEDULING around variables only used by schedule_insns.

Add #ifdef INSN_SCHEDULING around variables only used
by schedule_insns.
(INSN_QUEUE_SIZE): Delete default definition.

From-SVN: r1962
parent d562e42e
...@@ -124,6 +124,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -124,6 +124,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "insn-config.h" #include "insn-config.h"
#include "insn-attr.h" #include "insn-attr.h"
#ifdef INSN_SCHEDULING
/* Arrays set up by scheduling for the same respective purposes as /* Arrays set up by scheduling for the same respective purposes as
similar-named arrays set up by flow analysis. We work with these similar-named arrays set up by flow analysis. We work with these
arrays during the scheduling pass so we can compare values against arrays during the scheduling pass so we can compare values against
...@@ -267,9 +268,6 @@ static rtx dead_notes; ...@@ -267,9 +268,6 @@ static rtx dead_notes;
time has passed. INSN_QUEUE_SIZE is a power of two larger than time has passed. INSN_QUEUE_SIZE is a power of two larger than
MAX_BLOCKAGE and MAX_READY_COST computed by genattr.c. This is the MAX_BLOCKAGE and MAX_READY_COST computed by genattr.c. This is the
longest time an isnsn may be queued. */ longest time an isnsn may be queued. */
#ifndef INSN_QUEUE_SIZE
#define INSN_QUEUE_SIZE 10
#endif
static rtx insn_queue[INSN_QUEUE_SIZE]; static rtx insn_queue[INSN_QUEUE_SIZE];
static int q_ptr = 0; static int q_ptr = 0;
static int q_size = 0; static int q_size = 0;
...@@ -288,6 +286,7 @@ static void schedule_block (); ...@@ -288,6 +286,7 @@ static void schedule_block ();
/* Main entry point of this file. */ /* Main entry point of this file. */
void schedule_insns (); void schedule_insns ();
#endif /* INSN_SCHEDULING */
#define SIZE_FOR_MODE(X) (GET_MODE_SIZE (GET_MODE (X))) #define SIZE_FOR_MODE(X) (GET_MODE_SIZE (GET_MODE (X)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment