From c688a9e852437fd01fa4e86a9d8135ca5fb46983 Mon Sep 17 00:00:00 2001
From: spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Thu, 16 Sep 2010 17:19:25 +0000
Subject: [PATCH] Fix PR45680.
2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
PR bootstrap/45680
* config/i386/i386.c (min_insn_size): Moved out of the
ASM_OUTPUT_MAX_SKIP_PAD ifdef.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164345 138bc75d-0d04-0410-961f-82ee72b054a4
---
gcc/ChangeLog | 6 ++++++
gcc/config/i386/i386.c | 3 ++-
2 files changed, 8 insertions(+), 1 deletions(-)
@@ -1,3 +1,9 @@
+2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
+
+ PR bootstrap/45680
+ * config/i386/i386.c (min_insn_size): Moved out of the
+ ASM_OUTPUT_MAX_SKIP_PAD ifdef.
+
2010-09-16 Jan Hubicka <jh@suse.cz>
* lto-cgraph.c (lto_output_node): Fix handling of clones.
@@ -27564,7 +27564,6 @@ x86_function_profiler (FILE *file, int labelno ATTRIBUTE_UNUSED)
}
}
-#ifdef ASM_OUTPUT_MAX_SKIP_PAD
/* We don't have exact information about the insn sizes, but we may assume
quite safely that we are informed about all 1 byte insns and memory
address sizes. This is enough to eliminate unnecessary padding in
@@ -27626,6 +27625,8 @@ min_insn_size (rtx insn)
return 2;
}
+#ifdef ASM_OUTPUT_MAX_SKIP_PAD
+
/* AMD K8 core mispredicts jumps when there are more than 3 jumps in 16 byte
window. */
--
1.7.0.4