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