diff options
author | Alan Modra <amodra@gmail.com> | 2023-01-13 09:39:19 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-01-16 23:22:48 +1030 |
commit | 5999477d92aecd9df5fb0b2f04c33b987a7db40c (patch) | |
tree | 4701cb922714fc97b22e52f4b534bbbe1f3de9d2 /gas/config/tc-mips.c | |
parent | f75c8fc014e2075ce36751565291afae898e2679 (diff) | |
download | gdb-5999477d92aecd9df5fb0b2f04c33b987a7db40c.zip gdb-5999477d92aecd9df5fb0b2f04c33b987a7db40c.tar.gz gdb-5999477d92aecd9df5fb0b2f04c33b987a7db40c.tar.bz2 |
PR29991, MicroMIPS flag erased after align directives
PR 29991
* config/tc-mips.c (s_align): Call file_mips_check_options and
mips_mark_labels.
* testsuite/gas/mips/align-after-label.s,
* testsuite/gas/mips/mips-align-after-label.d,
* testsuite/gas/mips/micromips-align-after-label.d: New test.
* testsuite/gas/mips/mips.exp: Run it.
Diffstat (limited to 'gas/config/tc-mips.c')
-rw-r--r-- | gas/config/tc-mips.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 077993c..e59021e 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -16262,6 +16262,8 @@ s_align (int x ATTRIBUTE_UNUSED) int temp, fill_value, *fill_ptr; long max_alignment = 28; + file_mips_check_options (); + /* o Note that the assembler pulls down any immediately preceding label to the aligned address. o It's not documented but auto alignment is reinstated by @@ -16286,6 +16288,9 @@ s_align (int x ATTRIBUTE_UNUSED) } else fill_ptr = 0; + + mips_mark_labels (); + if (temp) { segment_info_type *si = seg_info (now_seg); |