Fallout from "Allow symbol and label names to be enclosed in double quotes"
[external/binutils.git] / gas / ChangeLog
1 2015-08-26  Alan Modra  <amodra@gmail.com>
2
3         PR gas/18581
4         * config/tc-mn10200.c (md_assemble <mdr>): Move restore_line_pointer
5         call to where input line used to be restored.
6         * config/tc-mn10300.c (md_assemble <usp>): Remove redundant input
7         line restore.
8         * config/tc-tilepro.c (parse_reg_expression): Add regname var.
9
10 2015-08-26  Nick Clifton  <nickc@redhat.com>
11
12         PR gas/18842
13         * configure.ac (AS_CHECK_DECLS): Add asprintf.
14         * configure: Regenerate.
15         * config.in: Regenerate.
16
17 2015-08-25  Jose E. Marchesi  <jose.marchesi@oracle.com>
18
19         * config/tc-sparc.c (priv_reg_table): New privileged register
20         %pmcdper.
21
22 2015-08-21  Nick Clifton  <nickc@redhat.com>
23
24         PR gas/18581
25         * expr.c (get_symbol_end): Rename to get_symbol_name.  Add a
26         return parameter pointing to the start of the symbol.  Allow
27         symbol names enclosed in double quotes.
28         (restore_line_pointer): New function.  Replace the NUL character
29         inserted into the input stream with the given character.  If the
30         character was a double quote, advance the input pointer.
31         * expr.h (get_symbol_end): Delete.
32         (get_symbol_name): Add prototype.
33         (restore_line_pointer): Prototype.
34         * read.h (SKIP_WHITESPACE_AFTER_NAME): New macro.
35         * doc/as.texinfo (Symbol Intro): Document that symbol names can
36         now be enclosed in double quotes.
37         * cond.c (s_ifdef): Replace get_symbol_end with get_symbol_name.
38         Use restore_line_pointer to replace the NUL in the input stream.
39         Use SKIP_WHITESPACE_AFTER_NAME to skip past the end of a symbol.
40         Check for the use of double quoted symbol names.
41         * expr.c: Likewise.
42         * config/obj-aout.c: Likewise.
43         * config/obj-coff-seh.c: Likewise.
44         * config/obj-coff.c: Likewise.
45         * config/obj-elf.c: Likewise.
46         * config/obj-evax.c: Likewise.
47         * config/obj-macho.c: Likewise.
48         * config/obj-som.c: Likewise.
49         * config/tc-alpha.c: Likewise.
50         * config/tc-arc.c: Likewise.
51         * config/tc-arm.c: Likewise.
52         * config/tc-dlx.c: Likewise.
53         * config/tc-h8300.c: Likewise.
54         * config/tc-hppa.c: Likewise.
55         * config/tc-i370.c: Likewise.
56         * config/tc-i386-intel.c: Likewise.
57         * config/tc-i386.c: Likewise.
58         * config/tc-i960.c: Likewise.
59         * config/tc-ia64.c: Likewise.
60         * config/tc-iq2000.c: Likewise.
61         * config/tc-m32r.c: Likewise.
62         * config/tc-m68hc11.c: Likewise.
63         * config/tc-m68k.c: Likewise.
64         * config/tc-microblaze.c: Likewise.
65         * config/tc-mips.c: Likewise.
66         * config/tc-mmix.c: Likewise.
67         * config/tc-mn10200.c: Likewise.
68         * config/tc-mn10300.c: Likewise.
69         * config/tc-nios2.c: Likewise.
70         * config/tc-ppc.c: Likewise.
71         * config/tc-s390.c: Likewise.
72         * config/tc-score.c: Likewise.
73         * config/tc-score7.c: Likewise.
74         * config/tc-sparc.c: Likewise.
75         * config/tc-tic4x.c: Likewise.
76         * config/tc-tic54x.c: Likewise.
77         * config/tc-tic6x.c: Likewise.
78         * config/tc-tilegx.c: Likewise.
79         * config/tc-tilepro.c: Likewise.
80         * config/tc-v850.c: Likewise.
81         * config/tc-xtensa.c: Likewise.
82         * config/tc-z80.c: Likewise.
83         * dw2gencfi.c: Likewise.
84         * dwarf2dbgc.: Likewise.
85         * ecoff.c: Likewise.
86         * read.c: Likewise.
87         * stabs.c: Likewise.
88
89 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
90
91         * config/tc-aarch64.c (reloc_table): New relocation types support for
92         dtprel_lo12.
93         (ldst_lo12_determine_real_reloc_type): Support
94         BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12,
95         BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC,
96         BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12,
97         BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC,
98         BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12,
99         BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC,
100         BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12,
101         BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC.
102         (parse_operands): Likewise.
103         (md_apply_fix): Likewise.
104         (aarch64_force_relocation): Likewise.
105         (process_movw_reloc_info): Likewise.
106
107 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
108
109         * config/tc-aarch64.c (reloc_table): New relocation modifiers,
110         "dtprel_hi12", "dtprel_g0", "dtprel_g0_nc", "dtprel_g1",
111         "dtprel_g1_nc", "dtprel_g2".
112         (md_apply_fix): Support new relocation types.
113         (aarch64_force_relocation): Likewise.
114         (process_movw_reloc_info): Likewise.
115
116 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
117
118         * config/tc-aarch64.c (reloc_table): New relocation modifiers.
119         (md_apply_fix): Support BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC.
120         (aarch64_force_relocation): Likewise.
121
122 2015-08-17  Alan Modra  <amodra@gmail.com>
123
124         * gas/config/tc-arm.c (s_align): Delete.
125         (md_pseudo_table): Use s_align_ptwo for "align".
126         * gas/config/tc-arm.h (TC_ALIGN_ZERO_IS_DEFAULT): Define.
127         * read.c (s_align): Modify for TC_ALIGN_ZERO_IS_DEFAULT.
128
129 2015-08-13  Alan Modra  <amodra@gmail.com>
130
131         * expr.c (operand): Rewrite handling of operands starting with "0f".
132         If atof_generic only parses "-" or "+", treat as expression.
133
134 2015-08-13  Alan Modra  <amodra@gmail.com>
135             DJ Delorie  <dj@redhat.com>
136
137         * expr.c (integer_constant): Return O_absent expression if eol.
138         (operand): For targets with both LOCAL_LABELS_FB and
139         NUMBERS_WITH_SUFFIX set, treat "0b" not followed by binary
140         digits as a local label reference.  Correct handling of 0b prefix.
141         If a suffix is not allowed, error on 0B.
142
143 2015-08-13  Alan Modra  <amodra@gmail.com>
144
145         * doc/as.texinfo (Local Labels): Allowed range of N in local
146         labels is non-negative integers, not positive integers.
147
148 2015-08-12  David Weatherford  <weath@cadence.com>
149
150         * config/tc-xtensa.c (struct litpool_frag, struct litpool_seg):
151         New structures.
152         (xtensa_maybe_create_literal_pool_frag): New function.
153         (litpool_seg_list, auto_litpools, auto_litpool_limit)
154         (litpool_buf, litpool_slotbuf): New static variables.
155         (option_auto_litpools, option_no_auto_litpools)
156         (option_auto_litpool_limit): New enum identifiers.
157         (md_longopts): Add entries for auto-litpools, no-auto-litpools
158         and auto-litpool-limit.
159         (md_parse_option): Handle option_auto_litpools,
160         option_no_auto_litpools and option_auto_litpool_limit.
161         (md_show_usage): Add help for --[no-]auto-litpools and
162         --auto-litpool-limit.
163         (xtensa_mark_literal_pool_location): Record a place for literal
164         pool with a call to xtensa_maybe_create_literal_pool_frag.
165         (get_literal_pool_location): Find highest priority literal pool
166         or convert candidate to literal pool when auto-litpools are used.
167         (xg_assemble_vliw_tokens): Create literal pool after jump
168         instruction.
169         (xtensa_check_frag_count): Create candidate literal pool every
170         auto_litpool_limit frags.
171         (xtensa_relax_frag): Add jump around literals to non-empty
172         literal pool.
173         (xtensa_move_literals): Estimate literal pool addresses and move
174         unreachable literals closer to their users, converting candidate
175         to literal pool if needed.
176         (xtensa_switch_to_non_abs_literal_fragment): Only emit error
177         about missing .literal_position in case auto-litpools are not
178         used.
179         * config/tc-xtensa.h (xtensa_relax_statesE): New relaxation
180         state: RELAX_LITERAL_POOL_CANDIDATE_BEGIN.
181         * doc/as.texinfo (Xtensa options):  Document --auto-litpools and
182         --no-auto-litpools options.
183         * doc/c-xtensa.texi (Xtensa options): Likewise.
184
185 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
186
187         * config/tc-mips.c (move_register): Change to use 'or' only.
188         (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Update to
189         use or for move.
190
191 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
192
193         * config/tc-aarch64.c (reloc_table): New relocation modifiers
194         "dtprel_lo12".
195         (md_apply_fix): Support BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12.
196         (aarch64_force_relocation): Likewise.
197
198 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
199
200         * config/tc-aarch64.c (reloc_table): New relocation modifiers.
201         (md_apply_fix): Support BFD_RELOC_AARCH64_TLSLD_ADD_LO12_NC.
202         (aarch64_force_relocation): Likewise.
203
204 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
205
206         * config/tc-aarch64.c (reloc_table): New relocation modifiers.
207         (md_apply_fix): Support BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21.
208         (aarch64_force_relocation): Likewise.
209
210 2015-08-11  Nick Clifton  <nickc@redhat.com>
211
212         PR gas/18765
213         * config/tc-arm.c (move_or_literal_pool): Use U suffix to remove
214         compile time warnings about constant expressions being shifted
215         into bit 31.
216         (do_iwmmxt_wldstd): Likewise.
217         (do_iwmmxt_wrwrwr_or_imm5): Likewise.
218         (md_assemble): Likewise.
219
220         PR gas/18574
221         * config/tc-msp430.c (msp430_operands): Rewrite if statements to
222         remove redundant checks.
223         (md_apply_fix): Likewise.
224
225         PR gas/18677
226         * config/tc-mmix.c (md_assemble): Fix typo checking operands with
227         a numeric constant value.
228
229         PR gas/18678
230         * config/tc-tic4x.c (tic4x_insn_check): Fix typo.
231
232         PR gas/18679
233         * config/xtensa-relax.c (same_operand_name): Fix typo.
234
235 2015-08-08  Hans-Peter Nilsson  <hp@axis.com>
236
237         * tc-arm.c (double_to_single, is_double_a_single): Append ULL to
238         0xFFFFFFFFFFFFF to avoid errors on 32-bit hosts.
239
240 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
241
242         * doc/c-aarch64.texi (.xword): Document directive.
243
244 2015-08-03  Nick Clifton  <nickc@redhat.com>
245
246         * doc/as.texinfo (Overview): Add --hash-size to the synopsis and
247         fix typo in its entry: @kindex -> @item.
248
249 2015-07-28  Robert Suchanek  <robert.suchanek@imgtec.com>
250
251         * config/tc-mips.c (mips_cpu_info_table): Add m5100 and m5101 entries.
252         * doc/c-mips.texi: Document m5100 and m5101 for -march=.
253
254 2015-07-28  Robert Suchanek  <robert.suchanek@imgtec.com>
255
256         * config/tc-mips.c (mips_cpu_info_table): Add interaptiv entry.
257         * doc/c-mips.text: Document -march=interaptiv.
258
259 2015-07-27  H.J. Lu  <hongjiu.lu@intel.com>
260
261         * configure: Regenerated.
262
263 2015-07-24  Nick Clifton  <nickc@redhat.com>
264
265         * config/tc-rl78.c (rl78_abs_sym): New local variable.
266         (md_begin): Initialise the new symbol.
267         (OPIMM): Define the value to be relative to the new symbol and not
268         the absolute section symbol.
269
270 2015-07-22  Alan Modra  <amodra@gmail.com>
271
272         PR gas/18687
273         * input-scrub.c (input_scrub_next_buffer): Rearrange and simplify
274         loop.  Don't drop lines at end of file lacking a newline, add a
275         newline instead.  Ensure partial_size is zero whenever
276         partial_where is NULL.  Adjust buffer size for extra char.
277         (input_scrub_push, input_scrub_begin): Adjust buffer size here too.
278
279 2015-07-20  Matthew Wahab  <matthew.wahab@arm.com>
280
281         * NEWS: Mention corrected spelling of armv6kz.
282         * config/tc-arm.c (arm_cpus): Replace ARM_ARCH_V6ZK with
283         ARM_ARCH_V6KZ.
284         (arm_archs): Likewise. Also add "armv6kz" and "armv6kzt2".
285         * doc/c-arm.texi: Replace "armv6zk" with "armv6kz".
286
287 2015-07-16  Jiong Wang  <jiong.wang@arm.com>
288
289         * config/tc-aarch64.c (reloc_table): New relocation modifiers.
290         (md_apply_fix): Support BFD_RELOC_AARCH64_TLSLD_ADR_PREL21.
291         (aarch64_force_relocation): Ditto.
292
293 2015-07-16  Matthew Wahab  <matthew.wahab@arm.com>
294
295         * config/tc-arm.c (arm_fpus): Add crypto-neon-fp-armv8.1.
296         * doc/c-arm.texi (-mfpu=): Likewise.  Correct the entry for
297         neon-fp-armv8.1.
298
299 2015-07-16  James Greenhalgh  <james.greenhalgh@arm.com>
300
301         * config/tc-arm.c (md_assemble): Rephrase the "selected processor does
302         not support ARM mode" error messages.
303
304 2015-07-15  H.J. Lu  <hongjiu.lu@intel.com>
305
306         * config/tc-i386.c (flag_compress_debug): Replace
307         COMPRESS_DEBUG_GNU_ZLIB with COMPRESS_DEBUG_GABI_ZLIB.
308
309 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
310
311         * as.c (parse_args): Make --compress-debug-sections and
312         --compress-debug-sections=zlib the same as
313         --compress-debug-sections=zlib-gabi.
314         * doc/as.texinfo: Change --compress-debug-sections and
315         --compress-debug-sections=zlib to zlib-gabi.
316
317 2015-07-09  Catherine Moore  <clm@codesourcery.com>
318
319         * config/tc-mips.c (check_fpabi):  Handle
320         VAL_GNU_MIPS_ABI_FP_NAN2008.
321
322 2015-07-08  Ciro Santilli  <ciro.santilli@gmail.com>
323
324         * doc/as.texinfo: Clarify case requirements for pseudo ops.
325
326 2015-07-08  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
327
328         * config/tc-avr.c (tc_gen_reloc): Change 32 bit relocation to
329         32 bit PC relative and update offset if the fixup is pc-relative.
330         * config/tc-avr.h (DIFF_EXPR_OK): Define to enable PC relative diff
331         relocs.
332
333 2015-07-03  Alan Modra  <amodra@gmail.com>
334
335         * config/tc-ppc.c (md_show_usage): Add -m821, -m850, -m860.
336         * doc/c-ppc.texi (PowerPC-Opts): Likewise.
337
338 2015-07-01  Sandra Loosemore  <sandra@codesourcery.com>
339             Cesar Philippidis  <cesar@codesourcery.com>
340
341         * config/tc-nios2.c (nios2_min_align): New.
342         (nop): Replace with....
343         (nop_r1, nop_r2, nop_r2_cdx, nop32, nop16): New.
344         (nios2_align): Handle alignment on 2-byte boundaries when CDX
345         instructions may be present.
346         (s_nios2_align): Adjust reference to nop.
347         (CDXBRANCH, IS_CDXBRANCH): New.
348         (CDX_UBRANCH_SUBTYPE, CDX_CBRANCH_SUBTYPE): New.
349         (nios2_relax_subtype_size): Handle 2-byte CDX branches.
350         (nios2_relax_frag): Likewise.
351         (md_convert_frag): Handle R2 encodings.
352         (nios2_check_overflow): Check that low-order bits are zero
353         before applying rightshift from howto.
354         (nios2_check_overflow): Correct negative overflow calculation.
355         (nios2_diagnose_overflow): Handle signed_immed12_overflow.  Issue
356         generic overflow messages for miscellaneous instruction formats.
357         (md_apply_fix): Recognize new R2 relocations.  For pc_relative
358         relocations, store fixup in *valP.
359         (nios2_reglist_mask, nios2_reglist_dir): New.
360         (nios2_parse_reglist): New.
361         (nios2_parse_base_register): New.
362         (nios2_assemble_expression): Handle constant expressions designated
363         by BFD_RELOC_NONE.
364         (nios2_assemble_reg3): New.
365         (nios2_assemble_arg_c): Handle R2 instruction formats.
366         (nios2_assemble_arg_d): Likewise.
367         (nios2_assemble_arg_s): Likewise.
368         (nios2_assemble_arg_t): Likewise.
369         (nios2_assemble_arg_D): New.
370         (nios2_assemble_arg_S): New.
371         (nios2_assemble_arg_T): New.
372         (nios2_assemble_arg_i): Handle R2 instruction formats.
373         (nios2_assemble_arg_I): New.
374         (nios2_assemble_arg_u): Handle R2 instruction formats.
375         (nios2_assemble_arg_U): New.
376         (nios2_assemble_arg_V): New.
377         (nios2_assemble_arg_W): New.
378         (nios2_assemble_arg_X): New.
379         (nios2_assemble_arg_Y): New.
380         (nios2_assemble_arg_o): Handle R2 instruction formats.
381         (nios2_assemble_arg_O): New.
382         (nios2_assemble_arg_P): New.
383         (nios2_assemble_arg_j): Handle R2 instruction formats.
384         (nios2_assemble_arg_k): New.
385         (nios2_assemble_arg_l): Handle R2 instruction formats.
386         (nios2_assemble_arg_m): Likewise.
387         (nios2_assemble_arg_M): New.
388         (nios2_assemble_arg_N): New.
389         (nios2_assemble_arg_e): New.
390         (nios2_assemble_arg_f): New.
391         (nios2_assemble_arg_g): New.
392         (nios2_assemble_arg_h): New.
393         (nios2_assemble_arg_R): New.
394         (nios2_assemble_arg_B): New.
395         (nios2_assemble_args): Handle new argument letters.
396         (nios2_consume_arg): Likewise.
397         (nios2_translate_pseudo_insn): Avoid dereferencing null pointer
398         in error message.
399         (nios2_ps_insn_info_structs): Add nop.n.
400         (output_ubranch): Handle CDX branches.
401         (output_cbranch): Likewise.
402         (output_call): Handle R2 encodings.
403         (output_movia): Likewise.
404         (md_begin): Initialize nios2_min_align.
405         (md_assemble): Align to nios2_min_align.  Adjust nios2_min_align
406         if a 16-bit instruction is seen.
407         (nios2_cons_align): Use appropriate nop pattern.
408
409 2015-07-01  Sandra Loosemore  <sandra@codesourcery.com>
410             Cesar Philippidis  <cesar@codesourcery.com>
411
412         * config/tc-nios2.c: Adjust includes.
413         (OPTION_MARCH): Define.
414         (md_longopts): Add -march option.
415         (nios2_architecture): New.
416         (nios2_use_arch): New.
417         (md_parse_option): Handle OPTION_MARCH.
418         (md_show_usage): Document -march.
419         (md_begin): Set arch in BFD.
420         (nios2_elf_final_processing): New.
421         * config/tc-nios2.h (elf_tc_final_processing): Define.
422         (nios2_elf_final_processing): New.
423         * doc/c-nios2.texi (-march): Add documentation.
424
425 2015-06-30  Amit Pawar  <Amit.Pawar@amd.com>
426
427         * config/tc-i386.c (cpu_arch): Add .mwaitx.
428         (process_immext): Check operands for monitorx/mwaitx instructions.
429         * doc/c-i386.texi: Document mwaitx.
430
431 2015-06-28  H.J. Lu  <hongjiu.lu@intel.com>
432
433         * as.c (parse_args): Replace COMPRESS_DEBUG_ZLIB with
434         COMPRESS_DEBUG_GNU_ZLIB.
435         * config/tc-i386.c (flag_compress_debug): Likewise.
436
437 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
438
439         * doc/as.texinfo (.cfi_lsda): Remove the extra @section.
440
441 2015-06-19  Peter Bergner  <bergner@vnet.ibm.com>
442
443         * config/tc-ppc.c (md_assemble): Use ppc_optional_operand_value.
444         Allow for optional operands without insert functions.
445
446 2015-06-18  Nick Clifton  <nickc@redhat.com>
447
448         PR gas/18541
449         * config/tc-arm.c (md_apply_fix): Add support for ADR in thumb
450         mode against a nearby symbol.
451
452 2015-06-18  Nick Clifton  <nickc@redhat.com>
453
454         PR gas/18481
455         * config/tc-arm.c (tc_gen_reloc): Include BFD_RELOC_ARM_TLS_LE32
456         in the same case as BFD_RELOC_ARM_TLS_IS32.
457
458 2015-06-17  Nick Clifton  <nickc@redhat.com>
459
460         * config/tc-arm.c (is_double_a_single): Make conditional upon the
461         availablity of a 64-bit type.  Use this type for the argument and
462         mantissa.
463         (double_to_single): Likewise.
464         * config/tc-arm.c (move_or_literal_pool): Use a 64-bit type for
465         the constant value, if available.  Generate a 64-bit value from a
466         bignum if supported.  Only perform the second optimization for
467         PR 18500 if the 64-bit type is available.
468
469 2015-06-17  Alessandro Marzocchi  <alessandro.marzocchi@gmail.com>
470
471         PR gas/18500
472         * config/tc-arm.c (is_double_a_single): New function.
473         (double_to_single): New function.
474         (move_or_literal_pool): Add support for converting VLDR to VMOV.
475
476         PR gas/18499
477         * config/tc-arm.c (move_or_literal_pool): Add support for LDR Rx,=
478         to MOV.w or MVN.w for Thumb2.
479
480 2015-06-17  Nicolas Pitre <nico@linaro.org>
481
482         * as.c (show_usage): Document --sectname-subst.
483         (parse_args): Add --sectname-subst.
484         * as.h (flag_sectname_subst): New.
485         * config/obj-elf.c (obj_elf_section_name): Add %S substitution.
486         * doc/as.texinfo: Document it.
487
488 2015-06-15  Renlin Li  <renlin.li@arm.com>
489
490         * config/tc-aarch64.c (reloc_table): New relocation modifier.
491         (md_apply_fix): Support BFD_RELOC_AARCH64_LD64_GOTOFF_LO15.
492         (aarch64_force_relocation): Ditto
493
494 2015-06-13  Mark Wielaard  <mjw@redhat.com>
495
496         * dwarf2dbg.c (out_header): Document EXPR->X_add_number value,
497         out_debug_aranges depends on it.
498         (out_debug_aranges): Track size of header to properly pad header
499         for address alignment.
500
501 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
502
503         PR gas/18427
504         * gas/config/tc-hppa.c (last_label_symbol): Declare.
505         (pa_get_label): Return last label in current space/segment or NULL.
506         (pa_define_label): Record last label and add to root.
507         (pa_undefine_label): Remove last label from root.
508
509 2015-06-08  Nick Clifton  <nickc@redhat.com>
510
511         * config/tc-rx.c (rx_op): Correct handling of integer bignums.
512
513 2015-06-04  Matthew Wahab  <matthew.wahab@arm.com>
514
515         * NEWS: Mention ARMv8.1 support in the Aarch64 port.
516         * config/tc-aarch64.c (aarch64_arch_option_table): Add "armv8.1-a".
517         * doc/c-aarch64.texi (-march): Add "armv8.1-a".
518
519 2015-06-04  Renlin Li  <renlin.li@arm.com>
520
521         * config/tc-arm.c (arm_init_frag): Use frag's thumb_mode information
522         when available.
523
524 2015-06-04  Nick Clifton  <nickc@redhat.com>
525
526         * config/tc-h8300.c (md_section_align): Fix compile time warning
527         about left shifting a negative value.
528
529 2015-06-03  Matthew Wahab  <matthew.wahab@arm.com>
530
531         * config/tc-arm.c (arm_archs): Add "armv8.1-a".
532         * doc/c-arm.texi (ARM Options, -march): Add "armv8.1-a".
533         * NEWS: Mention ARMv8.1 support.
534
535 2015-06-02  Matthew Wahab  <matthew.wahab@arm.com>
536
537         * config/tc-arm.c (arm_ext_pan): New.
538         (do_setpan): New, encode an ARM SETPAN instruction.
539         (do_t_setpan): New, encode a Thumb SETPAN instruction.
540         (insns): Add "setpan".
541         (arm_extensions): Add "pan".
542         * doc/c-arm.texi (ARM Options): Add "pan" to list of -mcpu processor
543         extensions.
544
545 2015-06-02  Matthew Wahab  <matthew.wahab@arm.com>
546
547         * config/tc-aarch64.c (aarch64_features): Add "rdma".
548         * doc/c-aarch64.texi (AArch64 Extensions): Add "rdma".
549
550 2015-06-02  Matthew Wahab  <matthew.wahab@arm.com>
551
552         * config/tc-aarch64.c (aarch64_features): Add "lor".
553         * doc/c-aarch64.c (Aarch64 Extensions): Add "lor" to list of
554         architecture extensions.
555
556 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
557
558         * config/tc-aarch64.c (parse_sys_reg): New parameter.  Check target
559         support.  Fix whitespace.
560         (parse_operands): Update for parse_sys_reg changes.
561         (aarch64_features): Add "pan".
562         * doc/c-aarch64.texi (Aarch64 Extensions): Add "pan".
563
564 2015-06-01  Jiong Wang  <jiong.wang@arm.com>
565
566         * config/tc-aarch64.c (reloc_table): New relocation modifiers.
567         (md_apply_fix): Support BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14.
568         (aarch64_force_relocation): Ditto.
569
570 2015-06-01  Jiong Wang  <jiong.wang@arm.com>
571
572         * config/tc-aarch64.c (reloc_table): New relocation modifiers.
573         (md_apply_fix): Support BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15.
574         (aarch64_force_relocation): Ditto.
575
576 2015-05-28  Catherine Moore  <clm@codesourcery.com>
577             Bernd Schmidt <bernds@codesourcery.com>
578             Paul Brook <paul@codesourcery.com>
579
580         gas/
581         * config/tc-alpha.c (all_cfi_sections): Declare.
582         (s_alpha_ent): Initialize all_cfi_sections.
583         (alpha_elf_md_end): Invoke cfi_set_sections.
584         * config/tc-mips.c (md_apply_fix):  Handle BFD_RELOC_NONE.
585         (s_ehword): Use BFD_RELOC_32_PCREL.
586         (mips_fix_adjustable): Handle BFD_RELOC_32_PCREL.
587         (mips_cfi_reloc_for_encoding): New function.
588         * tc-mips.h (DWARF2_FDE_RELOC_SIZE): Redefine.
589         (DWARF2_FDE_RELOC_ENCODING): Define.
590         (tc_cfi_reloc_for_encoding): Define.
591         (mips_cfi_reloc_for_encoding): Define.
592         (tc_compact_eh_opcode_stop): Define.
593         (tc_compact_eh_opcode_pad): Define.
594         * doc/as.texinfo: Document Compact EH extensions.
595         * doc/internals.texi: Likewise.
596         * dw2gencfi.c (EH_FRAME_LINKONCE): Redefine.
597         (tc_cfi_reloc_for_encoding): Provide default.
598         (compact_eh): Declare.
599         (emit_expr_encoded): New function.
600         (get_debugseg_name): Add Compact EH support.
601         (alloc_debugseg_item): Likewise.
602         (cfi_set_sections): New function.
603         (dot_cfi_fde_data): New function.
604         (dot_cfi_personality_id): New function.
605         (dot_cfi_inline_lsda): New function.
606         (cfi_pseudo_table): Add cfi_fde_data, cfi_personality_id,
607         and cfi_inline_lsda.
608         (dot_cfi_personality): Add Compact EH support.
609         (dot_cfi_lsda): Likewise.
610         (dot_cfi_sections): Likewise.
611         (dot_cfi_startproc): Likewise.
612         (get_cfi_seg): Likewise.
613         (output_compact_unwind_data): New function.
614         (output_cfi_insn): Add Compact EH support.
615         (output_cie): Likewise.
616         (output_fde): Likewise.
617         (cfi_finish): Likewise.
618         (cfi_emit_eh_header): New function.
619         (output_eh_header): New function.
620         * dw2gencfi.h (cfi_set_sections): Declare.
621         (SUPPORT_COMPACT_EH): Define.
622         (MULTIPLE_FRAME_SECTIONS): Define.
623         New enumeration to describe the Compact EH header format.
624         (fde_entry): Add new fields personality_id, eh_header_type, eh_data_size,
625         eh_data, eh_loc and sections.
626         (CFI_EMIT_eh_frame, CFI_EMIT_debug_frame, CFI_EMIT_target,
627         CFI_EMIT_eh_frame_compact): Define.
628
629 2015-05-26  Max Filippov  <jcmvbkbc@gmail.com>
630
631         * config/tc-xtensa.c (xtensa_move_literals): Check that
632         search_frag is non-NULL. Report error if literal frag is not
633         found.
634
635 2015-05-22  Nick Clifton  <nickc@redhat.com>
636
637         PR gas/18446
638         * read.c (output_big_sleb128): Use U suffix to prevent compile
639         time warning.
640
641 2015-05-19  Jiong Wang  <jiong.wang@arm.com>
642
643         * config/tc-aarch64.c (process_movw_reloc_info): Sort relocation case
644         labels alphabetically.
645         (md_apply_fix): Ditto.
646         (aarch64_force_relocation): Ditto.
647
648 2015-05-15  H.J. Lu  <hongjiu.lu@intel.com>
649
650         PR binutis/18386
651         * config/tc-i386.c (OPTION_MAMD64): New.
652         (OPTION_MINTEL64): Likewise.
653         (md_longopts): Add -mamd64 and -mintel64.
654         (md_parse_option): Handle OPTION_MAMD64 and OPTION_MINTEL64.
655         (md_show_usage): Add -mamd64 and -mintel64.
656         * doc/c-i386.texi: Document -mamd64 and -mintel64.
657
658 2015-05-15  H.J. Lu  <hongjiu.lu@intel.com>
659
660         * config/tc-i386.c (shared): New.
661         (OPTION_MSHARED): Likewise.
662         (elf_symbol_resolved_in_segment_p): Add relocation argument.
663         Check PLT relocations and shared.
664         (md_estimate_size_before_relax): Pass fragP->fr_var to
665         elf_symbol_resolved_in_segment_p.
666         (md_longopts): Add -mshared.
667         (md_show_usage): Likewise.
668         (md_parse_option): Handle OPTION_MSHARED.
669         * doc/c-i386.texi: Document -mshared.
670
671 2015-05-14  H.J. Lu  <hongjiu.lu@intel.com>
672
673         * write.c (compress_debug): Don't write the zlib header, which
674         is handled by bfd_update_compression_header.
675
676 2015-05-13  Max Filippov  <jcmvbkbc@gmail.com>
677
678         * config/tc-xtensa.c (xtensa_relax_frag): Allow trampoline to be
679         closer than J_RANGE / 2 to jump frag.
680
681 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
682
683         * configure.tgt (arch): Set to iamcu for i386-*-elfiamcu target.
684         * config/tc-i386.c (i386_mach): Support iamcu.
685         (i386_target_format): Likewise.
686
687 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
688
689         * config/tc-i386.c (cpu_arch): Add iamcu.
690         (i386_align_code): Handle PROCESSOR_IAMCU.
691         (i386_arch): Likewise.
692         (i386_mach): Likewise.
693         (i386_target_format): Likewise.
694         (valid_iamcu_cpu_flags): New function.
695         (check_cpu_arch_compatible): Only allow Intel MCU instructions
696         when targeting Intel MCU.
697         (set_cpu_arch): Call valid_iamcu_cpu_flags to check if CPU flags
698         are valid for Intel MCU.
699         (md_parse_option): Likewise.
700         * tc-i386.h (ELF_TARGET_IAMCU_FORMAT): New.
701         (processor_type): Add PROCESSOR_IAMCU.
702         * doc/c-i386.texi: Document iamcu.
703
704 2015-05-08  Nick Clifton  <nickc@redhat.com>
705
706         PR gas/18347
707         * config/tc-arm.h (TC_EQUAL_IN_INSN): Define.
708         * config/tc-arm.c (arm_tc_equal_in_insn): New function.  Move
709         the symbol name checking code to here from...
710         (md_undefined_symbo): ... here.
711
712 2015-05-07  H.J. Lu  <hongjiu.lu@intel.com>
713
714         * config/tc-i386.c (elf_symbol_resolved_in_segment_p): New.
715         (md_estimate_size_before_relax): Use it.
716
717 2015-05-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
718
719         * config/tc-sparc.c: Typo in comment fixed.
720
721 2015-05-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
722
723         * config/tc-sparc.c (sparc_ip): Support the %ncc "natural"
724         condition codes
725         * doc/c-sparc.texi (Sparc-Regs): Document %ncc.
726
727 2015-05-06  Nick Clifton  <nickc@redhat.com>
728
729         * doc/as.texinfo (Dollar Local Labels): Note that these are only
730         supported on some targets.
731
732 2015-05-06  Renlin Li  <renlin.li@arm.com>
733
734         * config/tc-aarch64.c (mapping_state): Recording alignment before exit.
735
736 2015-05-05  Renlin Li  <renlin.li@arm.com>
737
738         * config/tc-aarch64.c (aarch64_init_frag): Always generate mapping
739         symbols.
740
741 2015-05-05  Nick Clifton  <nickc@redhat.com>
742
743         * config/tc-msp430.c (MAX_OP_LEN): Increase to 4096.
744         (msp430_make_init_symbols): New function.
745         (msp430_section): Call it.
746         (msp430_frob_section): Likewise.
747
748 2015-05-02  Max Filippov  <jcmvbkbc@gmail.com>
749
750         * config/tc-xtensa.c (cached_fixupS, fixup_cacheS): New typedefs.
751         (struct cached_fixup, struct fixup_cache): New structures.
752         (fixup_order, xtensa_make_cached_fixup),
753         (xtensa_realloc_fixup_cache, xtensa_cache_relaxable_fixups),
754         (xtensa_find_first_cached_fixup, xtensa_delete_cached_fixup),
755         (xtensa_add_cached_fixup): New functions.
756         (xtensa_relax_frag): Cache fixups pointing at potentially
757         oversized jumps at the beginning of every relaxation pass. Only
758         check subset of this cache in the reach of single jump from the
759         trampoline frag currently being relaxed.
760
761 2015-05-01  Nick Clifton  <nickc@redhat.com>
762
763         * config/rl78-parse.y (MULU): Remove ISA_G14.
764         (MULH, DIVHU, DIVWU, MACHI, MACH): Update error strings.
765
766 2015-05-01  H.J. Lu  <hongjiu.lu@intel.com>
767
768         * config/tc-i386.c (i386_elf_emit_arch_note): Removed.
769         * config/tc-i386.h (md_end): Likewise.
770         (i386_elf_emit_arch_note): Likewise.
771
772 2015-05-01  H.J. Lu  <hongjiu.lu@intel.com>
773
774         * configure.tgt: Support i386-*-elf*.
775
776 2015-04-30  DJ Delorie  <dj@redhat.com>
777
778         * config/rl78-defs.h (rl78_isa_g10): New.
779         (rl78_isa_g13): New.
780         (rl78_isa_g14): New.
781         * config/rl78-parse.y (ISA_G10): New.
782         (ISA_G13): New.
783         (ISA_G14): New.
784         (MULHU, MULH, MULU, DIVHU, DIVWU, MACHU, MACH): Use them.
785         * config/tc-rl78.c (rl78_isa_g10): New.
786         (rl78_isa_g13): New.
787         (rl78_isa_g14): New.
788
789 2015-04-30  H.J. Lu  <hongjiu.lu@intel.com>
790
791         * config/tc-i386.c (i386_target_format): Use "else if" on
792         cpu_arch_isa.
793
794 2015-04-30  Nick Clifton  <nickc@redhat.com>
795
796         PR gas/18347
797         * config/tc-arm.c (md_undefined_symbol): Issue a warning message
798         (if enabled) when the user creates a symbol with the same name as
799         an ARM instruction.
800         (flag_warn_syms): New static variable.
801         (arm_opts): Add mwarn-syms and mno-warn-syms.
802         * doc/c-arm.texi (ARM Options): Document the -m[no-]warn-syms
803         options.
804
805         PR gas/18353
806         * doc/as.texinfo (Zero): Add documentation of the .zero pseudo-op.
807
808 2015-04-29  Nick Clifton  <nickc@redhat.com>
809
810         PR 18256
811         * config/tc-arm.c (encode_arm_cp_address): Issue an error message
812         if the operand is neither a register nor a vector.
813
814 2015-04-29  Nick Clifton  <nickc@redhat.com>
815
816         * doc/as.texinfo (Set): Note that a symbol cannot be set multiple
817         times if the expression is not constant and the target uses linker
818         relaxation.
819
820 2015-04-28  Renlin Li  <renlin.li@arm.com>
821
822         * config/tc-arm.c (arm_init_frag): Always emit mapping symbols.
823
824 2015-04-28  Nick Clifton  <nickc@redhat.com>
825
826         PR 18313
827         * cond.c (s_if): Stop compile time warning about stopc being used
828         before it is set.
829         (s_ifc): Likewise.
830
831 2015-04-27  Renlin Li  <renlin.li@arm.com>
832
833         * config/tc-aarch64.c (s_aarch64_inst): Don't align code for non-text
834         section.
835         (md_assemble): Likewise, move the align code outside the loop.
836
837 2015-04-24  Jim Wilson  <jim.wilson@linaro.org>
838
839         * config/tc-aarch64.c (aarch64_cpus): Add CRC and CRYPTO features
840         for thunderx.
841
842 2015-04-24  Richard Earnshaw  <rearnsha@arm.com>
843
844         * config/tc-arm.h (arm_min): New function.
845         (SUB_SEGMENT_ALIGN): Define.
846
847 2015-04-23  Matthew Fortune  <matthew.fortune@imgtec.com>
848
849         * config/tc-mips.c (macro): State the recommended way of creating
850         32-bit or 64-bit addresses.
851
852 2015-04-23  Jan Beulich  <jbeulich@suse.com>
853
854         * config/tc-i386.c (match_mem_size): Also allow no size
855         specification when broadcasting.
856
857 2015-04-20  H.J. Lu  <hongjiu.lu@intel.com>
858
859         * doc/as.texinfo (Bundle directives): Shorten menu entry and
860         use @subsection.
861         (CFI directives): Use @subsection.
862         (SH-Dependent, SH64-Dependent): Moved after SCORE-Dependent.
863         * doc/c-i386.texi (i386-Mnemonics): Use @subsection.
864
865 2015-04-17  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
866
867         * config/tc-avr.c (create_record_for_frag): Rename link to
868         prop_rec_link.
869
870 2015-04-15  H.J. Lu  <hongjiu.lu@intel.com>
871
872         * NEWS: Mention
873         --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
874
875 2015-04-14  H.J. Lu  <hongjiu.lu@intel.com>
876
877         * as.h (compressed_debug_section_type): Removed.
878
879 2015-04-14  Nick Clifton  <nickc@redhat.com>
880
881         * config/tc-rl78.h (TC_LINKRELAX_FIXUP): Define.
882         (TC_FORCE_RELOCATION_SUB_SAME): Define.
883         (DWARF2_USE_FIXED_ADVANCE_PC): Define.
884
885 2015-04-10  Nick Clifton  <nickc@redhat.com>
886
887         PR binutils/18198
888         * doc/c-arm.texi (ARM Options): Add a note about the interaction of
889         the -EB option with the linker's --be8 option.
890
891 2015-04-09  Hans-Peter Nilsson  <hp@axis.com>
892
893         * doc/c-rx.texi: Fix markup typos in last change.
894
895 2015-04-09  Nick Clifton  <nickc@redhat.com>
896
897         * config/tc-rx.c (enum options): Add OPTION_DISALLOW_STRING_INSNS.
898         (md_longopts): Add -mno-allow-string-insns.
899         (md_parse_option): Handle -mno-allow-string-insns.
900         (md_show_usage): Mention -mno-allow-string-insns.
901         (rx_note_string_insn_use): New function.  Produces an error
902         message if a string insn is used when it is not allowed.
903         * config/rx-parse.y (SCMPU): Call rx_note_string_insn_use.
904         (SMOVU, SMOVB, SMOVF, SUNTIL, SWHILE, RMPA): Likewise.
905         * config/rx-defs.h (rx_note_string_insn_use): Prototype.
906         * doc/c-rx.texi: Document -mno-allow-string-insns.
907
908 2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
909
910         * as.c (show_usage): Update --compress-debug-sections.
911         (std_longopts): Use optional_argument on compress-debug-sections.
912         (parse_args): Handle
913         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
914         * as.h (compressed_debug_section_type): New.
915         (flag_compress_debug): Change type to compressed_debug_section_type.
916         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
917         * write.c (compress_debug): Set BFD_COMPRESS_GABI for
918         --compress-debug-sections=zlib-gabi.  Call
919         bfd_get_compression_header_size to get compression header size.
920         Don't rename section name for --compress-debug-sections=zlib-gabi.
921         * config/tc-i386.c (compressed_debug_section_type): Set to
922         COMPRESS_DEBUG_ZLIB.
923         * doc/as.texinfo: Document
924         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
925
926 2015-04-07  Renlin Li  <renlin.li@arm.com>
927
928         * config/tc-aarch64.c (mapping_state): Use subseg_text_p.
929         (s_aarch64_inst): Likewise.
930         (md_assemble): Likewise.
931
932 2015-04-06  H.J. Lu  <hongjiu.lu@intel.com>
933
934         * write.c (compress_debug): Use bfd_putb64 to write uncompressed
935         section size.
936
937 2015-04-05  H.J. Lu  <hongjiu.lu@intel.com>
938
939         * write.c (compress_debug): Don't write the zlib header if
940         compressed section size is the same as before compression.
941
942 2015-04-02  Nick Clifton  <nickc@redhat.com>
943
944         PR gas/18189
945         * config/tc-microblaze.c (parse_imm): Use offsetT as the type for
946         min and max parameters.  Sign extend values before testing.
947
948 2015-04-02  Renlin Li  <renlin.li@arm.com>
949
950         * config/tc-aarch64.c (mapping_state): Emit MAP_DATA within text section in order.
951         (mapping_state_2): Don't emit MAP_DATA here.
952         (s_aarch64_inst): Align frag during state transition.
953         (md_assemble): Likewise.
954
955 2015-04-02  Ed Maste  <emaste@freebsd.org>
956
957         * config/tc-aarch64.c (set_error_kind): Delete.
958         (set_error_message): Delete.
959
960 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
961
962         * configure: Regenerated.
963
964 2015-04-01  Evandro Menezes  <e.menezes@samsung.com>
965
966         * config/tc-aarch64.c: Add support for Samsung Exynos M1.
967         * doc/c-aarch64.texi (-mcpu=): Add "exynos-m1".
968
969 2015-04-01  Evandro Menezes  <e.menezes@samsung.com>
970
971         * config/tc-arm.c: Add support for Samsung Exynos M1.
972         * doc/c-arm.texi (-mcpu=): Add "exynos-m1".
973
974 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
975
976         * configure: Regenerated.
977
978 2015-03-31  Ed Schouten  <ed@nuxi.nl>
979
980         * configure.tgt (fmt): Set to elf for *-*-cloudabi*.
981
982 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
983
984         * configure.ac: Revert the AM_ZLIB change.
985         * Makefile.in: Regenerated.
986         * aclocal.m4: Likewise.
987         * configure: Likewise.
988
989 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
990
991         * Makefile.am (ZLIBINC): New.
992         (AM_CFLAGS): Add $(ZLIBINC).
993         * as.c: (show_usage): Don't check HAVE_ZLIB_H.
994         (parse_args): Likewise.
995         * compress-debug.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
996         (compress_init): Don't check HAVE_ZLIB_H.
997         (compress_data): Likewise.
998         (compress_finish): Likewise.
999         * configure.ac (AM_ZLIB): Removed.
1000         (zlibinc): New.  AC_SUBST.
1001         Add --with-system-zlib.
1002         * Makefile.in: Regenerated.
1003         * config.in: Likewise.
1004         * configure: Likewise.
1005         * doc/Makefile.in: Likewise.
1006
1007 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1008
1009         * config/tc-i386.c (cpu_flags_set): Removed.
1010
1011 2015-03-25  Renlin Li  <renlin.li@arm.com>
1012
1013         * config/tc-aarch64.c (mapping_state): Remove first MAP_DATA emitting
1014         code.
1015         (mapping_state_2): Emit first MAP_DATA symbol here.
1016
1017 2015-03-24  H.J. Lu  <hongjiu.lu@intel.com>
1018
1019         PR gas/18087
1020         * write.c (compress_debug): Don't write the zlib header if
1021         compression didn't make the section smaller.
1022
1023 2015-03-24  Terry Guo  <terry.guo@arm.com>
1024
1025         * config/tc-arm.c (no_cpu_selected): Use new macro to compare
1026         features.
1027         (parse_psr): Likewise.
1028         (do_t_mrs): Likewise.
1029         (do_t_msr): Likewise.
1030         (static const arm_feature_set arm_ext_*): Defined with new macros.
1031         (static const arm_feature_set arm_cext_*): Likewise.
1032         (static const arm_feature_set fpu_fpa_ext_*): Likewise.
1033         (static const arm_feature_set fpu_vfp_ext_*): Likewise.
1034         (deprecated_coproc_regs): Likewise.
1035         (UL_BARRIER): Likewise.
1036         (barrier_opt_names): Likewise.
1037         (arm_cpus): Likewise.
1038         (arm_extensions): Likewise.
1039
1040 2015-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1041
1042         * config/tc-i386.c (i386_align_code): Limit multi-byte nop
1043         instructions to 10 bytes.
1044
1045 2015-03-19  Nick Clifton  <nickc@redhat.com>
1046
1047         * config/tc-rl78.c (enum options): Add G13 and G14.
1048         (md_longopts): Add -mg13 and -mg14.
1049         (md_parse_option): Handle -mg13 and -mg14.
1050         (md_show_usage): List -mg13 and -mg14.
1051         * doc/c-rl78.texi: Add description of -mg13 and -mg14 options.
1052
1053 2015-03-18  Jon Turney  <jon.turney@dronecode.org.uk>
1054             Nick Clifton  <nickc@redhat.com>
1055
1056         PR binutils/18087
1057         * doc/as.texinfo: Note that when gas compresses debug sections the
1058         compression is only performed if it makes the section smaller.
1059         * write.c (compress_debug): Do not compress a debug section if
1060         doing so would make it larger.
1061
1062 2015-03-17  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
1063
1064         * config/tc-i386.c (cpu_arch): Add PROCESSOR_ZNVER flags.
1065         (i386_align_code): Add PROCESSOR_ZNVER cases.
1066         * config/tc-i386.h (processor_type): Add PROCESSOR_ZNVER.
1067         * doc/c-i386.texi: Add znver1 and clzero.
1068
1069 2015-03-16  Nick Clifton  <nickc@redhat.com>
1070
1071         * dwarf2dbg.c (out_header): Remove spurious #if 1.
1072
1073 2015-03-13  Jiong Wang  <jiong.wang@arm.com>
1074
1075         * config/tc-aarch64.c (warn_unpredictable_ldst): Don't warn on reg
1076         number 31.
1077
1078 2015-03-13  Jiong Wang  <jiong.wang@arm.com>
1079
1080         * config/tc-aarch64.h (SUB_SEGMENT_ALIGN): Define to be zero.
1081
1082 2015-03-12  Andrew Bennett  <andrew.bennett@imgtec.com>
1083
1084         * config/tc-mips.c (mips_cpu_info_table): Add i6400 entry.
1085         * doc/c-mips.texi: Document i6400 -march option.
1086
1087 2015-03-12  Nick Clifton  <nickc@redhat.com>
1088
1089         PR gas/17444
1090         * config/tc-arm.h (MD_APPLY_SYM_VALUE): Pass the current segment
1091         to arm_apply_sym_value.  Update prototype.
1092         * config/tc-arm.c (arm_apply_sym_value): Add segment argument.
1093         Do not apply the value if the symbol is in a different segment to
1094         the current segment.
1095
1096 2015-03-11  Alan Modra  <amodra@gmail.com>
1097
1098         * config/tc-ppc.c (md_assemble): Don't abort on 8 byte insn fixups.
1099         (md_apply_fix): Report an error on data-only fixups used with insns.
1100
1101 2015-03-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1102
1103         * config/tc-s390.c (md_gather_operands): Check for valid
1104         length field operands.
1105
1106 2015-03-10  Michael Perkins  <perkinsmg75@yahoo.co.uk>
1107
1108         * config/tc-arm.c (parse_operands): Fix bug setting writeback
1109         values for '^' on OP_REGLSTs.
1110         (do_push_pop): Add new writeback constraint.
1111
1112 2015-03-10  Renlin Li  <renlin.li@arm.com>
1113
1114         * config/tc-arm.c (mapping_state): Remove first MAP_DATA emitting code.
1115         (mapping_state_2): Emit first MAP_DATA symbol here.
1116
1117 2015-03-10  Matthew Wahab  <matthew.wahab@arm.com>
1118
1119         * config/tc-aarch64.c (mapping_state): Set minimum alignment for
1120         code sections.
1121
1122 2015-03-10  Nick Clifton  <nickc@redhat.com>
1123
1124         PR gas/17852
1125         * config/tc-arm.c (md_begin): Ensure that selected_cpu is
1126         initialised when CPU_DEFAULT is defined.
1127
1128 2015-03-05  Nick Clifton  <nickc@redhat.com>
1129
1130         * config/tc-v850.c (md_parse_option): Fix code to set or clear
1131         EF_RH850_DATA_ALIGN8 bit in ELF header, based upon the use of the
1132         -m8byte-align and -m4byte-align command line options.
1133
1134 2015-03-04  Richard Sandiford  <richard.sandiford@arm.com>
1135
1136         PR gas/17843
1137         * config/tc-aarch64.c (process_movw_reloc_info): Allow
1138         R_AARCH64_TLSLE_MOVW_TPREL_G0_NC and R_AARCH64_TLSLE_MOVW_TPREL_G1_NC
1139         for MOVK.
1140
1141 2015-02-28  Alan Modra  <amodra@gmail.com>
1142
1143         * write.c (SUB_SEGMENT_ALIGN): Don't pad non-code sections at
1144         end to their alignment.
1145
1146 2015-02-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1147
1148         * config/tc-aarch64.c (reloc_table_entry): Generate
1149         BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21.
1150         (md_apply_fix, aarch64_force_relocation): Handle
1151         BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
1152
1153 2015-02-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1154
1155         * config/tc-aarch64.c (reloc_table_entry): Generate
1156         BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
1157         (md_apply_fix, aarch64_force_relocation): Handle
1158         BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
1159
1160 2015-02-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1161
1162         * config/tc-aarch64.c (reloc_table_entry): Generate
1163         BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19.
1164         (md_apply_fix, aarch64_force_relocation): Handle
1165         BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19.
1166
1167 2015-02-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1168
1169         * config/tc-aarch64.c (reloc_table_entry): Add ld_literal_type.
1170         (reloc_table): Likewise.
1171         (parse_address_main): Use ld_literal_type.
1172
1173 2015-02-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1174
1175         * config/tc-aarch64.c (reloc_table_entry): Add adr_type.
1176         (reloc_table): Likewise.
1177         (parse_address_main): Use adr_type.
1178
1179 2015-02-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1180
1181         * config/tc-aarch64.c (aarch64_arch_any, aarch64_arch_node): Remove.
1182
1183 2015-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
1184
1185         * config/tc-avr.c: Add elf32-avr.h include.
1186         (struct avr_property_record_link): New structure.
1187         (avr_output_property_section_header): New function.
1188         (avr_record_size): New function.
1189         (avr_output_property_record): New function.
1190         (avr_create_property_section): New function.
1191         (avr_handle_align): New function.
1192         (exclude_section_from_property_tables): New function.
1193         (create_record_for_frag): New function.
1194         (append_records_for_section): New function.
1195         (avr_create_and_fill_property_section): New function.
1196         (avr_post_relax_hook): New function.
1197         * config/tc-avr.h (md_post_relax_hook): Define.
1198         (avr_post_relax_hook): Declare.
1199         (HANDLE_ALIGN): Define.
1200         (avr_handle_align): Declare.
1201         (strut avr_frag_data): New structure.
1202         (TC_FRAG_TYPE): Define.
1203
1204 2015-02-25  Matthew Wahab  <matthew.wahab@arm.com>
1205
1206         * doc/c-arm.texi (-mcpu=): Add cortex-a53, cortex-a57 and
1207         cortex-a72.
1208
1209 2015-02-24  Nick Clifton  <nickc@redhat.com>
1210
1211         * config/tc-v850.c (soft_float): New variable.
1212         (v850_data_8): New variable.
1213         (md_show_usage): Add -msoft-float/-mhard-float.
1214         (md_parse_option): Likewise.
1215         (md_begin): Set the default value of soft_float.
1216         (v850_md_end): New function.  Creates a note section.
1217         * config/tc-v850.h (md_end): Define.
1218         * doc/c-v850.texi: Document -msoft-float/-mhard-float.
1219
1220 2015-02-23  Yoshinori Sato  <ysato@users.sourceforge.jp>
1221
1222         * config/tc-h8300.c (line_separater_chars): Add a version for
1223         h8300-linux that includes a separator.
1224         (default_mach): New variable.
1225         (md_main): Use it.
1226         (md_longopts): Add '--march' option.
1227         (md_parse_option): Parse the new option.
1228         * config/tc-h8300.h (TARGET_FORMAT): Add elf32-h8300-linux.
1229         * configure.tgt: Add h8300-*-linux
1230         * doc/c-h8300.texi: Document --march.
1231
1232 2015-02-23  Nick Clifton  <nickc@redhat.com>
1233
1234         PR 17940
1235         * dwarf2dbg.c (out_header): When generating dwarf sections use
1236         real symbols not temps for the start and end symbols.
1237         * config/tc-msp430.h (TC_FORCE_RELOCATION_SUB_SAME): Also prevent
1238         adjustments to relocations in debug sections.
1239         (TC_LINKRELAX_FIXUP): Likewise.
1240
1241 2015-02-19  Alan Modra  <amodra@gmail.com>
1242
1243         * doc/as.texinfo (Local Symbol Names): Don't use ':' in pxref.
1244         * doc/c-i386.texi: Reorder i386-Bugs after i386-Arch.
1245
1246 2015-02-11  Matthew Wahab  <matthew.wahab@arm.com>
1247
1248         * config/tc-aarch64.c (aarch64_cpus): Fix code formatting.
1249
1250 2015-02-11  Matthew Wahab  <matthew.wahab@arm.com>
1251
1252         * config/tc-arm.c: Add support for Cortex-A72.
1253
1254 2015-02-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1255
1256         * config/tc-arm.c (warn_deprecated_sp): Use as_tsktsk instead
1257         of as_warn for deprecation messages.
1258         (encode_arm_addr_mode_2): Likewise.
1259         (check_obsolete): Likewise.
1260         (do_rd_rm_rn): Likewise.
1261         (do_co_reg): Likewise.
1262         (do_setend): Likewise.
1263         (do_t_mov_cmp): Likewise.
1264         (do_neon_ldr_str): Likewise.
1265         (opcode_lookup): Likewise.
1266         (if_fsm_post_encode): Likewise.
1267         (md_assemble): Likewise.
1268
1269 2015-02-06  Jan Beulich  <jbeulich@suse.com>
1270
1271         * dw2gencfi.c (select_cie_for_fde): Also bail on CFI_label.
1272         (cfi_change_reg_numbers): Also do nothing for CFI_label.
1273         (cfi_pseudo_table): Also handle .cfi_label when not supporting
1274         CFI directives.
1275
1276 2015-02-05  Alan Modra  <amodra@gmail.com>
1277
1278         * config/tc-msp430.c (md_assemble): Correct size passed to
1279         extract_cmd.  Remove index check.
1280
1281 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
1282
1283         * config/tc-aarch64.c (aarch64_cpus): Add support for Cortex-A72.
1284         * doc/c-aarch64.texi (-mcpu=): Add "cortex-a72".
1285
1286 2015-02-04  Nick Clifton  <nickc@redhat.com>
1287
1288         * config/rl78-parse.y (addsubw): Fix encoding of [HL] variant of
1289         these instructions.
1290
1291 2015-02-03  Renlin Li  <renlin.li@arm.com>
1292
1293         * doc/c-aarch64.texi (.arch): Document the directive.
1294         (.arch_extension): Likewise.
1295
1296 2015-02-03  Nick Clifton  <nickc@redhat.com>
1297
1298         * config/tc-rl78.h (TC_PARSE_CONS_EXPRESSION): Define.
1299
1300 2015-01-28  James Bowman  <james.bowman@ftdichip.com>
1301
1302         * Makefile.am: Add FT32 files.
1303         * config/tc-ft32.c: New file.
1304         * config/tc-ft32.h: New file.
1305         * configure.tgt: Add FT32 support.
1306         * Makefile.in: Regenerate.
1307         * po/POTFILES.in: Regenerate.
1308
1309 2015-01-27  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
1310
1311         * config/tc-nds32.c (do_pseudo_la_internal): Limit the second argument
1312         of instruction la to a symbol.
1313
1314 2015-01-27  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
1315
1316         * config/tc-nds32.c (nds32_parse_name): Ignore when the input is
1317         section name.
1318
1319 2015-01-19  Alan Modra  <amodra@gmail.com>
1320
1321         * read.c (s_reloc): Match BFD_RELOC_NONE, BFD_RELOC{8,16,32,64}.
1322         * write.c (get_frag_for_reloc): Allow match just past end of frag.
1323
1324 2015-01-16  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1325
1326         * config/tc-s390.c (struct pd_reg): Remove.
1327         (pre_defined_registers): Remove.
1328         (REG_NAME_CNT): Remove.
1329         (reg_name_search): Calculate the register number instead of doing
1330         a lookup.
1331         (register_name, tc_s390_regname_to_dw2regnum): Adopt to the new
1332         reg_name_search signature.
1333         (s390_parse_cpu): Support the new arch string z13.
1334         (s390_insert_operand): Support for vector registers with the extra
1335         field for the fifth bit of each vector register operand.
1336         (md_gather_operand): Adjust to the new handling of optional
1337         parameters.
1338
1339         * doc/as.texinfo: Document the z13 cpu string.
1340
1341 2015-01-13  Matthew Wahab  <matthew.wahab@arm.com>
1342
1343         * config/tc-arm.c (parse_ifimm_zero): Accept #0x0 as a synonym for
1344         #0, restoring previous behaviour.
1345
1346 2015-01-12  Jan Beulich  <jbeulich@suse.com>
1347
1348         * gas/dw2gencfi.c (cfi_add_label, dot_cfi_label): New.
1349         (cfi_pseudo_table): Add "cfi_label".
1350         (output_cfi_insn): Handle CFI_label.
1351         (select_cie_for_fde): Als terminate CIE when encountering
1352         CFI_label.
1353         * dw2gencfi.h (cfi_add_label): Declare.
1354         (struct cfi_insn_data): New member "sym_name".
1355         (CFI_label): New.
1356         * read.c (read_symbol_name): Drop "static".
1357         * read.h (read_symbol_name): Declare.
1358
1359 2015-01-12  Jan Beulich  <jbeulich@suse.com>
1360
1361         * gas/config/tc-arm.c (do_neon_shl_imm): Check immediate range.
1362         (do_neon_qshl_imm): Likewise.
1363
1364 2015-01-12  Alan Modra  <amodra@gmail.com>
1365
1366         * read.c (s_altmacro, s_reloc): Make definition static.
1367
1368 2015-01-10  Andrew Burgess  <andrew.burgess@embecosm.com>
1369
1370         * config/tc-avr.c (md_apply_fix): Update the contents of VALP for
1371         diff fixups.
1372
1373 2015-01-09  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1374
1375         * config/tc-arm.c (arm_cpus): Add support for APM X-Gene 1 and
1376         X-Gene 2.
1377         * doc/c-arm.texi (ARM Options): Mention xgene1 and xgene2.
1378
1379 2015-01-07  Jan Beulich <jbeulich@suse.com>
1380
1381         * config/tc-arm.c (struct arm_option_extension_value_table):
1382         Split field "value" into fields "merge_value" and "clear_value".
1383         (arm_extensions): Adjust initializer accordingly.
1384
1385 2015-01-01  Alan Modra  <amodra@gmail.com>
1386
1387         * as.c (parse_args): Just print current year.
1388
1389 2015-01-01  Alan Modra  <amodra@gmail.com>
1390
1391         Update year range in copyright notice of all files.
1392
1393 For older changes see ChangeLog-2014
1394 \f
1395 Copyright (C) 2015 Free Software Foundation, Inc.
1396
1397 Copying and distribution of this file, with or without modification,
1398 are permitted in any medium without royalty provided the copyright
1399 notice and this notice are preserved.
1400
1401 Local Variables:
1402 mode: change-log
1403 left-margin: 8
1404 fill-column: 74
1405 version-control: never
1406 End: