Add checks for overfar branches
[external/binutils.git] / gas / ChangeLog
1 2014-04-02  DJ Delorie  <dj@redhat.com>
2
3         * config/tc-rl78.c (md_apply_fix): Add overflow warnings for
4         pc-relative branches.
5
6 2014-04-02  Nick Clifton  <nickc@redhat.com>
7
8         PR gas/16765
9         * config/tc-arm.c (create_unwind_entry): Report an error if an
10         attempt to recreate an unwind directive is encountered.
11
12 2014-03-27  Nick Clifton  <nickc@redhat.com>
13
14         * config/tc-score.c (s3_parse_pce_inst): Add "%s" parameter to
15         sprintf in order to avoid a compile time warning.
16
17 2014-03-26  Nick Clifton  <nickc@redhat.com>
18
19         * config/tc-rl78.c (rl78_op): Issue an error message if a 16-bit
20         relocation is used on an 8-bit operand or vice versa.
21         (tc_gen_reloc): Use the RL78_16U relocation for RL78_CODE.
22         (md_apply_fix): Add support for RL78_HI8, RL78_HI16 and RL78_LO16.
23
24 2014-03-25  Nick Clifton  <nickc@redhat.com>
25
26         * config/obj-coff-seh.c (obj_coff_seh_code): New function -
27         switches the current segment back to the code segment recorded
28         when seh_proc was last invoked.
29         * config/obj-coff-seh.h (SEH_CMDS): Add seh_code.
30
31 2014-03-25  Alan Modra  <amodra@gmail.com>
32
33         * config/tc-ppc.c (ppc_is_toc_sym): Revert 2014-03-05.
34         (md_assemble): Likewise.  Warn.
35
36 2014-03-21  David Weatherford <weath@cadence.com>
37             Max Filippov <jcmvbkbc@gmail.com>
38
39         * config/tc-xtensa.c (xtensa_check_frag_count)
40         xtensa_create_trampoline_frag,
41         xtensa_maybe_create_trampoline_frag, init_trampoline_frag,
42         find_trampoline_seg, search_trampolines, get_best_trampoline,
43         check_and_update_trampolines, add_jump_to_trampoline,
44         dump_trampolines): New functions.
45         (md_parse_option): Add cases for --[no-]trampolines options.
46         (md_assemble, finish_vinsn, xtensa_end): Add call to
47         xtensa_check_frag_count.
48         (xg_assemble_vliw_tokens): Add call to
49         xtensa_maybe_create_trampoline_frag.
50         (xtensa_relax_frag): Relax fragments with RELAX_TRAMPOLINE state.
51         (relax_frag_immed): Relax jump instructions that cannot reach its
52         target.
53         * config/tc-xtensa.h (xtensa_relax_statesE::RELAX_TRAMPOLINE): New
54         relax state.
55         * doc/as.texinfo: Document --[no-]trampolines command-line options.
56         * doc/c-xtensa.texi: Document trampolines relaxation and command
57         line options.
58         * frags.c (get_frag_count, clear_frag_count): New function.
59         (frag_alloc): Increment totalfrags counter.
60         * frags.h (get_frag_count, clear_frag_count): New function.
61
62 2014-03-20  DJ Delorie  <dj@redhat.com>
63
64         * config/rl78-defs.h (RL78_RELAX_NONE, RL78_RELAX_BRANCH): Add.
65         * config/rl78-parse.y (BC, BNC, BZ, BNZ, BH, BHZ, bt_bf): Call
66         rl78_relax().
67         * config/tc-rl78.h (md_relax_frag): Define.
68         (rl78_relax_frag): Declare.
69         * config/tc-rl78.c (rl78_relax): Add.
70         (md_assemble): Set up the variable frags also when relaxing.
71         (op_type_T): New.
72         (rl78_opcode_type): New.
73         (rl78_frag_fix_value): New.
74         (md_estimate_size_before_relax): New-ish.
75         (rl78_relax_frag): New.
76         (md_convert_frag): New-ish.
77
78 2014-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
79
80         * config/tc-mips.h (DIFF_EXPR_OK, CFI_DIFF_EXPR_OK): Define.
81         * config/tc-mips.c (md_pcrel_from): Remove error message.
82         (md_apply_fix): Convert PC-relative BFD_RELOC_32s to
83         BFD_RELOC_32_PCREL.  Report a specific error message for unhandled
84         PC-relative expressions.  Handle BFD_RELOC_8.
85
86 2014-03-19  Jose E. Marchesi  <jose.marchesi@oracle.com>
87
88         * config/tc-sparc.c (hpriv_reg_table): Added entries for
89         %hstick_offset and %hstick_enable.
90         * doc/c-sparc.texi (Sparc-Regs): Document the %hstick_offset and
91         %hstick_enable hyperprivileged registers.
92
93 2014-03-19  Daniel Gutson <daniel.gutson@tallertechnologies.com>
94             Nick Clifton  <nickc@redhat.com>
95
96         * config/tc-arm.c (codecomposer_syntax): New flag that states whether the
97         CCS syntax compatibility mode is on or off.
98         (asmfunc_states): New enum to represent the asmfunc directive state.
99         (asmfunc_state): New variable holding the asmfunc directive state.
100         (comment_chars): Rename to arm_comment_chars.
101         (line_separator_chars): Rename to arm_line_separator_chars.
102         (s_ccs_ref): New function that handles the .ref directive.
103         (asmfunc_debug): New function.
104         (s_ccs_asmfunc): New function that handles the .asmfunc directive.
105         (s_ccs_endasmfunc): New function that handles the .endasmfunc directive.
106         (s_ccs_def): New function that handles the .def directive.
107         (tc_start_label_without_colon): New function.
108         (md_pseudo_table): Added new CCS directives.
109         (arm_ccs_mode): New function that handles the -mccs command line option.
110         (arm_long_opts): Added new -mccs command line option.
111         * config/tc-arm.h (LABELS_WITHOUT_COLONS): New macro.
112         (TC_START_LABEL_WITHOUT_COLON): New macro.
113         (tc_start_label_without_colon): Added extern function declaration.
114         (tc_comment_chars): Define.
115         (tc_line_separator_chars): Define.
116         * app.c (do_scrub_begin): Use tc_line_separator_chars, if defined.
117         * read.c (read_begin): Likewise.
118         * doc/as.texinfo: Add documentation for the -mccs command line
119         option.
120         * doc/c-arm.texi: Likewise.
121         * doc/internals.texi: Document tc_line_separator_chars.
122         * NEWS: Mention the new feature.
123
124 2014-03-18  Jiong Wang  <jiong.wang@arm.com>
125
126         * config/tc-aarch64.c (aarch64_opts): Add new option
127         "mno-verbose-error".
128         (verbose_error_p): Initialize to 1.
129         * doc/c-aarch64.texi (AArch64 Options): Document -mverbose-error
130         and -mno-verbose-error.
131
132 2014-03-17  Nick Clifton  <nickc@redhat.com>
133
134         PR gas/16694
135         * config/tc-arm.c (tc_arm_regname_to_dw2regnum): Parse VFP
136         registers as well.
137
138 2014-03-13  Richard Earnshaw  <rearnsha@arm.com>
139             Jiong Wang  <Jiong.Wang@arm.com>
140
141         * doc/c-aarch64.texi: Clean up some formatting issues.
142         (AArch64 Options): Document -mcpu and -march.
143         (AArch64 Extensions): New node.
144
145 2014-03-13  Tristan Gingold  <gingold@adacore.com>
146
147         * config/tc-i386.c (use_big_obj): Declare.
148         (OPTION_MBIG_OBJ): Define.
149         (md_longopts): Add -mbig-obj option.
150         (md_parse_option): Handle it.
151         (md_show_usage): Display help for this option.
152         (i386_target_format): Use bigobj for x86-64 if -mbig-obj.
153         * doc/c-i386.texi: Document the option.
154
155 2014-03-12  Nick Clifton  <nickc@redhat.com>
156
157         PR gas/16688
158         * config/tc-aarch64.c (literal_expression): New structure.
159         (literal_pool): Replace exp array with literal_expression array.
160         (add_to_lit_pool): When adding a bignum cache the big value.
161         (s_ltorg): When emitting a bignum initialise the global bignum
162         array from the cached value.
163
164 2014-03-12  Alan Modra  <amodra@gmail.com>
165
166         * Makefile.in: Regenerate.
167         * config.in: Regenerate.
168         * doc/Makefile.in: Regenerate.
169
170 2014-03-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
171         Vishnu KS <Vishnu.k_s@atmel.com>
172         Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
173         Soundararajan <Soundararajan.dhakshinamoorthy@atmel.com>
174
175         * gas/tc-avr.c: Add new devices
176         avr25: ata5272, attiny828
177         avr35: ata5505, attiny1634
178         avr4: atmega8a, ata6285, ata6286, atmega48pa
179         avr5: at90pwm161, ata5790, ata5795, atmega164pa, atmega165pa,
180         atmega168pa, atmega32a, atmega64rfr2, atmega644rfr2, atmega64a,
181         atmega16hva2
182         avr51: atmega128a, atmega1284
183         avrxmega2: atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4,
184         atxmega32e5, atxmega16e5, atxmega8e5
185         avrxmega4: atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3,
186         atxmega64c3, atxmega64d4
187         avrxmega6: atxmega128a3u, atxmega128b3, atxmega128c3,
188         atxmega128d4, atxmega192a3u, atxmega192c3, atxmega256a3u,
189         atxmega256c3, atxmega384c3, atxmega384d3
190         avrxmega7: atxmega128a4u
191         * doc/c-avr.texi: Ditto.
192
193 2014-03-05  Alan Modra  <amodra@gmail.com>
194
195         Update copyright years.
196
197 2014-03-05  Alan Modra  <amodra@gmail.com>
198
199         * config/tc-ppc.c (ppc_elf_suffix): Support @localentry.
200         (md_apply_fix): Support R_PPC64_ADDR64_LOCAL.
201
202 2014-03-05  Alan Modra  <amodra@gmail.com>
203
204         * config/tc-ppc.c (md_assemble): Move code adjusting reloc types
205         later.  Merge absolute and relative branch reloc selection.
206         Generate 16-bit relocs for most 16-bit insn fields given a
207         non-constant expression.
208
209 2014-03-05  Alan Modra  <amodra@gmail.com>
210
211         * config/tc-ppc.c (ppc_is_toc_sym): Remove OBJ_ELF support.
212         (md_assemble): Don't call ppc_is_toc_sym for ELF.
213
214 2014-03-04  Heiher  <r@hev.cc>
215
216         * config/tc-mips.c (mips_cpu_info_table): Use ISA_MIPS64R2 for
217         Loongson-3A.
218
219 2014-03-03  Nick Clifton  <nickc@redhat.com>
220
221         * config/msp430/msp430.c: Replace known mcu array with known
222         msp430 ISA mcu name array.
223         Accept any name for -mmcu option.
224         Add -mz option to warn about missing NOP following an interrupt
225         status change.
226         (check_for_nop): New.
227         (msp430_operands): Emit a warning, if requested, when an interrupt
228         changing instruction is not followed by a NOP.
229         * doc/c-msp430.c: Document -mz option.
230
231 2014-03-03  Alan Modra  <amodra@gmail.com>
232
233         * config/bfin-lex-wrapper.c: Correct copyright date.
234         * config/obj-fdpicelf.c: Likewise.
235         * config/obj-fdpicelf.h: Likewise.
236         * config/tc-frv.c: Correct copyright punctuation.
237         * config/tc-ip2k.c: Likewise.
238         * config/tc-iq2000.c: Likewise.
239         * config/tc-mep.c: Likewise.
240         * config/tc-tic4x.c: Likewise.
241         * config/tc-tic4x.h: Likewise.
242
243 2014-03-01  Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
244
245         * config/tc-avr.c: Remove atxmega16x1.
246
247 2014-02-28  Alan Modra  <amodra@gmail.com>
248
249         * dwarf2dbg.c (out_debug_line): Correct .debug_line header_length
250         field for 64-bit dwarf.
251
252 2014-02-21  Ilya Tocar  <ilya.tocar@intel.com>
253
254         * config/tc-i386.c (cpu_arch): Add .prefetchwt1.
255         * doc/c-i386.texi: Document .prefetchwt1/prefetchwt1.
256
257 2014-02-12  Ilya Tocar  <ilya.tocar@intel.com>
258
259         * config/tc-i386.c (cpu_arch): Add .clflushopt, .xsavec, .xsaves.
260         * doc/c-i386.texi: Document .xsavec/xsavec/.xsaves/xsaves/
261         clflushopt/.clfushopt.
262
263 2014-02-10  Alan Modra  <amodra@gmail.com>
264
265         * po/POTFILES.in: Regenerate.
266         * po/gas.pot: Regenerate.
267
268 2014-02-03  Sandra Loosemore  <sandra@codesourcery.com>
269
270         * config/tc-nios2.c (md_apply_fix): Test for new relocs.
271         (nios2_special_reloc): Add %call_lo, %call_hiadj, %got_lo,
272         %got_hiadj relocation operators.  Sort table and add comment
273         to explain ordering.
274         (nios2_fix_adjustable): Test for new relocs.
275         * doc/c-nios2.texi (Nios II Relocations): Document new relocation
276         operators.
277
278 2014-01-30  Sandra Loosemore  <sandra@codesourcery.com>
279
280         * config/tc-nios2.c (md_apply_fix): Handle BFD_RELOC_NIOS2_CALL26_NOAT.
281         (nios2_assemble_args_m): Likewise.
282         (md_assemble): Likewise.
283
284 2014-01-24  DJ Delorie  <dj@redhat.com>
285
286         * config/tc-msp430.c (msp430_section): Always flag data sections,
287         regardless of -md.
288         (msp430_frob_section): New.  Make sure all sections are noticed if
289         they have content.
290         (msp430_lcomm): New.  Flag bss if .lcomm is seen.
291         (msp430_comm): New.  Likewise.
292         (md_pseudo_table): Add them.
293         * config/tc-msp430.h (msp430_frob_section): Declare.
294         (tc_frob_section): Define.
295
296 2014-01-23  Nick Clifton  <nickc@redhat.com>
297
298         * config/tc-msp430.c (show_mcu_list): Delete.
299         (md_parse_option): Accept any MCU name.  Accept several more
300         variants for the -mcpu option.
301         (md_show_usage): Do not call show_mcu_list.
302
303 2014-01-22  DJ Delorie  <dj@redhat.com>
304
305         * config/tc-msp430.c (msp430_refsym): New: ".refsym <symbol>"
306         * doc/c-msp430.texi (MSP430 Directives): Document it.
307
308 2014-01-22  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
309
310         * config/tc-i386.c (check_VecOperands): Remove regzmm from AVX2
311         gather assert.
312
313 2014-01-22  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
314
315         PR gas/16489
316         * config/tc-i386.c (check_VecOperands): Add check for invalid
317         register set in AVX512 gathers.
318
319 2014-01-22  Alan Modra  <amodra@gmail.com>
320
321         * config/tc-tic4x.c (md_shortopts): s/CONST/const/.
322
323 2014-01-21  DJ Delorie  <dj@redhat.com>
324
325         * config/tc-rl78.c (require_end_of_expr): New.
326         (md_operand): Call it.
327         (rl78_cons_fix_new): Mark LO16, HI16, ahd HI8 internal relocations
328         as not overflowing.
329
330 2014-01-17  Will Newton  <will.newton@linaro.org>
331
332         * config/tc-arm.c (do_vfp_nsyn_cvt_fpv8): Set OP to 1
333         for the s32.f64 flavours of VCVT.
334
335 2014-01-14  Nick Clifton  <nickc@redhat.com>
336
337         PR gas/16434
338         * config/tc-z80.c (wrong_match): Provide format string to
339         as_warn.
340         (parse_exp_not_indexed): Delete unused variable dummy.
341         (emit_byte): Delete unused variable fixp.
342
343 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
344
345         * config/tc-i386.c (regbnd): Removed.
346         (vec_disp8): Likewise.
347
348 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
349
350         * as.c (parse_args): Update copyright year to 2014.
351
352 2014-01-07  Tom Tromey  <tromey@redhat.com>
353
354         * config/tc-tic30.c (debug): Avoid old VA_* compatibility
355         wrappers.
356
357 2014-01-07  Tom Tromey  <tromey@redhat.com>
358
359         * config/tc-microblaze.h (parse_cons_expression_microblaze): Don't
360         use PARAMS.
361
362 2014-01-07  Tom Tromey  <tromey@redhat.com>
363
364         * config/tc-xc16x.h: Don't use ANSI_PROTOTYPES.
365
366 2013-01-07  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
367
368         * config/tc-aarch64.c (aarch64_cpus): Add entry for "xgene-1"
369
370 For older changes see ChangeLog-2013
371 \f
372 Copyright (C) 2014 Free Software Foundation, Inc.
373
374 Copying and distribution of this file, with or without modification,
375 are permitted in any medium without royalty provided the copyright
376 notice and this notice are preserved.
377
378 Local Variables:
379 mode: change-log
380 left-margin: 8
381 fill-column: 74
382 version-control: never
383 End: