Run write_object_file after errors
[platform/upstream/binutils.git] / gas / ChangeLog
1 2014-06-16  Alan Modra  <amodra@gmail.com>
2
3         * write.h (subsegs_finish): Delete declaration.
4         * write.c (subsegs_finish): Make static.
5         (write_object_file): Call subsegs_finish from here.  Don't print
6         warning and error count here..
7         * as.c (main): ..do so here instead.  Remove dead code for "no
8         object file generated".  Split out count strings to better support
9         internationalisation.  Don't call subsegs_finish. Tidy setting of
10         "keep_it".  Run write_object_file even after errors.
11         (keep_it): Make static.
12         * config/obj-elf.c (elf_frob_symbol): Remove assert.
13         (elf_frob_file_before_adjust): Likewise.
14
15 2014-06-16  Alan Modra  <amodra@gmail.com>
16
17         * config/tc-dlx.c (machine_ip): Move initialisation of the_insn
18         earlier.
19
20 2014-06-16  Alan Modra  <amodra@gmail.com>
21
22         * config/tc-i386.c (reloc): Don't avoid pcrel check for
23         BFD_RELOC_SIZE64.  Return NO_RELOC on failing pcrel check.
24
25 2014-06-16  Alan Modra  <amodra@gmail.com>
26
27         * config/tc-tic6x.c (s_tic6x_ehtype): Clear after frag_more.
28         (tic6x_output_exidx_entry): Likewise.
29         (md_apply_fix): Simplify 1 byte md_number_to_chars.
30
31 2014-06-16  Alan Modra  <amodra@gmail.com>
32
33         * config/tc-tic54x.c (tic54x_mlib): Don't write garbage past
34         end of archive to temp file.
35         (tic54x_start_line_hook): Start scan for parallel on next line,
36         not one char into next line (which may overrun the buffer).
37
38 2014-06-16  Alan Modra  <amodra@gmail.com>
39
40         * config/tc-vax.c (md_apply_fix): Rewrite.
41         (tc_gen_reloc, vax_cons, vax_cons_fix_new): Style: Use NO_RELOC
42         define rather than the equivalent BFD_RELOC_NONE.
43
44 2014-06-16  Alan Modra  <amodra@gmail.com>
45
46         * config/tc-arm.c (s_arm_elf_cons): Initialise after frag_more.
47         (md_apply_fix): Delete now unnecessary zeroing for BFD_RELOC_ARM_GOT*
48         and BFD_RELOC_ARM_TLS* relocs.  Simplify BFD_RELOC_8 case.
49
50 2014-06-16  Alan Modra  <amodra@gmail.com>
51
52         * config/tc-cris.c (md_create_long_jump): Follow "short" jump
53         with a nop rather than leaving uninitialised.
54
55 2014-06-13  Chen Gang  <gang.chen.5i5j@gmail.com>
56
57         * config/tc-score7.c: Replace sprintf with strcpy where
58         appropriate.
59         (s7_b32_relax_to_b16): Use symbol_get_frag() to access a symbol's
60         frag.
61         * config/tc-score.c (s3_relax_branch_inst16): Likewise.
62         (s3_relax_cmpbranch_inst32): Likewise.
63
64 2014-06-07  Alan Modra  <amodra@gmail.com>
65
66         * config/tc-ppc.c (ppc_insert_operand): Handle PPC_OPERAND_SIGNOPT
67         on unsigned fields.  Comment on PPC_OPERAND_SIGNOPT signed fields
68         in 64-bit mode.
69
70 2014-06-02  Martin Storsjo  <martin@martin.st>
71
72         * doc/c-aarch64.texi: Fix the documentation on :pg_hi21:.
73
74 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
75
76         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
77         bfd's development.sh.
78         * Makefile.in, configure: Regenerate.
79
80 2014-06-03  Nick Clifton  <nickc@redhat.com>
81
82         * config/tc-msp430.c (OPTION_WARN_INTR_NOPS): Use y instead of z.
83         (OPTION_NO_WARN_INTR_NOPS): Use Y instead of Z.
84         * doc/c-msp430.texi: Update command line option description.
85
86 2014-05-22  Alan Modra  <amodra@gmail.com>
87
88         * listing.c (listing_warning, listing_error): Add space after colon.
89         * messages.c (as_warn_internal, as_bad_internal): Use the same
90         string as above.
91
92 2014-05-20  Matthew Fortune  <matthew.fortune@imgtec.com>
93
94         * config/tc-mips.c (file_mips_opts_checked): New static global.
95         (s_module): New static function.
96         (file_ase): Remove.
97         (mips_pseudo_table): Add .module handler.
98         (mips_set_ase): Add opts argument and use instead of mips_opts.
99         (md_assemble): Use file_mips_check_options.
100         (md_parse_option): Update to use file_mips_opts instead of mips_opts.
101         (mips_set_architecture): Delete function.  Moved to...
102         (mips_after_parse_args): Here.  All logic now applies to
103         file_mips_opts first and then copies the final state to mips_opts.
104         Move error checking and defaults inference to mips_check_options and
105         file_mips_check_options.
106         (mips_check_options): New static function.  Common option checking for
107         command line, .module and .set.  Use .module values in error messages
108         instead of refering to command line options.
109         (file_mips_check_options): New static function.  A wrapper for
110         mips_check_options with file_mips_opts.  Updates BFD arch based on
111         final options.
112         (s_mipsset): Split into s_mipsset and parse_code_option.  Settings
113         supported by both .set and .module are moved to parse_code_option.
114         Warnings and errors are kept in s_mipsset because when
115         parse_code_option is used with s_module the warnings are deferred
116         until code is generated.  Any setting supporting 'default' value is
117         kept in s_mipsset as it is not applicable to s_module. Inferred
118         settings are also kept in s_mipsset as s_module does not infer any
119         settings.  Use mips_check_options.
120         (parse_code_option): New static function derived from s_mipsset.
121         (s_module): New static function that implements .module.  Allows file
122         level settings to be changed until code is generated.
123         (s_cpload, s_cpsetup, s_cplocal): Use file_mips_check_options.
124         (s_cprestore, s_cpreturn, s_cpadd, mips_address_bytes): Likewise.
125         (mips_elf_final_processing): Update file_ase to file_mips_opts.ase.
126         (md_mips_end): Use file_mips_check_options.
127         * doc/c-mips.texi: Document .module.
128
129 2014-05-20  Matthew Fortune  <matthew.fortune@imgtec.com>
130
131         * messages.c (as_warn_internal): Remove extra whitespace from
132         warning messages.
133
134 2014-05-20  Matthew Fortune  <matthew.fortune@imgtec.com>
135
136         * config/tc-mips.c (FP64_ASES): Add ASE_MSA.
137         (mips_after_parse_args): Do not select ASE_MSA without -mfp64.
138
139 2014-05-20  Mike Stump  <mikestump@comcast.net>
140
141         * messages.c (as_warn_internal): Ensure we don't interleave output
142         within a single line when make -j is used.
143         (as_bad_internal): Likewise.
144
145 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
146
147         * config/obj-elf.h (obj_elf_seen_attribute): Declare.
148         * config/obj-elf.c (recorded_attribute_info): New structure.
149         (recorded_attributes): New variable.
150         (record_attribute, obj_elf_seen_attribute): New functions.
151         (obj_elf_vendor_attribute): Record which attributes have been seen.
152
153 2014-05-20  Nick Clifton  <nickc@redhat.com>
154
155         * config/tc-msp430.c (CHECK_RELOC_MSP430): Add OP parameter.
156         Generate BFD_RELOC_MSP430_ABS_HI16 if vshift is 1.
157         (msp430_srcoperand): Store vshift value in operand.
158
159 2014-05-19  Nick Clifton  <nickc@redhat.com>
160
161         PR gas/16858
162         * config/tc-i386.c (md_apply_fix): Improve the detection of code
163         symbols for 32-bit PE targets.
164
165 2014-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
166
167         * config/tc-mips.c (md_obj_begin): Delete.
168         (md_obj_end): Fold into...
169         (md_mips_end): ...here.  Move to end of file.
170
171 2014-05-17  Nick Clifton  <nickc@redhat.com>
172
173         PR gas/16946
174         * config/tc-v850.c (handle_ctoff): Generate an error if called
175         when using the RH850 ABI.
176
177 2014-05-16  Kaushik Phata  <Kaushik.Phatak@kpit.com>
178
179         * config/tc-rl78.c (enum options): Add OPTION_32BIT_DOUBLES
180         and OPTION_64BIT_DOUBLES.
181         (md_longopts): Add -m32bit-doubles and -m64bit-doubles.
182         (md_parse_option): Parse -m32bit-doubles and -m64bit-doubles.
183         (md_show_usage): Show all of the RL78 options.
184         (rl78_float_cons): New static functions.
185         (md_pseudo_table): Update handler for "double".
186         * doc/c-rl78.texi: Document new options.
187         * doc/as.texinfo: Likewise.
188
189 2014-05-13  Matthew Fortune  <matthew.fortune@imgtec.com>
190
191         * config/tc-mips.c (mips_set_options): Rename gp32 to gp throughout.
192         (HAVE_32BIT_GPRS, HAVE_64BIT_GPRS): Remove. Re-implement via GPR_SIZE.
193         (HAVE_32BIT_FPRS, HAVE_64BIT_FPRS): Remove. Re-implement via FPR_SIZE.
194         (GPR_SIZE, FPR_SIZE): New macros. Use throughout.
195
196 2014-05-08  Matthew Fortune  <matthew.fortune@imgtec.com>
197
198         * config/tc-mips.c (md_parse_option): Update missed file_mips_isa
199         references.
200
201 2014-05-08  Matthew Fortune  <matthew.fortune@imgtec.com>
202
203         * config/tc-mips.c (mips_set_options): Rename fp32 field to fp.
204         Update fp32 == 0 to fp == 64 and fp32 == 1 to fp != 64 throughout.
205         (file_mips_gp32, file_mips_fp32, file_mips_soft_float,
206         file_mips_single_float, file_mips_isa, file_mips_arch): Merge into
207         one struct...
208         (file_mips_opts): Here. New static global. Update throughout.
209         (mips_opts): Update defaults for gp32 and fp.
210
211 2014-05-08  Matthew Fortune  <matthew.fortune@imgtec.com>
212
213         * config/tc-mips.c (streq): Define.
214         (mips_convert_symbolic_attribute): New function.
215         * config/tc-mips.h (CONVERT_SYMBOLIC_ATTRIBUTE): Define.
216         (mips_convert_symbolic_attribute): New prototype.
217
218 2014-05-02  Max Filippov  <jcmvbkbc@gmail.com>
219
220         * config/tc-xtensa.c (md_apply_fix): mark BFD_RELOC_XTENSA_DIFF*
221         fixups as signed.
222
223 2014-05-07  Andrew Bennett  <andrew.bennett@imgtec.com>
224
225         * tc-mips.c (ISA_SUPPORTS_MIPS16E): Add mips32r3, mips32r5, mips64r3
226         and mips64r5.
227         (ISA_HAS_64BIT_FPRS): Likewise.
228         (ISA_HAS_ROR): Likewise.
229         (ISA_HAS_ODD_SINGLE_FPR): Likewise.
230         (ISA_HAS_MXHC1): Likewise.
231         (hilo_interlocks): Likewise.
232         (md_longopts): Likewise.
233         (ISA_HAS_64BIT_REGS): Add mips64r3 and mips64r5.
234         (ISA_HAS_DROR): Likewise.
235         (options): Add OPTION_MIPS32R3, OPTION_MIPS32R5, OPTION_MIPS64R3, and
236         OPTION_MIPS64R5.
237         (mips_isa_rev): Add support for mips32r3, mips32r5, mips64r3 and
238         mips64r5.
239         (md_parse_option): Likewise.
240         (s_mipsset): Likewise.
241         (mips_cpu_info_table): Add entries for mips32r3, mips32r5, mips64r3
242         and mips64r5.  Also change p5600 entry to be mips32r5.
243         * configure.in: Add support for mips32r3, mips32r5, mips64r3 and
244         mips64r5.
245         * configure: Regenerate.
246         * doc/c-mips.texi: Document the -mips32r3, -mips32r5, -mips64r3 and
247         -mips64r5 command line options.
248         * doc/as.texinfo: Likewise.
249
250 2014-04-28  Nick Clifton  <nickc@redhat.com>
251
252         PR gas/16858
253         * config/tc-i386.c (md_apply_fix): Do not adjust value of
254         pc-relative fixes against weak symbols.
255
256 2014-04-26  Alan Modra  <amodra@gmail.com>
257
258         * po/POTFILES.in: Regenerate.
259
260 2014-04-24  Nick Clifton  <nickc@redhat.com>
261
262         * config/tc-arm.c (s_ltorg): Only create a mapping symbol for ELF
263         based targets.
264
265 2014-04-23  Will Newton  <will.newton@linaro.org>
266
267         * config/tc-arm.c (s_ltorg): Call make_mapping_symbol
268         directly instead of mapping_state.
269
270 2014-04-23  Andrew Bennett  <andrew.bennett@imgtec.com>
271
272         * config/tc-mips.c (options): Add OPTION_XPA and OPTION_NO_XPA.
273         (md_longopts): Add xpa and no-xpa command line options.
274         (mips_ases): Add MIPS XPA ASE.
275         (mips_cpu_info_table): Update p5600 entry to allow the XPA ASE.
276         * doc/as.texinfo: Document the MIPS XPA command line options.
277         * doc/c-mips.texi: Document the MIPS XPA command line options,
278         and assembler directives.
279
280 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
281
282         * config/tc-nios2.c (nios2_consume_arg): Add case for 'E' to
283         unbreak self-test mode.
284
285 2014-04-22  Max Filippov  <jcmvbkbc@gmail.com>
286
287         * config/tc-xtensa.c (xtensa_handle_align): record alignment for the
288         first section frag.
289
290 2014-04-22  Christian Svensson  <blue@cmd.nu>
291
292         * Makefile.am: Remove openrisc and or32 support.  Add support for or1k.
293         * configure.in: Likewise.
294         * configure.tgt: Likewise.
295         * doc/as.texinfo: Likewise.
296         * config/obj-coff.h: Likewise.
297         * config/tc-or1k.c: New file.
298         * config/tc-or1k.h: New file.
299         * config/tc-openrisc.c: Delete.
300         * config/tc-openrisc.h: Delete.
301         * config/tc-or32.c: Delete.
302         * config/tc-or32.h: Delete.
303         * Makefile.in: Regenerate.
304         * configure: Regenerate.
305
306 2014-04-16  Alan Modra  <amodra@gmail.com>
307
308         * config/tc-tilegx.h (TC_CONS_FIX_NEW): Add RELOC arg.
309         * config/tc-tilepro.h (TC_CONS_FIX_NEW): Likewise.
310
311 2014-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
312
313         * config/tc-avr.c: Add new flag mlink-relax.
314         (md_show_usage): Add flag and help text.
315         (md_parse_option): Record whether link relax is turned on.
316         (relaxable_section): New.
317         (avr_validate_fix_sub): New.
318         (avr_force_relocation): New.
319         (md_apply_fix): Generate DIFF reloc.
320         (avr_allow_local_subtract): New.
321
322         * config/tc-avr.h (TC_LINKRELAX_FIXUP): Define to 0.
323         (TC_FORCE_RELOCATION): Define.
324         (TC_FORCE_RELOCATION_SUB_SAME): Define.
325         (TC_VALIDATE_FIX_SUB): Define.
326         (avr_force_relocation): Declare.
327         (avr_validate_fix_sub): Declare.
328         (md_allow_local_subtract): Define.
329         (avr_allow_local_subtract): Declare.
330
331 2014-04-10  Andrew Bennett  <andrew.bennett@imgtec.com>
332
333         * config/tc-mips.c (mips_cpu_info_table): Add P5600
334         configuation.
335         * doc/c-mips.texi: Document p5600.
336
337 2014-04-09  Nick Clifton  <nickc@redhat.com>
338
339         * config/tc-rl78.h (TC_CONS_FIX_NEW): Add RELOC parameter.
340         * config/tc-z80.h (TC_CONS_FIX_NEW): Discard RELOC parameter.
341         * config/tc-aarch64.h (TC_CONS_FIX_NEW): Discard RELOC parameter.
342         * read.c (emit_expr_fix): Mark the r parameter as potentially
343         unused.
344
345 2014-04-09  Alan Modra  <amodra@gmail.com>
346
347         * config/tc-ppc.c (warn_476, last_insn, last_seg, last_subseg):
348         New static vars.
349         (md_longopts, md_parse_option, md_show_usage): Add --ppc476-workaround.
350         (ppc_elf_cons_fix_check): New function.
351         (md_assemble): Set last_insn, last_seg, last_subseg.
352         (ppc_byte, md_apply_fix): Handle warn_476.
353         * config/tc-ppc.h (TC_CONS_FIX_CHECK): Define.
354         (ppc_elf_cons_fix_check): Declare.
355         * read.c (cons_worker): Invoke TC_CONS_FIX_CHECK.
356
357 2014-04-09  Alan Modra  <amodra@gmail.com>
358
359         * gas/config/tc-alpha.h (TC_CONS_FIX_NEW): Add RELOC parameter.
360         * gas/config/tc-arc.c (arc_cons_fix_new): Add reloc parameter.
361         * gas/config/tc-arc.h (arc_cons_fix_new): Update prototype.
362         (TC_CONS_FIX_NEW): Add RELOC parameter.
363         * gas/config/tc-arm.c (cons_fix_new_arm): Similarly
364         * gas/config/tc-arm.h (cons_fix_new_arm, TC_CONS_FIX_NEW): Similarly.
365         * gas/config/tc-cr16.c (cr16_cons_fix_new): Similarly.
366         * gas/config/tc-cr16.h (cr16_cons_fix_new, TC_CONS_FIX_NEW): Similarly.
367         * gas/config/tc-crx.h (TC_CONS_FIX_NEW): Similarly.
368         * gas/config/tc-m32c.c (m32c_cons_fix_new): Similarly.
369         * gas/config/tc-m32c.h (m32c_cons_fix_new, TC_CONS_FIX_NEW): Similarly.
370         * gas/config/tc-mn10300.c (mn10300_cons_fix_new): Similarly.
371         * gas/config/tc-mn10300.h (mn10300_cons_fix_new, TC_CONS_FIX_NEW):
372         Similarly.
373         * gas/config/tc-ns32k.c (cons_fix_new_ns32k): Similarly.
374         * gas/config/tc-ns32k.h (cons_fix_new_ns32k): Similarly.
375         * gas/config/tc-pj.c (pj_cons_fix_new_pj): Similarly.
376         * gas/config/tc-pj.h (pj_cons_fix_new_pj, TC_CONS_FIX_NEW): Similarly.
377         * gas/config/tc-rx.c (rx_cons_fix_new): Similarly.
378         * gas/config/tc-rx.h (rx_cons_fix_new, TC_CONS_FIX_NEW): Similarly.
379         * gas/config/tc-sh.c (sh_cons_fix_new): Similarly.
380         * gas/config/tc-sh.h (sh_cons_fix_new, TC_CONS_FIX_NEW): Similarly.
381         * gas/config/tc-tic54x.c (tic54x_cons_fix_new): Similarly.
382         * gas/config/tc-tic54x.h (tic54x_cons_fix_new, TC_CONS_FIX_NEW):
383         Similarly.
384         * gas/config/tc-tic6x.c (tic6x_cons_fix_new): Similarly.
385         * gas/config/tc-tic6x.h (tic6x_cons_fix_new, TC_CONS_FIX_NEW):
386         Similarly.
387         * gas/config/tc-arc.c (arc_parse_cons_expression): Return reloc.
388         * gas/config/tc-arc.h (arc_parse_cons_expression): Update proto.
389         * gas/config/tc-avr.c (exp_mod_data): Make global.
390         (pexp_mod_data): Delete.
391         (avr_parse_cons_expression): Return exp_mod_data pointer.
392         (avr_cons_fix_new): Add exp_mod_data_t pointer param.
393         (exp_mod_data_t): Move typedef..
394         * gas/config/tc-avr.h: ..to here.
395         (exp_mod_data): Declare.
396         (TC_PARSE_CONS_RETURN_TYPE, TC_PARSE_CONS_RETURN_NONE): Define.
397         (avr_parse_cons_expression, avr_cons_fix_new): Update prototype.
398         (TC_CONS_FIX_NEW): Update.
399         * gas/config/tc-hppa.c (hppa_field_selector): Delete static var.
400         (cons_fix_new_hppa): Add hppa_field_selector param.
401         (fix_new_hppa): Adjust.
402         (parse_cons_expression_hppa): Return field selector.
403         * gas/config/tc-hppa.h (parse_cons_expression_hppa): Update proto.
404         (cons_fix_new_hppa): Likewise.
405         (TC_PARSE_CONS_RETURN_TYPE, TC_PARSE_CONS_RETURN_NONE): Define.
406         * gas/config/tc-i386.c (got_reloc): Delete static var.
407         (x86_cons_fix_new): Add reloc param.
408         (x86_cons): Return got reloc.
409         * gas/config/tc-i386.h (x86_cons, x86_cons_fix_new): Update proto.
410         (TC_CONS_FIX_NEW): Add RELOC param.
411         * gas/config/tc-ia64.c (ia64_cons_fix_new): Add reloc param.  Adjust
412         calls.
413         * gas/config/tc-ia64.h (ia64_cons_fix_new): Update prototype.
414         (TC_CONS_FIX_NEW): Add reloc param.
415         * gas/config/tc-microblaze.c (parse_cons_expression_microblaze):
416         Return reloc.
417         (cons_fix_new_microblaze): Add reloc param.
418         * gas/config/tc-microblaze.h: Formatting.
419         (parse_cons_expression_microblaze): Update proto.
420         (cons_fix_new_microblaze): Likewise.
421         * gas/config/tc-nios2.c (nios2_tls_ldo_reloc): Delete static var.
422         (nios2_cons): Return ldo reloc.
423         (nios2_cons_fix_new): Delete.
424         * gas/config/tc-nios2.h (nios2_cons): Update prototype.
425         (nios2_cons_fix_new, TC_CONS_FIX_NEW): Delete.
426         * gas/config/tc-ppc.c (md_pseudo_table): Remove quad, long, word,
427         short.  Make llong use cons.
428         (ppc_elf_suffix): Return BFD_RELOC_NONE rather than BFD_RELOC_UNUSED.
429         (ppc_elf_cons): Delete.
430         (ppc_elf_parse_cons): New function.
431         (ppc_elf_validate_fix): Don't check for BFD_RELOC_UNUSED.
432         (md_assemble): Use BFD_RELOC_NONE rather than BFD_RELOC_UNUSED.
433         * gas/config/tc-ppc.h (TC_PARSE_CONS_EXPRESSION): Define
434         (ppc_elf_parse_cons): Declare.
435         * gas/config/tc-sparc.c (sparc_cons_special_reloc): Delete static var.
436         (sparc_cons): Return reloc specifier.
437         (cons_fix_new_sparc): Add reloc specifier param.
438         (sparc_cfi_emit_pcrel_expr): Use emit_expr_with_reloc.
439         * gas/config/tc-sparc.h (TC_PARSE_CONS_RETURN_TYPE): Define.
440         (TC_PARSE_CONS_RETURN_NONE): Define.
441         (sparc_cons, cons_fix_new_sparc): Update prototype.
442         * gas/config/tc-v850.c (hold_cons_reloc): Delete static var.
443         (v850_reloc_prefix): Use BFD_RELOC_NONE rather than BFD_RELOC_UNUSED.
444         (md_assemble): Likewise.
445         (parse_cons_expression_v850): Return reloc.
446         (cons_fix_new_v850): Add reloc parameter.
447         * gas/config/tc-v850.h (parse_cons_expression_v850): Update proto.
448         (cons_fix_new_v850): Likewise.
449         * gas/config/tc-vax.c (vax_cons_special_reloc): Delete static var.
450         (vax_cons): Return reloc.
451         (vax_cons_fix_new): Add reloc parameter.
452         * gas/config/tc-vax.h (vax_cons, vax_cons_fix_new): Update proto.
453         * gas/config/tc-xstormy16.c (xstormy16_cons_fix_new): Add reloc param.
454         * gas/config/tc-xstormy16.h (xstormy16_cons_fix_new): Update proto.
455         * gas/dwarf2dbg.c (TC_PARSE_CONS_RETURN_NONE): Provide default.
456         (emit_fixed_inc_line_addr): Adjust exmit_expr_fix calls.
457         * gas/read.c (TC_PARSE_CONS_EXPRESSION): Return value.
458         (do_parse_cons_expression): Adjust.
459         (cons_worker): Pass return value from TC_PARSE_CONS_EXPRESSION
460         to emit_expr_with_reloc.
461         (emit_expr_with_reloc): New function handling reloc, mostly
462         extracted from..
463         (emit_expr): ..here.
464         (emit_expr_fix): Add reloc param.  Adjust TC_CONS_FIX_NEW invocation.
465         Handle reloc.
466         (parse_mri_cons): Convert to ISO.
467         * gas/read.h (TC_PARSE_CONS_RETURN_TYPE): Define.
468         (TC_PARSE_CONS_RETURN_NONE): Define.
469         (emit_expr_with_reloc): Declare.
470         (emit_expr_fix): Update prototype.
471         * gas/write.c (write_object_file): Update TC_CONS_FIX_NEW invocation.
472
473 2014-04-03  Ilya Tocar  <ilya.tocar@intel.com>
474
475         * config/tc-i386.c (cpu_arch): Add .se1.
476         * doc/c-i386.texi: Document .se1/se1.
477
478 2014-04-02  DJ Delorie  <dj@redhat.com>
479
480         * config/tc-rl78.c (md_apply_fix): Add overflow warnings for
481         pc-relative branches.
482
483 2014-04-02  Nick Clifton  <nickc@redhat.com>
484
485         PR gas/16765
486         * config/tc-arm.c (create_unwind_entry): Report an error if an
487         attempt to recreate an unwind directive is encountered.
488
489 2014-03-27  Nick Clifton  <nickc@redhat.com>
490
491         * config/tc-score.c (s3_parse_pce_inst): Add "%s" parameter to
492         sprintf in order to avoid a compile time warning.
493
494 2014-03-26  Nick Clifton  <nickc@redhat.com>
495
496         * config/tc-rl78.c (rl78_op): Issue an error message if a 16-bit
497         relocation is used on an 8-bit operand or vice versa.
498         (tc_gen_reloc): Use the RL78_16U relocation for RL78_CODE.
499         (md_apply_fix): Add support for RL78_HI8, RL78_HI16 and RL78_LO16.
500
501 2014-03-25  Nick Clifton  <nickc@redhat.com>
502
503         * config/obj-coff-seh.c (obj_coff_seh_code): New function -
504         switches the current segment back to the code segment recorded
505         when seh_proc was last invoked.
506         * config/obj-coff-seh.h (SEH_CMDS): Add seh_code.
507
508 2014-03-25  Alan Modra  <amodra@gmail.com>
509
510         * config/tc-ppc.c (ppc_is_toc_sym): Revert 2014-03-05.
511         (md_assemble): Likewise.  Warn.
512
513 2014-03-21  David Weatherford <weath@cadence.com>
514             Max Filippov <jcmvbkbc@gmail.com>
515
516         * config/tc-xtensa.c (xtensa_check_frag_count)
517         xtensa_create_trampoline_frag,
518         xtensa_maybe_create_trampoline_frag, init_trampoline_frag,
519         find_trampoline_seg, search_trampolines, get_best_trampoline,
520         check_and_update_trampolines, add_jump_to_trampoline,
521         dump_trampolines): New functions.
522         (md_parse_option): Add cases for --[no-]trampolines options.
523         (md_assemble, finish_vinsn, xtensa_end): Add call to
524         xtensa_check_frag_count.
525         (xg_assemble_vliw_tokens): Add call to
526         xtensa_maybe_create_trampoline_frag.
527         (xtensa_relax_frag): Relax fragments with RELAX_TRAMPOLINE state.
528         (relax_frag_immed): Relax jump instructions that cannot reach its
529         target.
530         * config/tc-xtensa.h (xtensa_relax_statesE::RELAX_TRAMPOLINE): New
531         relax state.
532         * doc/as.texinfo: Document --[no-]trampolines command-line options.
533         * doc/c-xtensa.texi: Document trampolines relaxation and command
534         line options.
535         * frags.c (get_frag_count, clear_frag_count): New function.
536         (frag_alloc): Increment totalfrags counter.
537         * frags.h (get_frag_count, clear_frag_count): New function.
538
539 2014-03-20  DJ Delorie  <dj@redhat.com>
540
541         * config/rl78-defs.h (RL78_RELAX_NONE, RL78_RELAX_BRANCH): Add.
542         * config/rl78-parse.y (BC, BNC, BZ, BNZ, BH, BHZ, bt_bf): Call
543         rl78_relax().
544         * config/tc-rl78.h (md_relax_frag): Define.
545         (rl78_relax_frag): Declare.
546         * config/tc-rl78.c (rl78_relax): Add.
547         (md_assemble): Set up the variable frags also when relaxing.
548         (op_type_T): New.
549         (rl78_opcode_type): New.
550         (rl78_frag_fix_value): New.
551         (md_estimate_size_before_relax): New-ish.
552         (rl78_relax_frag): New.
553         (md_convert_frag): New-ish.
554
555 2014-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
556
557         * config/tc-mips.h (DIFF_EXPR_OK, CFI_DIFF_EXPR_OK): Define.
558         * config/tc-mips.c (md_pcrel_from): Remove error message.
559         (md_apply_fix): Convert PC-relative BFD_RELOC_32s to
560         BFD_RELOC_32_PCREL.  Report a specific error message for unhandled
561         PC-relative expressions.  Handle BFD_RELOC_8.
562
563 2014-03-19  Jose E. Marchesi  <jose.marchesi@oracle.com>
564
565         * config/tc-sparc.c (hpriv_reg_table): Added entries for
566         %hstick_offset and %hstick_enable.
567         * doc/c-sparc.texi (Sparc-Regs): Document the %hstick_offset and
568         %hstick_enable hyperprivileged registers.
569
570 2014-03-19  Daniel Gutson <daniel.gutson@tallertechnologies.com>
571             Nick Clifton  <nickc@redhat.com>
572
573         * config/tc-arm.c (codecomposer_syntax): New flag that states whether the
574         CCS syntax compatibility mode is on or off.
575         (asmfunc_states): New enum to represent the asmfunc directive state.
576         (asmfunc_state): New variable holding the asmfunc directive state.
577         (comment_chars): Rename to arm_comment_chars.
578         (line_separator_chars): Rename to arm_line_separator_chars.
579         (s_ccs_ref): New function that handles the .ref directive.
580         (asmfunc_debug): New function.
581         (s_ccs_asmfunc): New function that handles the .asmfunc directive.
582         (s_ccs_endasmfunc): New function that handles the .endasmfunc directive.
583         (s_ccs_def): New function that handles the .def directive.
584         (tc_start_label_without_colon): New function.
585         (md_pseudo_table): Added new CCS directives.
586         (arm_ccs_mode): New function that handles the -mccs command line option.
587         (arm_long_opts): Added new -mccs command line option.
588         * config/tc-arm.h (LABELS_WITHOUT_COLONS): New macro.
589         (TC_START_LABEL_WITHOUT_COLON): New macro.
590         (tc_start_label_without_colon): Added extern function declaration.
591         (tc_comment_chars): Define.
592         (tc_line_separator_chars): Define.
593         * app.c (do_scrub_begin): Use tc_line_separator_chars, if defined.
594         * read.c (read_begin): Likewise.
595         * doc/as.texinfo: Add documentation for the -mccs command line
596         option.
597         * doc/c-arm.texi: Likewise.
598         * doc/internals.texi: Document tc_line_separator_chars.
599         * NEWS: Mention the new feature.
600
601 2014-03-18  Jiong Wang  <jiong.wang@arm.com>
602
603         * config/tc-aarch64.c (aarch64_opts): Add new option
604         "mno-verbose-error".
605         (verbose_error_p): Initialize to 1.
606         * doc/c-aarch64.texi (AArch64 Options): Document -mverbose-error
607         and -mno-verbose-error.
608
609 2014-03-17  Nick Clifton  <nickc@redhat.com>
610
611         PR gas/16694
612         * config/tc-arm.c (tc_arm_regname_to_dw2regnum): Parse VFP
613         registers as well.
614
615 2014-03-13  Richard Earnshaw  <rearnsha@arm.com>
616             Jiong Wang  <Jiong.Wang@arm.com>
617
618         * doc/c-aarch64.texi: Clean up some formatting issues.
619         (AArch64 Options): Document -mcpu and -march.
620         (AArch64 Extensions): New node.
621
622 2014-03-13  Tristan Gingold  <gingold@adacore.com>
623
624         * config/tc-i386.c (use_big_obj): Declare.
625         (OPTION_MBIG_OBJ): Define.
626         (md_longopts): Add -mbig-obj option.
627         (md_parse_option): Handle it.
628         (md_show_usage): Display help for this option.
629         (i386_target_format): Use bigobj for x86-64 if -mbig-obj.
630         * doc/c-i386.texi: Document the option.
631
632 2014-03-12  Nick Clifton  <nickc@redhat.com>
633
634         PR gas/16688
635         * config/tc-aarch64.c (literal_expression): New structure.
636         (literal_pool): Replace exp array with literal_expression array.
637         (add_to_lit_pool): When adding a bignum cache the big value.
638         (s_ltorg): When emitting a bignum initialise the global bignum
639         array from the cached value.
640
641 2014-03-12  Alan Modra  <amodra@gmail.com>
642
643         * Makefile.in: Regenerate.
644         * config.in: Regenerate.
645         * doc/Makefile.in: Regenerate.
646
647 2014-03-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
648         Vishnu KS <Vishnu.k_s@atmel.com>
649         Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
650         Soundararajan <Soundararajan.dhakshinamoorthy@atmel.com>
651
652         * gas/tc-avr.c: Add new devices
653         avr25: ata5272, attiny828
654         avr35: ata5505, attiny1634
655         avr4: atmega8a, ata6285, ata6286, atmega48pa
656         avr5: at90pwm161, ata5790, ata5795, atmega164pa, atmega165pa,
657         atmega168pa, atmega32a, atmega64rfr2, atmega644rfr2, atmega64a,
658         atmega16hva2
659         avr51: atmega128a, atmega1284
660         avrxmega2: atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4,
661         atxmega32e5, atxmega16e5, atxmega8e5
662         avrxmega4: atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3,
663         atxmega64c3, atxmega64d4
664         avrxmega6: atxmega128a3u, atxmega128b3, atxmega128c3,
665         atxmega128d4, atxmega192a3u, atxmega192c3, atxmega256a3u,
666         atxmega256c3, atxmega384c3, atxmega384d3
667         avrxmega7: atxmega128a4u
668         * doc/c-avr.texi: Ditto.
669
670 2014-03-05  Alan Modra  <amodra@gmail.com>
671
672         Update copyright years.
673
674 2014-03-05  Alan Modra  <amodra@gmail.com>
675
676         * config/tc-ppc.c (ppc_elf_suffix): Support @localentry.
677         (md_apply_fix): Support R_PPC64_ADDR64_LOCAL.
678
679 2014-03-05  Alan Modra  <amodra@gmail.com>
680
681         * config/tc-ppc.c (md_assemble): Move code adjusting reloc types
682         later.  Merge absolute and relative branch reloc selection.
683         Generate 16-bit relocs for most 16-bit insn fields given a
684         non-constant expression.
685
686 2014-03-05  Alan Modra  <amodra@gmail.com>
687
688         * config/tc-ppc.c (ppc_is_toc_sym): Remove OBJ_ELF support.
689         (md_assemble): Don't call ppc_is_toc_sym for ELF.
690
691 2014-03-04  Heiher  <r@hev.cc>
692
693         * config/tc-mips.c (mips_cpu_info_table): Use ISA_MIPS64R2 for
694         Loongson-3A.
695
696 2014-03-03  Nick Clifton  <nickc@redhat.com>
697
698         * config/msp430/msp430.c: Replace known mcu array with known
699         msp430 ISA mcu name array.
700         Accept any name for -mmcu option.
701         Add -mz option to warn about missing NOP following an interrupt
702         status change.
703         (check_for_nop): New.
704         (msp430_operands): Emit a warning, if requested, when an interrupt
705         changing instruction is not followed by a NOP.
706         * doc/c-msp430.c: Document -mz option.
707
708 2014-03-03  Alan Modra  <amodra@gmail.com>
709
710         * config/bfin-lex-wrapper.c: Correct copyright date.
711         * config/obj-fdpicelf.c: Likewise.
712         * config/obj-fdpicelf.h: Likewise.
713         * config/tc-frv.c: Correct copyright punctuation.
714         * config/tc-ip2k.c: Likewise.
715         * config/tc-iq2000.c: Likewise.
716         * config/tc-mep.c: Likewise.
717         * config/tc-tic4x.c: Likewise.
718         * config/tc-tic4x.h: Likewise.
719
720 2014-03-01  Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
721
722         * config/tc-avr.c: Remove atxmega16x1.
723
724 2014-02-28  Alan Modra  <amodra@gmail.com>
725
726         * dwarf2dbg.c (out_debug_line): Correct .debug_line header_length
727         field for 64-bit dwarf.
728
729 2014-02-21  Ilya Tocar  <ilya.tocar@intel.com>
730
731         * config/tc-i386.c (cpu_arch): Add .prefetchwt1.
732         * doc/c-i386.texi: Document .prefetchwt1/prefetchwt1.
733
734 2014-02-12  Ilya Tocar  <ilya.tocar@intel.com>
735
736         * config/tc-i386.c (cpu_arch): Add .clflushopt, .xsavec, .xsaves.
737         * doc/c-i386.texi: Document .xsavec/xsavec/.xsaves/xsaves/
738         clflushopt/.clfushopt.
739
740 2014-02-10  Alan Modra  <amodra@gmail.com>
741
742         * po/POTFILES.in: Regenerate.
743         * po/gas.pot: Regenerate.
744
745 2014-02-03  Sandra Loosemore  <sandra@codesourcery.com>
746
747         * config/tc-nios2.c (md_apply_fix): Test for new relocs.
748         (nios2_special_reloc): Add %call_lo, %call_hiadj, %got_lo,
749         %got_hiadj relocation operators.  Sort table and add comment
750         to explain ordering.
751         (nios2_fix_adjustable): Test for new relocs.
752         * doc/c-nios2.texi (Nios II Relocations): Document new relocation
753         operators.
754
755 2014-01-30  Sandra Loosemore  <sandra@codesourcery.com>
756
757         * config/tc-nios2.c (md_apply_fix): Handle BFD_RELOC_NIOS2_CALL26_NOAT.
758         (nios2_assemble_args_m): Likewise.
759         (md_assemble): Likewise.
760
761 2014-01-24  DJ Delorie  <dj@redhat.com>
762
763         * config/tc-msp430.c (msp430_section): Always flag data sections,
764         regardless of -md.
765         (msp430_frob_section): New.  Make sure all sections are noticed if
766         they have content.
767         (msp430_lcomm): New.  Flag bss if .lcomm is seen.
768         (msp430_comm): New.  Likewise.
769         (md_pseudo_table): Add them.
770         * config/tc-msp430.h (msp430_frob_section): Declare.
771         (tc_frob_section): Define.
772
773 2014-01-23  Nick Clifton  <nickc@redhat.com>
774
775         * config/tc-msp430.c (show_mcu_list): Delete.
776         (md_parse_option): Accept any MCU name.  Accept several more
777         variants for the -mcpu option.
778         (md_show_usage): Do not call show_mcu_list.
779
780 2014-01-22  DJ Delorie  <dj@redhat.com>
781
782         * config/tc-msp430.c (msp430_refsym): New: ".refsym <symbol>"
783         * doc/c-msp430.texi (MSP430 Directives): Document it.
784
785 2014-01-22  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
786
787         * config/tc-i386.c (check_VecOperands): Remove regzmm from AVX2
788         gather assert.
789
790 2014-01-22  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
791
792         PR gas/16489
793         * config/tc-i386.c (check_VecOperands): Add check for invalid
794         register set in AVX512 gathers.
795
796 2014-01-22  Alan Modra  <amodra@gmail.com>
797
798         * config/tc-tic4x.c (md_shortopts): s/CONST/const/.
799
800 2014-01-21  DJ Delorie  <dj@redhat.com>
801
802         * config/tc-rl78.c (require_end_of_expr): New.
803         (md_operand): Call it.
804         (rl78_cons_fix_new): Mark LO16, HI16, ahd HI8 internal relocations
805         as not overflowing.
806
807 2014-01-17  Will Newton  <will.newton@linaro.org>
808
809         * config/tc-arm.c (do_vfp_nsyn_cvt_fpv8): Set OP to 1
810         for the s32.f64 flavours of VCVT.
811
812 2014-01-14  Nick Clifton  <nickc@redhat.com>
813
814         PR gas/16434
815         * config/tc-z80.c (wrong_match): Provide format string to
816         as_warn.
817         (parse_exp_not_indexed): Delete unused variable dummy.
818         (emit_byte): Delete unused variable fixp.
819
820 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
821
822         * config/tc-i386.c (regbnd): Removed.
823         (vec_disp8): Likewise.
824
825 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
826
827         * as.c (parse_args): Update copyright year to 2014.
828
829 2014-01-07  Tom Tromey  <tromey@redhat.com>
830
831         * config/tc-tic30.c (debug): Avoid old VA_* compatibility
832         wrappers.
833
834 2014-01-07  Tom Tromey  <tromey@redhat.com>
835
836         * config/tc-microblaze.h (parse_cons_expression_microblaze): Don't
837         use PARAMS.
838
839 2014-01-07  Tom Tromey  <tromey@redhat.com>
840
841         * config/tc-xc16x.h: Don't use ANSI_PROTOTYPES.
842
843 2013-01-07  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
844
845         * config/tc-aarch64.c (aarch64_cpus): Add entry for "xgene-1"
846
847 For older changes see ChangeLog-2013
848 \f
849 Copyright (C) 2014 Free Software Foundation, Inc.
850
851 Copying and distribution of this file, with or without modification,
852 are permitted in any medium without royalty provided the copyright
853 notice and this notice are preserved.
854
855 Local Variables:
856 mode: change-log
857 left-margin: 8
858 fill-column: 74
859 version-control: never
860 End: