From: Jakub Jelinek Date: Thu, 21 May 2009 13:26:13 +0000 (+0200) Subject: re PR target/39942 (Nonoptimal code - leaveq; xchg %ax,%ax; retq) X-Git-Tag: releases/gcc-4.3.4~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c48e339ca62a5af71f41a9e5ebe65e021138e112;p=thirdparty%2Fgcc.git re PR target/39942 (Nonoptimal code - leaveq; xchg %ax,%ax; retq) PR target/39942 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second .p2align 3 if MAX_SKIP is smaller than 7. * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise. From-SVN: r147766 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 94d573d82f37..7ef73f4581af 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2009-05-21 Jakub Jelinek + + PR target/39942 + * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second + .p2align 3 if MAX_SKIP is smaller than 7. + * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise. + 2009-05-18 Dodji Seketeli PR debug/40109 diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h index ac8149885fc0..b3b1e28f198a 100644 --- a/gcc/config/i386/linux.h +++ b/gcc/config/i386/linux.h @@ -148,7 +148,9 @@ along with GCC; see the file COPYING3. If not see 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)) \ + if ((LOG) > 3 \ + && (1 << (LOG)) > ((MAX_SKIP) + 1) \ + && (MAX_SKIP) >= 7) \ fprintf ((FILE), "\t.p2align 3\n"); \ } \ } \ diff --git a/gcc/config/i386/x86-64.h b/gcc/config/i386/x86-64.h index 0f40967bad8b..6b8c9e1a51b4 100644 --- a/gcc/config/i386/x86-64.h +++ b/gcc/config/i386/x86-64.h @@ -69,7 +69,9 @@ along with GCC; see the file COPYING3. If not see 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)) \ + if ((LOG) > 3 \ + && (1 << (LOG)) > ((MAX_SKIP) + 1) \ + && (MAX_SKIP) >= 7) \ fprintf ((FILE), "\t.p2align 3\n"); \ } \ } \