aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-08-02 13:53:29 +0000
committerAlan Modra <amodra@gmail.com>2010-08-02 13:53:29 +0000
commit69da848e6ebe8d0b4196f2b630b112fa43dc9348 (patch)
tree74835fc024cf642974b08c62207cee13453bfb7d
parentc47320c3a065db35280f4380e4e3232b6286b56c (diff)
downloadgdb-69da848e6ebe8d0b4196f2b630b112fa43dc9348.zip
gdb-69da848e6ebe8d0b4196f2b630b112fa43dc9348.tar.gz
gdb-69da848e6ebe8d0b4196f2b630b112fa43dc9348.tar.bz2
* config/tc-d30v.c (d30v_cons_align): Don't align constants
in debug sections.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-d30v.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index ccab9d3..da5c96d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/config/tc-d30v.c b/gas/config/tc-d30v.c
index 31990a8..64c4666 100644
--- a/gas/config/tc-d30v.c
+++ b/gas/config/tc-d30v.c
@@ -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;