]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/39942 (Nonoptimal code - leaveq; xchg %ax,%ax; retq)
authorJakub Jelinek <jakub@redhat.com>
Thu, 21 May 2009 13:26:13 +0000 (15:26 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 21 May 2009 13:26:13 +0000 (15:26 +0200)
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

gcc/ChangeLog
gcc/config/i386/linux.h
gcc/config/i386/x86-64.h

index 94d573d82f3705269cba9ddd6b75b932ab6701d3..7ef73f4581af498930feca571d530c54522f1ee3 100644 (file)
@@ -1,3 +1,10 @@
+2009-05-21  Jakub Jelinek  <jakub@redhat.com>
+
+       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  <dodji@redhat.com>
 
        PR debug/40109
index ac8149885fc0701d7614bf06e6d27b1b61d0520a..b3b1e28f198a28e3d55d4f8bf11a277be8adffdf 100644 (file)
@@ -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");                           \
       }                                                                        \
     }                                                                  \
index 0f40967bad8b9795bf932c8a3481c3bdde6ddd6d..6b8c9e1a51b4975c93ec34f7bcb312f54bfe8324 100644 (file)
@@ -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");                           \
       }                                                                        \
     }                                                                  \