* elf32-h8300 (h8_relax_section): Add new relaxation of mov
[binutils-gdb.git] / gas / ChangeLog
1 2013-03-21 Michael Schewe <michael.schewe@gmx.net>
2
3 * config/tc-h8300.c (do_a_fix_imm): Add relaxation of mov
4 @(disp:32,ERx) to mov @(disp:16,ERx) insns by new reloc
5 R_H8_DISP32A16.
6 * config/tc-h8300.h: Remove duplicated defines.
7
8 2013-03-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9
10 PR gas/15282
11 * tc-avr.c (mcu_has_3_byte_pc): New function.
12 (tc_cfi_frame_initial_instructions): Call it to find return
13 address size.
14
15 2013-03-20 Alexis Deruelle <alexis.deruelle@gmail.com>
16
17 PR gas/15095
18 * config/tc-tic6x.c (tic6x_try_encode): Handle
19 tic6x_coding_dreg_(msb|lsb) field coding types and use it to
20 encode register pair numbers when required.
21
22 2013-03-15 Will Newton <will.newton@linaro.org>
23
24 * config/tc-arm.c (do_neon_ldr_str): Fix error check for PC register
25 in vstr in Thumb mode for pre-ARMv7 cores.
26
27 2013-03-14 Andreas Schwab <schwab@suse.de>
28
29 * doc/c-arc.texi (ARC Directives): Revert last change and use
30 @itemize instead of @table.
31 * doc/c-arm.texi (ARM-Instruction-Set): Likewise.
32
33 2013-03-14 Nick Clifton <nickc@redhat.com>
34
35 PR gas/15273
36 * config/tc-arm.c (do_co_reg): Do not call check_obsolete with a
37 NULL message, instead just check ARM_CPU_IS_ANY directly.
38
39 2013-03-14 Nick Clifton <nickc@redhat.com>
40
41 PR gas/15212
42 * doc/c-arc.texi (ARC Directives): Use @code instead of @bullet
43 for table format.
44 * doc/c-arm.texi (ARM-Instruction-Set): Likewise. Also add text
45 to the @item directives.
46 (ARM-Neon-Alignment): Move to correct place in the document.
47 * doc/c-cr16.texi (CR16 Operand Qualifiers): Fix up table
48 formatting.
49 * doc/c-tic54x.texi (TIC54X-Subsyms): Correct use of
50 @smallexample.
51
52 2013-03-12 Sebastian Huber <sebastian.huber@embedded-brains.de>
53
54 * config/tc-nios2.c (nios2_consume_arg): Delete 'k' case. Add 'o'
55 case. Add default BAD_CASE to switch.
56
57 2013-03-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
58
59 * config/tc-nios2.c (nios2_assemble_args_ds): New function.
60 (nios2_arg_info_structs): Add "d,s" and "d,s,E" entries.
61
62 2013-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
63
64 * config/tc-arm.c (crc_ext_armv8): New feature set.
65 (UNPRED_REG): New macro.
66 (do_crc32_1): New function.
67 (do_crc32b, do_crc32h, do_crc32w, do_crc32cb,
68 do_crc32ch, do_crc32cw): Likewise.
69 (TUEc): New macro.
70 (insns): Add entries for crc32 mnemonics.
71 (arm_extensions): Add entry for crc.
72
73 2013-03-08 Chung-Lin Tang <cltang@codesourcery.com>
74
75 * write.h (struct fix): Add fx_dot_frag field.
76 (dot_frag): Declare.
77 * write.c (dot_frag): New variable.
78 (fix_new_internal): Set fx_dot_frag field with dot_frag.
79 (fixup_segment): Base calculation of fx_offset with fx_dot_frag.
80 * expr.c (expr): Save value of frag_now in dot_frag when setting
81 dot_value.
82 * read.c (emit_expr): Likewise. Delete comments.
83
84 2013-03-07 H.J. Lu <hongjiu.lu@intel.com>
85
86 * config/tc-i386.c (flag_code_names): Removed.
87 (i386_index_check): Rewrote.
88
89 2013-03-05 Yufeng Zhang <yufeng.zhang@arm.com>
90
91 * config/tc-aarch64.c (aarch64_imm_float_p): Rename 'e' to 'pattern';
92 add comment.
93 (aarch64_double_precision_fmovable): New function.
94 (parse_aarch64_imm_float): Add parameter 'dp_p'; call the new
95 function; handle hexadecimal representation of IEEE754 encoding.
96 (parse_operands): Update the call to parse_aarch64_imm_float.
97
98 2013-02-28 H.J. Lu <hongjiu.lu@intel.com>
99
100 * config/tc-i386.c (_i386_insn): Replace have_hle with hle_prefix.
101 (check_hle): Updated.
102 (md_assemble): Likewise.
103 (parse_insn): Likewise.
104
105 2013-02-28 H.J. Lu <hongjiu.lu@intel.com>
106
107 * config/tc-i386.c (_i386_insn): Add rep_prefix.
108 (md_assemble): Check if REP prefix is OK.
109 (parse_insn): Remove expecting_string_instruction. Set
110 i.rep_prefix.
111
112 2013-02-28 Yufeng Zhang <yufeng.zhang@arm.com>
113
114 * config/tc-aarch64.c (aarch64_features): Add the 'crc' option.
115
116 2013-02-28 Yufeng Zhang <yufeng.zhang@arm.com>
117
118 * config/tc-aarch64.c (parse_sys_reg): Allow the full range of CRn
119 for system registers.
120
121 2013-02-27 DJ Delorie <dj@redhat.com>
122
123 * config/tc-rl78.c (reloc_function): Add %code -> BFD_RELOC_RL78_CODE.
124 (rl78_op): Handle %code().
125 (rl78_cons_fix_new): Likewise, but ignore for 20-bit operands.
126 (tc_gen_reloc): Likwise; convert to a computed reloc.
127 (md_apply_fix): Likewise.
128
129 2013-02-25 Kaushik Phatak <Kaushik.Phatak@kpitcummins.com>
130
131 * config/rl78-parse.y: Fix encoding of DIVWU insn.
132
133 2013-02-25 Terry Guo <terry.guo@arm.com>
134
135 * config/tc-arm.c (arm_cpus): Add cortex-r7 entry.
136 * doc/c-arm.texi: Add cortex-r7 and missing cortex-r5 to
137 list of accepted CPUs.
138
139 2013-02-19 H.J. Lu <hongjiu.lu@intel.com>
140
141 PR gas/15159
142 * config/tc-i386.c (cpu_arch): Add ".smap".
143
144 * doc/c-i386.texi: Document smap.
145
146 2013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
147
148 * config/tc-mips.c (s_cpload): Call mips_mark_labels and set
149 mips_assembling_insn appropriately.
150 (s_cpsetup, s_cprestore, s_cpreturn, s_cpadd): Likewise.
151
152 2013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
153
154 * config/tc-mips.c (append_insn): Correct indentation, remove
155 extraneous braces.
156
157 2013-02-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
158
159 * config/tc-arm.c (do_neon_mov): Break on NS_NULL.
160
161 2013-02-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
162
163 * configure.tgt: Add nios2-*-rtems*.
164
165 2013-02-14 Yufeng Zhang <yufeng.zhang@arm.com>
166
167 * config/tc-aarch64.c (md_begin): Change to check if 'name' is
168 NULL.
169
170 2013-02-09 Jürgen Urban <JuergenUrban@gmx.de>
171
172 * config/tc-mips.c (CPU_HAS_LDC1_SDC1): New macro.
173 (macro): Use it. Assert that trunc.w.s is not used for r5900.
174
175 2013-02-08 Yi-Hsiu, Hsu <ahsu@marvell.com>
176
177 * gas/config/tc-arm.c (arm_cpus): Add support for mcpu=marvell-pj4
178 core.
179
180 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
181 Andrew Jenner <andrew@codesourcery.com>
182
183 Based on patches from Altera Corporation.
184
185 * Makefile.am (TARGET_CPU_CFILES): Add config/tc-nios2.c.
186 (TARGET_CPU_HFILES): Add config/tc-nios2.h.
187 * Makefile.in: Regenerated.
188 * configure.tgt: Add case for nios2*-linux*.
189 * config/obj-elf.c: Conditionally include elf/nios2.h.
190 * config/tc-nios2.c: New file.
191 * config/tc-nios2.h: New file.
192 * doc/Makefile.am (CPU_DOCS): Add c-nios2.texi.
193 * doc/Makefile.in: Regenerated.
194 * doc/all.texi: Set NIOSII.
195 * doc/as.texinfo (Overview): Add Nios II options.
196 (Machine Dependencies): Include c-nios2.texi.
197 * doc/c-nios2.texi: New file.
198 * NEWS: Note Altera Nios II support.
199
200 2013-02-06 Alan Modra <amodra@gmail.com>
201
202 PR gas/14255
203 * config/tc-avr.h (TC_VALIDATE_FIX): Mark symbol used by reloc.
204 Don't skip fixups with fx_subsy non-NULL.
205 * config/tc-avr.c (tc_gen_reloc): Don't specially handle fixups
206 with fx_subsy non-NULL.
207
208 2013-02-04 H.J. Lu <hongjiu.lu@intel.com>
209
210 * doc/c-metag.texi: Add "@c man" markers.
211
212 2013-02-04 Alan Modra <amodra@gmail.com>
213
214 * write.c (fixup_segment): Return void. Delete seg_reloc_count
215 related code.
216 (TC_ADJUST_RELOC_COUNT): Delete.
217 * config/tc-i960.h (TC_ADJUST_RELOC_COUNT): Delete.
218
219 2013-02-04 Alan Modra <amodra@gmail.com>
220
221 * po/POTFILES.in: Regenerate.
222
223 2013-01-30 Markos Chandras <markos.chandras@imgtec.com>
224
225 * config/tc-metag.c: Make SWAP instruction less permissive with
226 its operands.
227
228 2013-01-29 DJ Delorie <dj@redhat.com>
229
230 * config/tc-rl78.c (rl78_cons_fix_new): Handle user-specified
231 relocs in .word/.etc statements.
232
233 2013-01-29 Roland McGrath <mcgrathr@google.com>
234
235 * config/tc-arm.c (md_apply_fix): Use as_bad_where for "bad
236 immediate value for 8-bit offset" error so it shows line info.
237
238 2013-01-24 Joseph Myers <joseph@codesourcery.com>
239
240 * config/tc-ppc.c (md_assemble): Do not generate APUinfo sections
241 for 64-bit output.
242
243 2013-01-24 Nick Clifton <nickc@redhat.com>
244
245 * config/tc-v850.c: Add support for e3v5 architecture.
246 * doc/c-v850.texi: Mention new support.
247
248 2013-01-23 Nick Clifton <nickc@redhat.com>
249
250 PR gas/15039
251 * config/tc-avr.c: Include dwarf2dbg.h.
252
253 2013-01-18 H.J. Lu <hongjiu.lu@intel.com>
254
255 * config/tc-i386.c (reloc): Support size relocation only for ELF.
256 (tc_i386_fix_adjustable): Likewise.
257 (lex_got): Likewise.
258 (tc_gen_reloc): Likewise.
259
260 2013-01-17 Yufeng Zhang <yufeng.zhang@arm.com>
261
262 * config/tc-aarch64.c (output_operand_error_record): Change to output
263 the out-of-range error message as value-expected message if there is
264 only one single value in the expected range.
265 (programmer_friendly_fixup): Remove the handling of 8-bit MOVI with
266 LSL #0 as a programmer-friendly feature.
267
268 2013-01-16 H.J. Lu <hongjiu.lu@intel.com>
269
270 * config/tc-i386.c (reloc): Support BFD_RELOC_SIZE32.
271 (tc_i386_fix_adjustable): Keep symbol for BFD_RELOC_32_SIZE and
272 BFD_RELOC_64_SIZE relocations.
273 (lex_got): Support "symbol@SIZE" and don't create GOT symbol
274 for it.
275 (tc_gen_reloc): Resolve BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64
276 relocations against local symbols.
277
278 2013-01-16 Alan Modra <amodra@gmail.com>
279
280 * config/tc-ppc.c (md_assemble <TE_PE>): Ignore line after
281 finding some sort of toc syntax error, and break to avoid
282 compiler uninit warning.
283
284 2013-01-15 H.J. Lu <hongjiu.lu@intel.com>
285
286 PR gas/15019
287 * config/tc-i386.c (lex_got): Increment length by 1 if the
288 relocation token is removed.
289
290 2013-01-15 Nick Clifton <nickc@redhat.com>
291
292 * config/tc-v850.c (md_assemble): Allow signed values for
293 V850E_IMMEDIATE.
294
295 2013-01-11 Sean Keys <skeys@ipdatasys.com>
296
297 * config/tc-xgate.c (md_begin): Fix mistake made when going from
298 git to cvs.
299
300 2013-01-10 Peter Bergner <bergner@vnet.ibm.com>
301
302 * doc/as.texinfo (Target PowerPC): Document -mpower8 and -mhtm.
303 * doc/c-ppc.texi (PowerPC-Opts): Likewise.
304 * config/tc-ppc.c (md_show_usage): Likewise.
305 (ppc_handle_align): Handle power8's group ending nop.
306
307 2013-01-10 Sean Keys <skeys@ipdatasys.com>
308
309 * config/tc-xgate.c (md_begin): Fix the printing of opcodes so
310 that the assember exits after the opcodes have been printed.
311
312 2013-01-10 H.J. Lu <hongjiu.lu@intel.com>
313
314 * app.c: Remove trailing white spaces.
315 * as.c: Likewise.
316 * as.h: Likewise.
317 * cond.c: Likewise.
318 * dw2gencfi.c: Likewise.
319 * dwarf2dbg.h: Likewise.
320 * ecoff.c: Likewise.
321 * input-file.c: Likewise.
322 * itbl-lex.h: Likewise.
323 * output-file.c: Likewise.
324 * read.c: Likewise.
325 * sb.c: Likewise.
326 * subsegs.c: Likewise.
327 * symbols.c: Likewise.
328 * write.c: Likewise.
329 * config/tc-i386.c: Likewise.
330 * doc/Makefile.am: Likewise.
331 * doc/Makefile.in: Likewise.
332 * doc/c-aarch64.texi: Likewise.
333 * doc/c-alpha.texi: Likewise.
334 * doc/c-arc.texi: Likewise.
335 * doc/c-arm.texi: Likewise.
336 * doc/c-avr.texi: Likewise.
337 * doc/c-bfin.texi: Likewise.
338 * doc/c-cr16.texi: Likewise.
339 * doc/c-d10v.texi: Likewise.
340 * doc/c-d30v.texi: Likewise.
341 * doc/c-h8300.texi: Likewise.
342 * doc/c-hppa.texi: Likewise.
343 * doc/c-i370.texi: Likewise.
344 * doc/c-i386.texi: Likewise.
345 * doc/c-i860.texi: Likewise.
346 * doc/c-m32c.texi: Likewise.
347 * doc/c-m32r.texi: Likewise.
348 * doc/c-m68hc11.texi: Likewise.
349 * doc/c-m68k.texi: Likewise.
350 * doc/c-microblaze.texi: Likewise.
351 * doc/c-mips.texi: Likewise.
352 * doc/c-msp430.texi: Likewise.
353 * doc/c-mt.texi: Likewise.
354 * doc/c-s390.texi: Likewise.
355 * doc/c-score.texi: Likewise.
356 * doc/c-sh.texi: Likewise.
357 * doc/c-sh64.texi: Likewise.
358 * doc/c-tic54x.texi: Likewise.
359 * doc/c-tic6x.texi: Likewise.
360 * doc/c-v850.texi: Likewise.
361 * doc/c-xc16x.texi: Likewise.
362 * doc/c-xgate.texi: Likewise.
363 * doc/c-xtensa.texi: Likewise.
364 * doc/c-z80.texi: Likewise.
365 * doc/internals.texi: Likewise.
366
367 2013-01-10 Roland McGrath <mcgrathr@google.com>
368
369 * hash.c (hash_new_sized): Make it global.
370 * hash.h: Declare it.
371 * macro.c (define_macro): Use hash_new_sized instead of hash_new,
372 pass a small size.
373
374 2013-01-10 Will Newton <will.newton@imgtec.com>
375
376 * Makefile.am: Add Meta.
377 * Makefile.in: Regenerate.
378 * config/tc-metag.c: New file.
379 * config/tc-metag.h: New file.
380 * configure.tgt: Add Meta.
381 * doc/Makefile.am: Add Meta.
382 * doc/Makefile.in: Regenerate.
383 * doc/all.texi: Add Meta.
384 * doc/as.texiinfo: Document Meta options.
385 * doc/c-metag.texi: New file.
386
387 2013-01-09 Steve Ellcey <sellcey@mips.com>
388
389 * config/tc-i386.c (md_begin): Remove 'internal Error' from as_fatal
390 calls.
391 * config/tc-mips.c (internalError): Remove, replace with abort.
392
393 2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
394
395 * config/tc-aarch64.c (parse_operands): Change to compare the result
396 of function call 'parse_sys_reg' with 'PARSE_FAIL' instead of 'FALSE'.
397
398 2013-01-07 Nick Clifton <nickc@redhat.com>
399
400 PR gas/14887
401 * config/tc-arm.c (skip_past_char): Skip whitespace before the
402 anticipated character.
403 * config/tc-arm.c (parse_address_main): Delete skip of whitespace
404 here as it is no longer needed.
405
406 2013-01-06 Andreas Schwab <schwab@linux-m68k.org>
407
408 * doc/c-mips.texi (MIPS Opts): Fix use of @itemx.
409 * doc/c-score.texi (SCORE-Opts): Likewise.
410 * doc/c-tic54x.texi (TIC54X-Directives): Likewise.
411
412 2013-01-04 Juergen Urban <JuergenUrban@gmx.de>
413
414 * config/tc-mips.c: Add support for MIPS r5900.
415 Add M_LQ_AB and M_SQ_AB to support large values for instructions
416 lq and sq.
417 (can_swap_branch_p, get_append_method): Detect some conditional
418 short loops to fix a bug on the r5900 by NOP in the branch delay
419 slot.
420 (M_MUL): Support 3 operands in multu on r5900.
421 (M_TRUNCWS): Support trunc.w.s on r5900 in MIPS ISA I.
422 (s_mipsset): Force 32 bit floating point on r5900.
423 (mips_ip): Check parameter range of instructions mfps and mtps on
424 r5900.
425 * configure.in: Detect CPU type when target string contains r5900
426 (e.g. mips64r5900el-linux-gnu).
427
428 2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
429
430 * as.c (parse_args): Update copyright year to 2013.
431
432 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
433
434 * config/tc-aarch64.c (aarch64_cpus): Add entries for "cortex-a53"
435 and "cortex57".
436
437 2013-01-02 Nick Clifton <nickc@redhat.com>
438
439 PR gas/14987
440 * config/tc-arm.c (parse_address_main): Skip whitespace before a
441 closing bracket.
442
443 For older changes see ChangeLog-2012
444 \f
445 Copyright (C) 2013 Free Software Foundation, Inc.
446
447 Copying and distribution of this file, with or without modification,
448 are permitted in any medium without royalty provided the copyright
449 notice and this notice are preserved.
450
451 Local Variables:
452 mode: change-log
453 left-margin: 8
454 fill-column: 74
455 version-control: never
456 End: