1 2014-04-09 Alan Modra <amodra@gmail.com>
3 * gas/config/tc-alpha.h (TC_CONS_FIX_NEW): Add RELOC parameter.
4 * gas/config/tc-arc.c (arc_cons_fix_new): Add reloc parameter.
5 * gas/config/tc-arc.h (arc_cons_fix_new): Update prototype.
6 (TC_CONS_FIX_NEW): Add RELOC parameter.
7 * gas/config/tc-arm.c (cons_fix_new_arm): Similarly
8 * gas/config/tc-arm.h (cons_fix_new_arm, TC_CONS_FIX_NEW): Similarly.
9 * gas/config/tc-cr16.c (cr16_cons_fix_new): Similarly.
10 * gas/config/tc-cr16.h (cr16_cons_fix_new, TC_CONS_FIX_NEW): Similarly.
11 * gas/config/tc-crx.h (TC_CONS_FIX_NEW): Similarly.
12 * gas/config/tc-m32c.c (m32c_cons_fix_new): Similarly.
13 * gas/config/tc-m32c.h (m32c_cons_fix_new, TC_CONS_FIX_NEW): Similarly.
14 * gas/config/tc-mn10300.c (mn10300_cons_fix_new): Similarly.
15 * gas/config/tc-mn10300.h (mn10300_cons_fix_new, TC_CONS_FIX_NEW):
17 * gas/config/tc-ns32k.c (cons_fix_new_ns32k): Similarly.
18 * gas/config/tc-ns32k.h (cons_fix_new_ns32k): Similarly.
19 * gas/config/tc-pj.c (pj_cons_fix_new_pj): Similarly.
20 * gas/config/tc-pj.h (pj_cons_fix_new_pj, TC_CONS_FIX_NEW): Similarly.
21 * gas/config/tc-rx.c (rx_cons_fix_new): Similarly.
22 * gas/config/tc-rx.h (rx_cons_fix_new, TC_CONS_FIX_NEW): Similarly.
23 * gas/config/tc-sh.c (sh_cons_fix_new): Similarly.
24 * gas/config/tc-sh.h (sh_cons_fix_new, TC_CONS_FIX_NEW): Similarly.
25 * gas/config/tc-tic54x.c (tic54x_cons_fix_new): Similarly.
26 * gas/config/tc-tic54x.h (tic54x_cons_fix_new, TC_CONS_FIX_NEW):
28 * gas/config/tc-tic6x.c (tic6x_cons_fix_new): Similarly.
29 * gas/config/tc-tic6x.h (tic6x_cons_fix_new, TC_CONS_FIX_NEW):
31 * gas/config/tc-arc.c (arc_parse_cons_expression): Return reloc.
32 * gas/config/tc-arc.h (arc_parse_cons_expression): Update proto.
33 * gas/config/tc-avr.c (exp_mod_data): Make global.
34 (pexp_mod_data): Delete.
35 (avr_parse_cons_expression): Return exp_mod_data pointer.
36 (avr_cons_fix_new): Add exp_mod_data_t pointer param.
37 (exp_mod_data_t): Move typedef..
38 * gas/config/tc-avr.h: ..to here.
39 (exp_mod_data): Declare.
40 (TC_PARSE_CONS_RETURN_TYPE, TC_PARSE_CONS_RETURN_NONE): Define.
41 (avr_parse_cons_expression, avr_cons_fix_new): Update prototype.
42 (TC_CONS_FIX_NEW): Update.
43 * gas/config/tc-hppa.c (hppa_field_selector): Delete static var.
44 (cons_fix_new_hppa): Add hppa_field_selector param.
45 (fix_new_hppa): Adjust.
46 (parse_cons_expression_hppa): Return field selector.
47 * gas/config/tc-hppa.h (parse_cons_expression_hppa): Update proto.
48 (cons_fix_new_hppa): Likewise.
49 (TC_PARSE_CONS_RETURN_TYPE, TC_PARSE_CONS_RETURN_NONE): Define.
50 * gas/config/tc-i386.c (got_reloc): Delete static var.
51 (x86_cons_fix_new): Add reloc param.
52 (x86_cons): Return got reloc.
53 * gas/config/tc-i386.h (x86_cons, x86_cons_fix_new): Update proto.
54 (TC_CONS_FIX_NEW): Add RELOC param.
55 * gas/config/tc-ia64.c (ia64_cons_fix_new): Add reloc param. Adjust
57 * gas/config/tc-ia64.h (ia64_cons_fix_new): Update prototype.
58 (TC_CONS_FIX_NEW): Add reloc param.
59 * gas/config/tc-microblaze.c (parse_cons_expression_microblaze):
61 (cons_fix_new_microblaze): Add reloc param.
62 * gas/config/tc-microblaze.h: Formatting.
63 (parse_cons_expression_microblaze): Update proto.
64 (cons_fix_new_microblaze): Likewise.
65 * gas/config/tc-nios2.c (nios2_tls_ldo_reloc): Delete static var.
66 (nios2_cons): Return ldo reloc.
67 (nios2_cons_fix_new): Delete.
68 * gas/config/tc-nios2.h (nios2_cons): Update prototype.
69 (nios2_cons_fix_new, TC_CONS_FIX_NEW): Delete.
70 * gas/config/tc-ppc.c (md_pseudo_table): Remove quad, long, word,
71 short. Make llong use cons.
72 (ppc_elf_suffix): Return BFD_RELOC_NONE rather than BFD_RELOC_UNUSED.
73 (ppc_elf_cons): Delete.
74 (ppc_elf_parse_cons): New function.
75 (ppc_elf_validate_fix): Don't check for BFD_RELOC_UNUSED.
76 (md_assemble): Use BFD_RELOC_NONE rather than BFD_RELOC_UNUSED.
77 * gas/config/tc-ppc.h (TC_PARSE_CONS_EXPRESSION): Define
78 (ppc_elf_parse_cons): Declare.
79 * gas/config/tc-sparc.c (sparc_cons_special_reloc): Delete static var.
80 (sparc_cons): Return reloc specifier.
81 (cons_fix_new_sparc): Add reloc specifier param.
82 (sparc_cfi_emit_pcrel_expr): Use emit_expr_with_reloc.
83 * gas/config/tc-sparc.h (TC_PARSE_CONS_RETURN_TYPE): Define.
84 (TC_PARSE_CONS_RETURN_NONE): Define.
85 (sparc_cons, cons_fix_new_sparc): Update prototype.
86 * gas/config/tc-v850.c (hold_cons_reloc): Delete static var.
87 (v850_reloc_prefix): Use BFD_RELOC_NONE rather than BFD_RELOC_UNUSED.
88 (md_assemble): Likewise.
89 (parse_cons_expression_v850): Return reloc.
90 (cons_fix_new_v850): Add reloc parameter.
91 * gas/config/tc-v850.h (parse_cons_expression_v850): Update proto.
92 (cons_fix_new_v850): Likewise.
93 * gas/config/tc-vax.c (vax_cons_special_reloc): Delete static var.
94 (vax_cons): Return reloc.
95 (vax_cons_fix_new): Add reloc parameter.
96 * gas/config/tc-vax.h (vax_cons, vax_cons_fix_new): Update proto.
97 * gas/config/tc-xstormy16.c (xstormy16_cons_fix_new): Add reloc param.
98 * gas/config/tc-xstormy16.h (xstormy16_cons_fix_new): Update proto.
99 * gas/dwarf2dbg.c (TC_PARSE_CONS_RETURN_NONE): Provide default.
100 (emit_fixed_inc_line_addr): Adjust exmit_expr_fix calls.
101 * gas/read.c (TC_PARSE_CONS_EXPRESSION): Return value.
102 (do_parse_cons_expression): Adjust.
103 (cons_worker): Pass return value from TC_PARSE_CONS_EXPRESSION
104 to emit_expr_with_reloc.
105 (emit_expr_with_reloc): New function handling reloc, mostly
108 (emit_expr_fix): Add reloc param. Adjust TC_CONS_FIX_NEW invocation.
110 (parse_mri_cons): Convert to ISO.
111 * gas/read.h (TC_PARSE_CONS_RETURN_TYPE): Define.
112 (TC_PARSE_CONS_RETURN_NONE): Define.
113 (emit_expr_with_reloc): Declare.
114 (emit_expr_fix): Update prototype.
115 * gas/write.c (write_object_file): Update TC_CONS_FIX_NEW invocation.
117 2014-04-03 Ilya Tocar <ilya.tocar@intel.com>
119 * config/tc-i386.c (cpu_arch): Add .se1.
120 * doc/c-i386.texi: Document .se1/se1.
122 2014-04-02 DJ Delorie <dj@redhat.com>
124 * config/tc-rl78.c (md_apply_fix): Add overflow warnings for
125 pc-relative branches.
127 2014-04-02 Nick Clifton <nickc@redhat.com>
130 * config/tc-arm.c (create_unwind_entry): Report an error if an
131 attempt to recreate an unwind directive is encountered.
133 2014-03-27 Nick Clifton <nickc@redhat.com>
135 * config/tc-score.c (s3_parse_pce_inst): Add "%s" parameter to
136 sprintf in order to avoid a compile time warning.
138 2014-03-26 Nick Clifton <nickc@redhat.com>
140 * config/tc-rl78.c (rl78_op): Issue an error message if a 16-bit
141 relocation is used on an 8-bit operand or vice versa.
142 (tc_gen_reloc): Use the RL78_16U relocation for RL78_CODE.
143 (md_apply_fix): Add support for RL78_HI8, RL78_HI16 and RL78_LO16.
145 2014-03-25 Nick Clifton <nickc@redhat.com>
147 * config/obj-coff-seh.c (obj_coff_seh_code): New function -
148 switches the current segment back to the code segment recorded
149 when seh_proc was last invoked.
150 * config/obj-coff-seh.h (SEH_CMDS): Add seh_code.
152 2014-03-25 Alan Modra <amodra@gmail.com>
154 * config/tc-ppc.c (ppc_is_toc_sym): Revert 2014-03-05.
155 (md_assemble): Likewise. Warn.
157 2014-03-21 David Weatherford <weath@cadence.com>
158 Max Filippov <jcmvbkbc@gmail.com>
160 * config/tc-xtensa.c (xtensa_check_frag_count)
161 xtensa_create_trampoline_frag,
162 xtensa_maybe_create_trampoline_frag, init_trampoline_frag,
163 find_trampoline_seg, search_trampolines, get_best_trampoline,
164 check_and_update_trampolines, add_jump_to_trampoline,
165 dump_trampolines): New functions.
166 (md_parse_option): Add cases for --[no-]trampolines options.
167 (md_assemble, finish_vinsn, xtensa_end): Add call to
168 xtensa_check_frag_count.
169 (xg_assemble_vliw_tokens): Add call to
170 xtensa_maybe_create_trampoline_frag.
171 (xtensa_relax_frag): Relax fragments with RELAX_TRAMPOLINE state.
172 (relax_frag_immed): Relax jump instructions that cannot reach its
174 * config/tc-xtensa.h (xtensa_relax_statesE::RELAX_TRAMPOLINE): New
176 * doc/as.texinfo: Document --[no-]trampolines command-line options.
177 * doc/c-xtensa.texi: Document trampolines relaxation and command
179 * frags.c (get_frag_count, clear_frag_count): New function.
180 (frag_alloc): Increment totalfrags counter.
181 * frags.h (get_frag_count, clear_frag_count): New function.
183 2014-03-20 DJ Delorie <dj@redhat.com>
185 * config/rl78-defs.h (RL78_RELAX_NONE, RL78_RELAX_BRANCH): Add.
186 * config/rl78-parse.y (BC, BNC, BZ, BNZ, BH, BHZ, bt_bf): Call
188 * config/tc-rl78.h (md_relax_frag): Define.
189 (rl78_relax_frag): Declare.
190 * config/tc-rl78.c (rl78_relax): Add.
191 (md_assemble): Set up the variable frags also when relaxing.
193 (rl78_opcode_type): New.
194 (rl78_frag_fix_value): New.
195 (md_estimate_size_before_relax): New-ish.
196 (rl78_relax_frag): New.
197 (md_convert_frag): New-ish.
199 2014-03-20 Richard Sandiford <rdsandiford@googlemail.com>
201 * config/tc-mips.h (DIFF_EXPR_OK, CFI_DIFF_EXPR_OK): Define.
202 * config/tc-mips.c (md_pcrel_from): Remove error message.
203 (md_apply_fix): Convert PC-relative BFD_RELOC_32s to
204 BFD_RELOC_32_PCREL. Report a specific error message for unhandled
205 PC-relative expressions. Handle BFD_RELOC_8.
207 2014-03-19 Jose E. Marchesi <jose.marchesi@oracle.com>
209 * config/tc-sparc.c (hpriv_reg_table): Added entries for
210 %hstick_offset and %hstick_enable.
211 * doc/c-sparc.texi (Sparc-Regs): Document the %hstick_offset and
212 %hstick_enable hyperprivileged registers.
214 2014-03-19 Daniel Gutson <daniel.gutson@tallertechnologies.com>
215 Nick Clifton <nickc@redhat.com>
217 * config/tc-arm.c (codecomposer_syntax): New flag that states whether the
218 CCS syntax compatibility mode is on or off.
219 (asmfunc_states): New enum to represent the asmfunc directive state.
220 (asmfunc_state): New variable holding the asmfunc directive state.
221 (comment_chars): Rename to arm_comment_chars.
222 (line_separator_chars): Rename to arm_line_separator_chars.
223 (s_ccs_ref): New function that handles the .ref directive.
224 (asmfunc_debug): New function.
225 (s_ccs_asmfunc): New function that handles the .asmfunc directive.
226 (s_ccs_endasmfunc): New function that handles the .endasmfunc directive.
227 (s_ccs_def): New function that handles the .def directive.
228 (tc_start_label_without_colon): New function.
229 (md_pseudo_table): Added new CCS directives.
230 (arm_ccs_mode): New function that handles the -mccs command line option.
231 (arm_long_opts): Added new -mccs command line option.
232 * config/tc-arm.h (LABELS_WITHOUT_COLONS): New macro.
233 (TC_START_LABEL_WITHOUT_COLON): New macro.
234 (tc_start_label_without_colon): Added extern function declaration.
235 (tc_comment_chars): Define.
236 (tc_line_separator_chars): Define.
237 * app.c (do_scrub_begin): Use tc_line_separator_chars, if defined.
238 * read.c (read_begin): Likewise.
239 * doc/as.texinfo: Add documentation for the -mccs command line
241 * doc/c-arm.texi: Likewise.
242 * doc/internals.texi: Document tc_line_separator_chars.
243 * NEWS: Mention the new feature.
245 2014-03-18 Jiong Wang <jiong.wang@arm.com>
247 * config/tc-aarch64.c (aarch64_opts): Add new option
249 (verbose_error_p): Initialize to 1.
250 * doc/c-aarch64.texi (AArch64 Options): Document -mverbose-error
251 and -mno-verbose-error.
253 2014-03-17 Nick Clifton <nickc@redhat.com>
256 * config/tc-arm.c (tc_arm_regname_to_dw2regnum): Parse VFP
259 2014-03-13 Richard Earnshaw <rearnsha@arm.com>
260 Jiong Wang <Jiong.Wang@arm.com>
262 * doc/c-aarch64.texi: Clean up some formatting issues.
263 (AArch64 Options): Document -mcpu and -march.
264 (AArch64 Extensions): New node.
266 2014-03-13 Tristan Gingold <gingold@adacore.com>
268 * config/tc-i386.c (use_big_obj): Declare.
269 (OPTION_MBIG_OBJ): Define.
270 (md_longopts): Add -mbig-obj option.
271 (md_parse_option): Handle it.
272 (md_show_usage): Display help for this option.
273 (i386_target_format): Use bigobj for x86-64 if -mbig-obj.
274 * doc/c-i386.texi: Document the option.
276 2014-03-12 Nick Clifton <nickc@redhat.com>
279 * config/tc-aarch64.c (literal_expression): New structure.
280 (literal_pool): Replace exp array with literal_expression array.
281 (add_to_lit_pool): When adding a bignum cache the big value.
282 (s_ltorg): When emitting a bignum initialise the global bignum
283 array from the cached value.
285 2014-03-12 Alan Modra <amodra@gmail.com>
287 * Makefile.in: Regenerate.
288 * config.in: Regenerate.
289 * doc/Makefile.in: Regenerate.
291 2014-03-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
292 Vishnu KS <Vishnu.k_s@atmel.com>
293 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
294 Soundararajan <Soundararajan.dhakshinamoorthy@atmel.com>
296 * gas/tc-avr.c: Add new devices
297 avr25: ata5272, attiny828
298 avr35: ata5505, attiny1634
299 avr4: atmega8a, ata6285, ata6286, atmega48pa
300 avr5: at90pwm161, ata5790, ata5795, atmega164pa, atmega165pa,
301 atmega168pa, atmega32a, atmega64rfr2, atmega644rfr2, atmega64a,
303 avr51: atmega128a, atmega1284
304 avrxmega2: atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4,
305 atxmega32e5, atxmega16e5, atxmega8e5
306 avrxmega4: atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3,
307 atxmega64c3, atxmega64d4
308 avrxmega6: atxmega128a3u, atxmega128b3, atxmega128c3,
309 atxmega128d4, atxmega192a3u, atxmega192c3, atxmega256a3u,
310 atxmega256c3, atxmega384c3, atxmega384d3
311 avrxmega7: atxmega128a4u
312 * doc/c-avr.texi: Ditto.
314 2014-03-05 Alan Modra <amodra@gmail.com>
316 Update copyright years.
318 2014-03-05 Alan Modra <amodra@gmail.com>
320 * config/tc-ppc.c (ppc_elf_suffix): Support @localentry.
321 (md_apply_fix): Support R_PPC64_ADDR64_LOCAL.
323 2014-03-05 Alan Modra <amodra@gmail.com>
325 * config/tc-ppc.c (md_assemble): Move code adjusting reloc types
326 later. Merge absolute and relative branch reloc selection.
327 Generate 16-bit relocs for most 16-bit insn fields given a
328 non-constant expression.
330 2014-03-05 Alan Modra <amodra@gmail.com>
332 * config/tc-ppc.c (ppc_is_toc_sym): Remove OBJ_ELF support.
333 (md_assemble): Don't call ppc_is_toc_sym for ELF.
335 2014-03-04 Heiher <r@hev.cc>
337 * config/tc-mips.c (mips_cpu_info_table): Use ISA_MIPS64R2 for
340 2014-03-03 Nick Clifton <nickc@redhat.com>
342 * config/msp430/msp430.c: Replace known mcu array with known
343 msp430 ISA mcu name array.
344 Accept any name for -mmcu option.
345 Add -mz option to warn about missing NOP following an interrupt
347 (check_for_nop): New.
348 (msp430_operands): Emit a warning, if requested, when an interrupt
349 changing instruction is not followed by a NOP.
350 * doc/c-msp430.c: Document -mz option.
352 2014-03-03 Alan Modra <amodra@gmail.com>
354 * config/bfin-lex-wrapper.c: Correct copyright date.
355 * config/obj-fdpicelf.c: Likewise.
356 * config/obj-fdpicelf.h: Likewise.
357 * config/tc-frv.c: Correct copyright punctuation.
358 * config/tc-ip2k.c: Likewise.
359 * config/tc-iq2000.c: Likewise.
360 * config/tc-mep.c: Likewise.
361 * config/tc-tic4x.c: Likewise.
362 * config/tc-tic4x.h: Likewise.
364 2014-03-01 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
366 * config/tc-avr.c: Remove atxmega16x1.
368 2014-02-28 Alan Modra <amodra@gmail.com>
370 * dwarf2dbg.c (out_debug_line): Correct .debug_line header_length
371 field for 64-bit dwarf.
373 2014-02-21 Ilya Tocar <ilya.tocar@intel.com>
375 * config/tc-i386.c (cpu_arch): Add .prefetchwt1.
376 * doc/c-i386.texi: Document .prefetchwt1/prefetchwt1.
378 2014-02-12 Ilya Tocar <ilya.tocar@intel.com>
380 * config/tc-i386.c (cpu_arch): Add .clflushopt, .xsavec, .xsaves.
381 * doc/c-i386.texi: Document .xsavec/xsavec/.xsaves/xsaves/
382 clflushopt/.clfushopt.
384 2014-02-10 Alan Modra <amodra@gmail.com>
386 * po/POTFILES.in: Regenerate.
387 * po/gas.pot: Regenerate.
389 2014-02-03 Sandra Loosemore <sandra@codesourcery.com>
391 * config/tc-nios2.c (md_apply_fix): Test for new relocs.
392 (nios2_special_reloc): Add %call_lo, %call_hiadj, %got_lo,
393 %got_hiadj relocation operators. Sort table and add comment
395 (nios2_fix_adjustable): Test for new relocs.
396 * doc/c-nios2.texi (Nios II Relocations): Document new relocation
399 2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
401 * config/tc-nios2.c (md_apply_fix): Handle BFD_RELOC_NIOS2_CALL26_NOAT.
402 (nios2_assemble_args_m): Likewise.
403 (md_assemble): Likewise.
405 2014-01-24 DJ Delorie <dj@redhat.com>
407 * config/tc-msp430.c (msp430_section): Always flag data sections,
409 (msp430_frob_section): New. Make sure all sections are noticed if
411 (msp430_lcomm): New. Flag bss if .lcomm is seen.
412 (msp430_comm): New. Likewise.
413 (md_pseudo_table): Add them.
414 * config/tc-msp430.h (msp430_frob_section): Declare.
415 (tc_frob_section): Define.
417 2014-01-23 Nick Clifton <nickc@redhat.com>
419 * config/tc-msp430.c (show_mcu_list): Delete.
420 (md_parse_option): Accept any MCU name. Accept several more
421 variants for the -mcpu option.
422 (md_show_usage): Do not call show_mcu_list.
424 2014-01-22 DJ Delorie <dj@redhat.com>
426 * config/tc-msp430.c (msp430_refsym): New: ".refsym <symbol>"
427 * doc/c-msp430.texi (MSP430 Directives): Document it.
429 2014-01-22 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
431 * config/tc-i386.c (check_VecOperands): Remove regzmm from AVX2
434 2014-01-22 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
437 * config/tc-i386.c (check_VecOperands): Add check for invalid
438 register set in AVX512 gathers.
440 2014-01-22 Alan Modra <amodra@gmail.com>
442 * config/tc-tic4x.c (md_shortopts): s/CONST/const/.
444 2014-01-21 DJ Delorie <dj@redhat.com>
446 * config/tc-rl78.c (require_end_of_expr): New.
447 (md_operand): Call it.
448 (rl78_cons_fix_new): Mark LO16, HI16, ahd HI8 internal relocations
451 2014-01-17 Will Newton <will.newton@linaro.org>
453 * config/tc-arm.c (do_vfp_nsyn_cvt_fpv8): Set OP to 1
454 for the s32.f64 flavours of VCVT.
456 2014-01-14 Nick Clifton <nickc@redhat.com>
459 * config/tc-z80.c (wrong_match): Provide format string to
461 (parse_exp_not_indexed): Delete unused variable dummy.
462 (emit_byte): Delete unused variable fixp.
464 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
466 * config/tc-i386.c (regbnd): Removed.
467 (vec_disp8): Likewise.
469 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
471 * as.c (parse_args): Update copyright year to 2014.
473 2014-01-07 Tom Tromey <tromey@redhat.com>
475 * config/tc-tic30.c (debug): Avoid old VA_* compatibility
478 2014-01-07 Tom Tromey <tromey@redhat.com>
480 * config/tc-microblaze.h (parse_cons_expression_microblaze): Don't
483 2014-01-07 Tom Tromey <tromey@redhat.com>
485 * config/tc-xc16x.h: Don't use ANSI_PROTOTYPES.
487 2013-01-07 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
489 * config/tc-aarch64.c (aarch64_cpus): Add entry for "xgene-1"
491 For older changes see ChangeLog-2013
493 Copyright (C) 2014 Free Software Foundation, Inc.
495 Copying and distribution of this file, with or without modification,
496 are permitted in any medium without royalty provided the copyright
497 notice and this notice are preserved.
503 version-control: never