diff options
author | Jeffrey A Law <law@cygnus.com> | 1997-08-19 21:22:04 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-08-19 15:22:04 -0600 |
commit | 62d65906d6dfa51febd5ff9ec86e50ddc21d2514 (patch) | |
tree | f55ec9552b76694bfeb977a15b530722e3a04148 /gcc | |
parent | 2da05a5bb89789c27a0babe8693a2561937217f6 (diff) | |
download | gcc-62d65906d6dfa51febd5ff9ec86e50ddc21d2514.zip gcc-62d65906d6dfa51febd5ff9ec86e50ddc21d2514.tar.gz gcc-62d65906d6dfa51febd5ff9ec86e50ddc21d2514.tar.bz2 |
haifa-sched.c (ISSUE_RATE): Renamed from MACHINE_issue_rate.
* haifa-sched.c (ISSUE_RATE): Renamed from MACHINE_issue_rate.
(get_issue_rate): Delete.
* pa.h (ISSUE_RATE): Define.
From-SVN: r14851
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/pa/pa.h | 8 | ||||
-rw-r--r-- | gcc/haifa-sched.c | 6 |
3 files changed, 13 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cb3b086..743ba8d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ Tue Aug 19 09:34:57 1997 Jeffrey A Law (law@cygnus.com) + * haifa-sched.c (ISSUE_RATE): Renamed from MACHINE_issue_rate. + (get_issue_rate): Delete. + * pa.h (ISSUE_RATE): Define. + * configure.in: Turn on haifa by default for the PA. * configure: Rebuilt. * pa.c (override_options): Accept -mschedule=7200 option. diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 1f5e900..ec73235 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -42,12 +42,16 @@ enum processor_type PROCESSOR_7200 }; -#define pa_cpu_attr ((enum attr_cpu)pa_cpu) - /* For -mschedule= option. */ extern char *pa_cpu_string; extern enum processor_type pa_cpu; +#define pa_cpu_attr ((enum attr_cpu)pa_cpu) + +/* The 700 can only issue a single insn at a time. + The 7XXX processors can issue two insns at a time. */ +#define ISSUE_RATE (pa_cpu == PROCESSOR_700 ? 1 : 2) + /* Print subsidiary information on the compiler version in use. */ #define TARGET_VERSION fputs (" (hppa)", stderr); diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 222a6d6..bc7e826 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -190,8 +190,8 @@ static int target_units = 0; static int issue_rate; -#ifndef MACHINE_issue_rate -#define get_issue_rate() (1) +#ifndef ISSUE_RATE +#define ISSUE_RATE 1 #endif /* sched_debug_count is used for debugging the scheduler by limiting @@ -8460,7 +8460,7 @@ schedule_insns (dump_file) } /* initialize issue_rate */ - issue_rate = get_issue_rate (); + issue_rate = ISSUE_RATE; /* do the splitting first for all blocks */ for (b = 0; b < n_basic_blocks; b++) |