summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-08-12 08:47:02 +0000
committerNick Clifton <nickc@redhat.com>2001-08-12 08:47:02 +0000
commite16ee2a378f2650c81e1df8e293c6dd10aa45fc7 (patch)
tree05deb2e1c0df2538b838802c004405c67b0d70f0
parent1e8065afd5a58174fbcecdfe572fc8dbcd713bb2 (diff)
downloadbinutils-redhat-e16ee2a378f2650c81e1df8e293c6dd10aa45fc7.tar.gz
Fix behaviour of unaligned data directives
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/config/tc-sparc.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index f6295c2f99..86629292db 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+2001-08-12 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
+
+ * config/tc-sparc.c (cons_fix_new_sparc): Move
+ `sparc_no_align_cons = 0;' to...
+ (s_uacons): ...here so that sparc_no_align_cons will get
+ cleared properly.
+
2001-08-11 Kazu Hirata <kazu@hxi.com>
* config/tc-mips.c: Fix a comment typo.
diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c
index 2482563af6..a0a1d31b4e 100644
--- a/gas/config/tc-sparc.c
+++ b/gas/config/tc-sparc.c
@@ -3920,6 +3920,7 @@ s_uacons (bytes)
/* Tell sparc_cons_align not to align this value. */
sparc_no_align_cons = 1;
cons (bytes);
+ sparc_no_align_cons = 0;
}
/* This handles the native word allocation pseudo-op .nword.
@@ -4213,8 +4214,7 @@ cons_fix_new_sparc (frag, where, nbytes, exp)
case 8: r = BFD_RELOC_SPARC_UA64; break;
default: abort ();
}
- sparc_no_align_cons = 0;
- }
+ }
fix_new_exp (frag, where, (int) nbytes, exp, 0, r);
}