diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-21 12:31:09 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-21 12:31:09 +0000 |
commit | a3dadcdea63dfb7f7543a26ee101f6ddde1c3b5a (patch) | |
tree | 5e148db694ff919a6fc91a02d7494ca5316b594f /gcc/config/i386/linux.h | |
parent | a849aec42c06c8c42867417b3156b915d4fa3348 (diff) | |
download | gcc-a3dadcdea63dfb7f7543a26ee101f6ddde1c3b5a.tar.gz |
2007-06-21 H.J. Lu <hongjiu.lu@intel.com>
* 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
Diffstat (limited to 'gcc/config/i386/linux.h')
-rw-r--r-- | gcc/config/i386/linux.h | 8 |
1 files changed, 7 insertions, 1 deletions
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 |