RISC-V: Support ELF attribute for gas and readelf.
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2019-01-16 Kito Cheng <kito@andestech.com>
2 Nelson Chu <nelson@andestech.com>
3
4 * config/tc-riscv.c (DEFAULT_RISCV_ATTR): Define to 0 if not defined.
5 (riscv_set_options): Add `arch_attr` field.
6 (riscv_opts): Set default value for arch_attr.
7 (riscv_write_out_arch_attr): New.
8 (riscv_set_public_attributes): Likewise.
9 (riscv_md_end): Likewise.
10 (riscv_convert_symbolic_attribute): Likewise.
11 (s_riscv_attribute): Likewise.
12 (explicit_arch_attr): Likewise.
13 (riscv_pseudo_table): Add .attribute to the table.
14 (options): Add OPTION_ARCH_ATTR and OPTION_NO_ARCH_ATTR
15 enumeration constants.
16 (md_longopts): Add `march-attr' and `mno-arch-attr' options.
17 (md_parse_option): Handle the new options.
18 (md_show_usage): Document the `march-attr' option.
19 * config/tc-riscv.h (md_end): Define as riscv_md_end
20 (riscv_md_end): Declare.
21 (CONVERT_SYMBOLIC_ATTRIBUTE): Define as
22 riscv_convert_symbolic_attribute.
23 (riscv_convert_symbolic_attribute): Declare.
24 (start_assemble): Declare.
25 * testsuite/gas/elf/elf.exp: Adjust test case for section2.e.
26 * testsuite/gas/elf/section2.e-riscv: New.
27 * testsuite/gas/riscv/attribute-01.d: New test
28 * testsuite/gas/riscv/attribute-02.d: Likewise.
29 * testsuite/gas/riscv/attribute-03.d: Likewise.
30 * testsuite/gas/riscv/attribute-04.d: Likewise.
31 * testsuite/gas/riscv/attribute-04.s: Likewise.
32 * testsuite/gas/riscv/attribute-05.d: Likewise.
33 * testsuite/gas/riscv/attribute-05.s: Likewise.
34 * testsuite/gas/riscv/attribute-06.d: Likewise.
35 * testsuite/gas/riscv/attribute-06.s: Likewise.
36 * testsuite/gas/riscv/attribute-07.d: Likewise.
37 * testsuite/gas/riscv/attribute-07.s: Likewise.
38 * testsuite/gas/riscv/attribute-08.d: Likewise.
39 * testsuite/gas/riscv/attribute-08.s: Likewise.
40 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
41 * testsuite/gas/riscv/attribute-unknown.s: Likewise.
42 * testsuite/gas/riscv/empty.l: Likewise.
43 * doc/c-riscv.texi (.attribute): Add documentation.
44 * configure.ac (--enable-default-riscv-attribute): New options.
45 * configure: Re-generate.
46 * config.in: Re-generate.
47
48 2019-01-16 John Darrington <john@darrington.wattle.id.au>
49
50 * config/tc-s12z.c (lex_reg_name): Compare the length of the strings
51 before the contents.
52 * testsuite/gas/s12z/labels.d: New file.
53 * testsuite/gas/s12z/labels.s: New file.
54 * testsuite/gas/s12z/s12z.exp: Add them.
55 * config/tc-s12z.c (tfr): Change as_bad to as_warn.
56 Also fix message typo and semantics.
57 * config/tc-s12z.c (emit_opr): Emit BFD_RELOC_S12Z_OPR instead of
58 BFD_RELOC_24.
59 * testsuite/gas/s12z/opr-indirect-expr.d: Expect R_S12Z_OPR instead
60 of R_S12Z_EXT24.
61
62 2019-01-14 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
63
64 * config/tc-arm.c (arm_ext_v6k_v6t2): Define.
65 (insns) [ARM_VARIANT]: Modified.
66 (insns) [THUMB_VARIANT]: To implement few ARMv6K instructions
67 in ARMv6T2 as well.
68 * testsuite/gas/arm/archv6t2-1.d: New test.
69 * testsuite/gas/arm/archv6t2-1.s: Likewise.
70 * testsuite/gas/arm/archv6t2-2.d: Likewise.
71
72 2019-01-11 Alan Modra <amodra@gmail.com>
73
74 PR 23963
75 * testsuite/gas/m68hc11/lbranch-dwarf2.d: Adjust for PR23963 change.
76 * testsuite/gas/m68hc11/opers12-dwarf2.d: Likewise.
77
78 2019-01-10 Nick Clifton <nickc@redhat.com>
79
80 PR 23963
81 * testsuite/gas/mips/mips16-branch-absolute-1.d: Adjust for the
82 fact that control characters are now displayed as escape
83 sequences.
84 * testsuite/gas/mips/mips16-e.d: Likewise.
85 * testsuite/gas/mips/mips16-pcrel-0.d: Likewise.
86 * testsuite/gas/mips/mips16-pcrel-1.d: Likewise.
87 * testsuite/gas/mips/mips16-pcrel-delay-0.d: Likewise.
88 * testsuite/gas/mips/mips16-pcrel-delay-1.d: Likewise.
89 * testsuite/gas/mips/mips16-pcrel-n32-0.d: Likewise.
90 * testsuite/gas/mips/mips16-pcrel-n32-1.d: Likewise.
91 * testsuite/gas/mips/mips16-pcrel-n64-sym32-0.d: Likewise.
92 * testsuite/gas/mips/mips16-pcrel-n64-sym32-1.d: Likewise.
93 * testsuite/gas/mips/mips16e2@mips16-pcrel-0.d: Likewise.
94 * testsuite/gas/mips/mips16e2@mips16-pcrel-1.d: Likewise.
95 * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-0.d: Likewise.
96 * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-1.d: Likewise.
97 * testsuite/gas/mips/mips16e2@mips16-pcrel-n32-0.d: Likewise.
98 * testsuite/gas/mips/mips16e2@mips16-pcrel-n32-1.d: Likewise.
99 * testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-0.d:
100 Likewise.
101 * testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-1.d:
102 Likewise.
103 * testsuite/gas/mips/mipsel16-e.d: Likewise.
104 * testsuite/gas/mips/mipsr6@msa.d: Likewise.
105 * testsuite/gas/mips/mipsr6@relax-swap3.d: Likewise.
106 * testsuite/gas/mips/r6-64-n32.d: Likewise.
107 * testsuite/gas/mips/r6-64-n64.d: Likewise.
108 * testsuite/gas/mips/r6-n32.d: Likewise.
109 * testsuite/gas/mips/r6-n64.d: Likewise.
110 * testsuite/gas/mips/r6.d: Likewise.
111 * testsuite/gas/mips/tmips16-e.d: Likewise.
112 * testsuite/gas/mips/tmipsel16-e.d: Likewise.
113 * testsuite/gas/mn10300/relax.d: Likewise.
114
115 2019-01-09 John Darrington <john@darrington.wattle.id.au>
116
117 * testsuite/gas/s12z/jsr.s: New case.
118 * testsuite/gas/s12z/jsr.d: New case.
119
120 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
121
122 * configure: Regenerate.
123
124 2019-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
125
126 * config/tc-aarch64.c (aarch64_cpus): Add ares.
127 * doc/c-aarch64.texi (-mcpu): Document ares value.
128
129 2019-01-08 Alan Modra <amodra@gmail.com>
130
131 * testsuite/gas/rx/rx.exp: Create generated test source in
132 current directory.
133 * testsuite/gas/rx/Xtod.d, * testsuite/gas/rx/abs.d,
134 * testsuite/gas/rx/adc.d, * testsuite/gas/rx/add.d,
135 * testsuite/gas/rx/and.d, * testsuite/gas/rx/bclr.d,
136 * testsuite/gas/rx/bcnd.d, * testsuite/gas/rx/bfmov.d,
137 * testsuite/gas/rx/bmcnd.d, * testsuite/gas/rx/bnot.d,
138 * testsuite/gas/rx/bra.d, * testsuite/gas/rx/brk.d,
139 * testsuite/gas/rx/bset.d, * testsuite/gas/rx/bsr.d,
140 * testsuite/gas/rx/btst.d, * testsuite/gas/rx/clrpsw.d,
141 * testsuite/gas/rx/cmp.d, * testsuite/gas/rx/dabs.d,
142 * testsuite/gas/rx/dadd.d, * testsuite/gas/rx/dbt.d,
143 * testsuite/gas/rx/dcmp.d, * testsuite/gas/rx/ddiv.d,
144 * testsuite/gas/rx/div.d, * testsuite/gas/rx/divu.d,
145 * testsuite/gas/rx/dmov.d, * testsuite/gas/rx/dmul.d,
146 * testsuite/gas/rx/dneg.d, * testsuite/gas/rx/dpopm.d,
147 * testsuite/gas/rx/dpushm.d, * testsuite/gas/rx/dround.d,
148 * testsuite/gas/rx/dsqrt.d, * testsuite/gas/rx/dsub.d,
149 * testsuite/gas/rx/dtoX.d, * testsuite/gas/rx/emaca.d,
150 * testsuite/gas/rx/emsba.d, * testsuite/gas/rx/emul.d,
151 * testsuite/gas/rx/emula.d, * testsuite/gas/rx/emulu.d,
152 * testsuite/gas/rx/fadd.d, * testsuite/gas/rx/fcmp.d,
153 * testsuite/gas/rx/fdiv.d, * testsuite/gas/rx/fmul.d,
154 * testsuite/gas/rx/fsqrt.d, * testsuite/gas/rx/fsub.d,
155 * testsuite/gas/rx/ftoi.d, * testsuite/gas/rx/ftou.d,
156 * testsuite/gas/rx/gprel.d, * testsuite/gas/rx/int.d,
157 * testsuite/gas/rx/itof.d, * testsuite/gas/rx/jmp.d,
158 * testsuite/gas/rx/jsr.d, * testsuite/gas/rx/machi.d,
159 * testsuite/gas/rx/maclh.d, * testsuite/gas/rx/maclo.d,
160 * testsuite/gas/rx/max.d, * testsuite/gas/rx/min.d,
161 * testsuite/gas/rx/mov.d, * testsuite/gas/rx/movco.d,
162 * testsuite/gas/rx/movli.d, * testsuite/gas/rx/movu.d,
163 * testsuite/gas/rx/msbhi.d, * testsuite/gas/rx/msblh.d,
164 * testsuite/gas/rx/msblo.d, * testsuite/gas/rx/mul.d,
165 * testsuite/gas/rx/mulhi.d, * testsuite/gas/rx/mullh.d,
166 * testsuite/gas/rx/mullo.d, * testsuite/gas/rx/mvfacgu.d,
167 * testsuite/gas/rx/mvfachi.d, * testsuite/gas/rx/mvfaclo.d,
168 * testsuite/gas/rx/mvfacmi.d, * testsuite/gas/rx/mvfc.d,
169 * testsuite/gas/rx/mvfcp.d, * testsuite/gas/rx/mvfdc.d,
170 * testsuite/gas/rx/mvfdr.d, * testsuite/gas/rx/mvtacgu.d,
171 * testsuite/gas/rx/mvtachi.d, * testsuite/gas/rx/mvtaclo.d,
172 * testsuite/gas/rx/mvtc.d, * testsuite/gas/rx/mvtcp.d,
173 * testsuite/gas/rx/mvtdc.d, * testsuite/gas/rx/neg.d,
174 * testsuite/gas/rx/nop.d, * testsuite/gas/rx/not.d,
175 * testsuite/gas/rx/opecp.d, * testsuite/gas/rx/or.d,
176 * testsuite/gas/rx/pop.d, * testsuite/gas/rx/popc.d,
177 * testsuite/gas/rx/popm.d, * testsuite/gas/rx/push.d,
178 * testsuite/gas/rx/pushc.d, * testsuite/gas/rx/pushm.d,
179 * testsuite/gas/rx/r-bcc.d, * testsuite/gas/rx/r-bra.d,
180 * testsuite/gas/rx/racl.d, * testsuite/gas/rx/racw.d,
181 * testsuite/gas/rx/rdacl.d, * testsuite/gas/rx/rdacw.d,
182 * testsuite/gas/rx/revl.d, * testsuite/gas/rx/revw.d,
183 * testsuite/gas/rx/rmpa.d, * testsuite/gas/rx/rolc.d,
184 * testsuite/gas/rx/rorc.d, * testsuite/gas/rx/rotl.d,
185 * testsuite/gas/rx/rotr.d, * testsuite/gas/rx/round.d,
186 * testsuite/gas/rx/rstr.d, * testsuite/gas/rx/rte.d,
187 * testsuite/gas/rx/rtfi.d, * testsuite/gas/rx/rts.d,
188 * testsuite/gas/rx/rtsd.d, * testsuite/gas/rx/sat.d,
189 * testsuite/gas/rx/satr.d, * testsuite/gas/rx/save.d,
190 * testsuite/gas/rx/sbb.d, * testsuite/gas/rx/sccnd.d,
191 * testsuite/gas/rx/scmpu.d, * testsuite/gas/rx/setpsw.d,
192 * testsuite/gas/rx/shar.d, * testsuite/gas/rx/shll.d,
193 * testsuite/gas/rx/shlr.d, * testsuite/gas/rx/smovb.d,
194 * testsuite/gas/rx/smovf.d, * testsuite/gas/rx/smovu.d,
195 * testsuite/gas/rx/sstr.d, * testsuite/gas/rx/stnz.d,
196 * testsuite/gas/rx/stz.d, * testsuite/gas/rx/sub.d,
197 * testsuite/gas/rx/suntil.d, * testsuite/gas/rx/swhile.d,
198 * testsuite/gas/rx/tst.d, * testsuite/gas/rx/utof.d,
199 * testsuite/gas/rx/wait.d, * testsuite/gas/rx/xchg.d,
200 * testsuite/gas/rx/xor.d: Add #source line.
201
202 2019-01-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
203
204 * config/tc-arm.c (arm_cpus): Add ares.
205 * doc/c-arm.texi (-mcpu): Document ares value.
206
207 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
208
209 * config/rx-defs.h (rx_cpu_types): Add type RXV3 and RXV3FPU.
210 (rx_bfield): Add prototype.
211 (rx_post): Likewise.
212 * config/rx-parse.y: Add v3 instructions and Double FPU registers.
213 (DSIZE): Define.
214 (POST): Define.
215 (rx_check_v3): New. check v3 type.
216 (rx_check_dfpu): New. check have double support.
217 (double_condition_table): New. dcmp<cond> contiditon.
218 (check_condition): Multiple condition support.
219 (rx_lex): RXv3 instructions support.
220 Add parse dcmp<cond> instruction and Double FPU registers.
221 (immediate): Disable optimize in dmov #imm case.
222 (displacement): Add double displacement in dmov instraction.
223 * config/tc-rx.c (rx_use_conventional_section_names):
224 Invert default value in rx-*-linux target.
225 (cpu_type): Add additional ELF flags.
226 (cpu_type_list): Add RXv3.
227 (md_parse_option): Refer elf_flags from cpu_type_list.
228 (md_show_usage): Add rxv3 and rxv3-dfpu.
229 (rx_bytesT): Add post byte.
230 (rx_bfield): New. generate bfmov / bfmovz "imm" field.
231 (rx_post): New. Set instruction post byte.
232 (md_assemble): Add post byte.
233 doc/c-rx.texi: Add cpu types.
234 * testsuite/gas/rx/Xtod.d: New.
235 * testsuite/gas/rx/Xtod.sm: New.
236 * testsuite/gas/rx/bfmov.d: New.
237 * testsuite/gas/rx/bfmov.sm: New.
238 * testsuite/gas/rx/dabs.d: New.
239 * testsuite/gas/rx/dabs.sm: New.
240 * testsuite/gas/rx/dadd.d: New.
241 * testsuite/gas/rx/dadd.sm: New.
242 * testsuite/gas/rx/dcmp.d: New.
243 * testsuite/gas/rx/dcmp.sm: New.
244 * testsuite/gas/rx/ddiv.d: New.
245 * testsuite/gas/rx/ddiv.sm: New.
246 * testsuite/gas/rx/dmov.d: New.
247 * testsuite/gas/rx/dmov.sm: New.
248 * testsuite/gas/rx/dmul.d: New.
249 * testsuite/gas/rx/dmul.sm: New.
250 * testsuite/gas/rx/dneg.d: New.
251 * testsuite/gas/rx/dneg.sm: New.
252 * testsuite/gas/rx/dpopm.d: New.
253 * testsuite/gas/rx/dpopm.sm: New.
254 * testsuite/gas/rx/dpushm.d: New.
255 * testsuite/gas/rx/dpushm.sm: New.
256 * testsuite/gas/rx/dround.d: New.
257 * testsuite/gas/rx/dround.sm: New.
258 * testsuite/gas/rx/dsqrt.d: New.
259 * testsuite/gas/rx/dsqrt.sm: New.
260 * testsuite/gas/rx/dsub.d: New.
261 * testsuite/gas/rx/dsub.sm: New.
262 * testsuite/gas/rx/dtoX.d: New.
263 * testsuite/gas/rx/dtoX.sm: New.
264 * testsuite/gas/rx/macros.inc: Add double FPU registers.
265 * testsuite/gas/rx/mvfdc.d: New.
266 * testsuite/gas/rx/mvfdc.sm: New.
267 * testsuite/gas/rx/mvfdr.d: New.
268 * testsuite/gas/rx/mvfdr.sm: New.
269 * testsuite/gas/rx/mvtdc.d: New.
270 * testsuite/gas/rx/mvtdc.sm: New.
271 * testsuite/gas/rx/rstr.d: New.
272 * testsuite/gas/rx/rstr.sm: New.
273 * testsuite/gas/rx/rx.exp: Use rxv3-dfpu option.
274 * testsuite/gas/rx/save.d: New.
275 * testsuite/gas/rx/save.sm: New.
276 * testsuite/gas/rx/xor.d: New.
277 * testsuite/gas/rx/xor.sm: Add pattern.
278
279 2019-01-04 Wu Heng <wu.heng@zte.com.cn>
280
281 PR 24010
282 * macro.c (get_any_string): Check for end of input whilst scanning
283 for separators.
284
285 2019-01-04 Wu Heng <wu.heng@zte.com.cn>
286
287 PR 24009
288 * read.c (stringer): Fix handling of missing '>' character at end
289 of <...> sequence.
290
291 2019-01-01 Alan Modra <amodra@gmail.com>
292
293 Update year range in copyright notice of all files.
294
295 For older changes see ChangeLog-2018
296 \f
297 Copyright (C) 2019 Free Software Foundation, Inc.
298
299 Copying and distribution of this file, with or without modification,
300 are permitted in any medium without royalty provided the copyright
301 notice and this notice are preserved.
302
303 Local Variables:
304 mode: change-log
305 left-margin: 8
306 fill-column: 74
307 version-control: never
308 End:
This page took 0.035133 seconds and 5 git commands to generate.