aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2000-09-15 21:02:22 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2000-09-15 21:02:22 +0200
commit54f5c4b098c09bf10342d21a89ecd945a6510bd5 (patch)
tree7f11bc0c87dc75a572495c3505ed801a9e7f6430
parenta3b815cb1bb29252693a3ac4cee54b8d82f7df10 (diff)
downloadgcc-54f5c4b098c09bf10342d21a89ecd945a6510bd5.zip
gcc-54f5c4b098c09bf10342d21a89ecd945a6510bd5.tar.gz
gcc-54f5c4b098c09bf10342d21a89ecd945a6510bd5.tar.bz2
alpha.c (override_options): ev6 cache latencies from Richard Henderson.
* config/alpha/alpha.c (override_options): ev6 cache latencies from Richard Henderson. Don't allow -mmemory-latency=L0. From-SVN: r36444
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/config/alpha/alpha.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c823362..4be01e7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2000-09-15 Jakub Jelinek <jakub@redhat.com>
+ * config/alpha/alpha.c (override_options): ev6 cache latencies
+ from Richard Henderson. Don't allow -mmemory-latency=L0.
+
* config/alpha/alpha.h (TARGET_CPU_EV5, TARGET_CPU_EV6): Define.
(TARGET_OPTIONS): Add tune=.
(alpha_tune_string): Declare.
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c
index 04d8cc9..382f935 100644
--- a/gcc/config/alpha/alpha.c
+++ b/gcc/config/alpha/alpha.c
@@ -309,11 +309,11 @@ override_options ()
{
{ 3, 30, -1 }, /* ev4 -- Bcache is a guess */
{ 2, 12, 38 }, /* ev5 -- Bcache from PC164 LMbench numbers */
- { 3, 13, -1 }, /* ev6 -- Ho hum, doesn't exist yet */
+ { 3, 12, 30 }, /* ev6 -- Bcache from DS20 LMbench. */
};
lat = alpha_mlat_string[1] - '0';
- if (lat < 0 || lat > 3 || cache_latency[alpha_cpu][lat-1] == -1)
+ if (lat <= 0 || lat > 3 || cache_latency[alpha_cpu][lat-1] == -1)
{
warning ("L%d cache latency unknown for %s",
lat, alpha_cpu_name[alpha_cpu]);