OSDN Git Service

* config/tc-d30v.c (d30v_cons_align): Don't align constants
authoramodra <amodra>
Mon, 2 Aug 2010 13:53:28 +0000 (13:53 +0000)
committeramodra <amodra>
Mon, 2 Aug 2010 13:53:28 +0000 (13:53 +0000)
in debug sections.

gas/ChangeLog
gas/config/tc-d30v.c

index ccab9d3..da5c96d 100644 (file)
@@ -1,5 +1,10 @@
 2010-08-02  Alan Modra  <amodra@gmail.com>
 
+       * config/tc-d30v.c (d30v_cons_align): Don't align constants
+       in debug sections.
+
+2010-08-02  Alan Modra  <amodra@gmail.com>
+
        PR gas/11867
        * expr.c (operand <'-' and '~'>): Widen bignums.
        (operand <'!'>): Correct bignum result and convert to O_constant.
index 31990a8..64c4666 100644 (file)
@@ -1884,6 +1884,10 @@ d30v_cons_align (int size)
 {
   int log_size;
 
+  /* Don't specially align anything in debug sections.  */
+  if ((now_seg->flags & SEC_ALLOC) == 0)
+    return;
+
   log_size = 0;
   while ((size >>= 1) != 0)
     ++log_size;