]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix for default alignment of .comm on aix ppc
authorTom Rix <trix@redhat.com>
Wed, 20 Jun 2001 14:45:54 +0000 (14:45 +0000)
committerTom Rix <trix@redhat.com>
Wed, 20 Jun 2001 14:45:54 +0000 (14:45 +0000)
gas/ChangeLog
gas/config/tc-ppc.c
gas/testsuite/ChangeLog

index 6d9ad98362767c0a910eb6ba0589e59ac4c2fc54..6f390b6303154b7c3186641888764903444fbd47 100644 (file)
@@ -1,3 +1,7 @@
+2000-06-20  Tom Rix <trix@redhat.com>
+
+       * config/tc-ppc.c (ppc_comm): Change default alignment to 4 bytes.
+
 2001-06-18  Philip Blundell  <philb@gnu.org>
 
        * config/tc-arm.c (do_msr): Remove restriction on usage of
index a893209cd51b61deaed7bbd341e3612f3989486b..ef708714a16b2f6f33724295565954ba070c8de4 100644 (file)
@@ -2340,7 +2340,8 @@ static boolean ppc_stab_symbol;
 
 /* The .comm and .lcomm pseudo-ops for XCOFF.  XCOFF puts common
    symbols in the .bss segment as though they were local common
-   symbols, and uses a different smclas.  */
+   symbols, and uses a different smclas.  The native Aix 4.3.3 assember
+   aligns .comm and .lcomm to 4 bytes.  */
 
 static void
 ppc_comm (lcomm)
@@ -2382,7 +2383,7 @@ ppc_comm (lcomm)
     {
       /* The third argument to .comm is the alignment.  */
       if (*input_line_pointer != ',')
-       align = 3;
+       align = 2;
       else
        {
          ++input_line_pointer;
@@ -2390,7 +2391,7 @@ ppc_comm (lcomm)
          if (align <= 0)
            {
              as_warn (_("ignoring bad alignment"));
-             align = 3;
+             align = 2;
            }
        }
     }
@@ -2399,11 +2400,7 @@ ppc_comm (lcomm)
       char *lcomm_name;
       char lcomm_endc;
 
-      if (size <= 1)
-       align = 0;
-      else if (size <= 2)
-       align = 1;
-      else if (size <= 4)
+      if (size <= 4)
        align = 2;
       else
        align = 3;
index a0c959e7f3c971c487f44563d24bc56e62e6a554..15a6de27313789aeb40cdf2e3cd21940c8782afe 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-20  Tom Rix  <trix@redhat.com>
+
+       * gas/ppc/aix.exp: New file, aix specific tests.
+       * gas/ppc/align.s: New file, .comm alignment test.
+
 2001-06-18  Philip Blundell  <philb@gnu.org>
 
        * gas/arm/arm.exp (msr_bad): Deleted.