From 782d5172bbffd2eda9c6a167ab161078b2c2e1da Mon Sep 17 00:00:00 2001 From: Reza Yazdani Date: Thu, 16 Sep 2010 17:19:25 +0000 Subject: [PATCH] re PR bootstrap/45680 (cc1 fails to link on Solaris 9/x86 with Sun as: min_insn_size missing) Fix PR45680. 2010-09-16 Reza Yazdani PR bootstrap/45680 * config/i386/i386.c (min_insn_size): Moved out of the ASM_OUTPUT_MAX_SKIP_PAD ifdef. From-SVN: r164345 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/i386.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 72f359191e58..97abdbc91245 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-09-16 Reza Yazdani + + 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 * 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 61c73c0de7bd..12d9266059cc 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. */