From a3dadcdea63dfb7f7543a26ee101f6ddde1c3b5a Mon Sep 17 00:00:00 2001 From: hjl Date: Thu, 21 Jun 2007 12:31:09 +0000 Subject: 2007-06-21 H.J. Lu * config/i386/i386.c (processor_target_table): Increase maximum skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and default 64bit. * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8 byte alignment if > 8 byte alignment is preferred. * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125920 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/i386/linux.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gcc/config/i386/linux.h') diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h index f0f7df600fa..04237ca2e30 100644 --- a/gcc/config/i386/linux.h +++ b/gcc/config/i386/linux.h @@ -145,7 +145,13 @@ Boston, MA 02110-1301, USA. */ do { \ if ((LOG) != 0) { \ if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG)); \ - else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \ + else { \ + fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \ + /* Make sure that we have at least 8 byte alignment if > 8 byte \ + alignment is preferred. */ \ + if ((LOG) > 3 && (1 << (LOG)) > ((MAX_SKIP) + 1)) \ + fprintf ((FILE), "\t.p2align 3\n"); \ + } \ } \ } while (0) #endif -- cgit v1.2.1