Patchwork Bug bootstrap/45680

login
register
mail settings
Submitter Sebastian Pop
Date Sept. 16, 2010, 5:20 p.m.
Message ID <AANLkTikv4SvbBCESnEjasz6Liewp_W_c05mHkLUYT3X-@mail.gmail.com>
Download mbox | patch
Permalink /patch/64985/
State New
Headers show

Comments

Sebastian Pop - Sept. 16, 2010, 5:20 p.m.
On Thu, Sep 16, 2010 at 02:54, Rainer Orth <ro@cebitec.uni-bielefeld.de> wrote:
> reza yazdani <yazdani_reza@yahoo.com> writes:
>
>> ChangeLog
>> ---------
>>
>> 2010-09-15  Reza Yazdani  <reza.yazdani@amd.com>
>>
>>     * i386.c (min_insn_size): moved.
>
> Would you please mention
>
>        PR bootstrap/45680
>
> in the ChangeLog entry?
>

Committed r164345.

Sebastian

Patch

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(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 72f3591..97abdbc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 61c73c0..12d9266 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -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