Implement RDRSEED, ADX and PRFCHW instructions
[external/binutils.git] / gas / ChangeLog
1 2012-07-16  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2
3         * config/tc-i386.c: Add ADX, RDSEED and PRFCHW asm directives.
4         * doc/c-i386.texi: Document the new directives.
5
6 2012-07-02  Nick Clifton  <nickc@redhat.com>
7
8         * write.c (fixup_segment): Only perform the subtraction of an
9         fx_subsy symbol if MD_APPLY_SYM_VALUE allows it and the symbol is
10         properly defined.
11         * config/tc-msp430.h (MD_APPLY_SYM_VALUE): Define.
12
13 2012-06-30  Alan Modra  <amodra@gmail.com>
14
15         PR gas/14315
16         * config/obj-elf.c (obj_elf_weak): Don't set local.
17
18 2012-06-30  Johan Olmutz Nielsen  <jnielsen@ddci.com>
19
20         * frags.h (frag_offset_fixed_p): Update prototype.
21         * frags.c (frag_offset_fixed_p): Change type of "offset" to offsetT.
22         * expr.c (expr, resolve_expression): Likewise for frag_off var.
23
24 2012-06-29  Nick Clifton  <nickc@redhat.com>
25
26         PR gas/14263
27         * config/tc-arm.c (parse_operands): Initialise val.
28
29 2012-06-28  Nick Clifton  <nickc@redhat.com>
30
31         PR gas/14260
32         * config/tc-arm.c (encode_arm_addr_mode_common): Generate an error
33         message if literal pool addressing is used.
34
35 2012-06-28  Nick Clifton  <nickc@redhat.com>
36
37         * dwarf2dbg.c (DWARF2_USE_FIXED_ADVANCE_PC): Enable when using
38         linker relaxation.
39         (dwarf2_gen_line_info): Generate real, local, labels for line
40         numbers.
41         (dwarf2dbg_convert_frag): Do not finalize the computation of the
42         frag's symbol value when linker relaxation is enabled.
43         (ADDR_DELTA_LIMIT): Define.
44         (size_fixed_inc_line_addr): Use ADDR_DELTA_LIMIT.
45         (emit_fixed_inc_line_addr): Likewise.
46         * write.c (fixup_segment): If the subtraction of two symbols
47         cannot be resolved but is valid, then prevent bogus range warnings
48         by pre-biasing add_number.
49         * config/tc-h8300.h (DWARF2_USE_FIXED_ADVANCE_PC): Define to 0.
50
51 2012-06-22  Roland McGrath  <mcgrathr@google.com>
52
53         * NEWS: Mention 'rep ret' too.
54
55         * config/tc-i386.c (parse_insn): Don't complain about REP prefix
56         when the template has opcode_modifier.repprefixok set.
57         * NEWS: Mention the change.
58
59 2012-06-18  Iain Sandoe  <iain@codesourcery.com>
60
61         * configure.in: Check DECLS for free, getenv, malloc, realloc,
62         * configure: Regenerate.
63         * config.in: Likewise.
64
65 2012-06-13  H.J. Lu  <hongjiu.lu@intel.com>
66
67         * config/tc-i386.c (x86_address_bytes): New.
68         * config/tc-i386.h (TC_ADDRESS_BYTES): Likewise.
69         (x86_address_bytes): Likewise.
70
71 2012-06-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
72
73         PR gas/12698
74         * config/tc-arm.c (do_t_mrs): Do not require an m-profile
75         architecure when assembling for all archiectures.
76         (do_t_msr): Likewise.
77
78 2012-06-11  Georg-Johann Lay  <avr@gjlay.de>
79
80         PR 13503
81         * config/tc-avr.c (exp_mod): Fix typo introduced in 1.82
82         from 2012-05-16.
83
84 2012-06-09  H.J. Lu  <hongjiu.lu@intel.com>
85
86         * input-scrub.c (input_scrub_include_sb): Use sb_build to
87         allocate sufficient space for from_sb.  Use sb_terminate to
88         terminate string.
89         * read.c (read_a_source_file): Use sb_build to allocate
90         sufficient space and replace sb_add_string with sb_add_buffer.
91         (s_macro): Likewise.
92         (input_scrub_insert_line): Likewise.
93         (s_irp): Use sb_build to allocate sufficient space.
94         (do_repeat): Use sb_build to allocate sufficient space
95         for many.
96         * sb.c (sb_build): Remove static.
97         * sb.h (sb_build): New prototype.
98
99 2012-06-09  Alan Modra  <amodra@gmail.com>
100
101         * sb.c: Include limits.h.
102         (dsize): Delete.
103         (MALLOC_OVERHEAD, INIT_ALLOC): Define.
104         (sb_new): Use INIT_ALLOC.
105         (sb_check): Modify allocation strategy using MALLOC_OVERHEAD.
106         (sb_terminate): Don't use sb_add_char.
107
108 2012-06-07  Alan Modra  <amodra@gmail.com>
109
110         PR gas/14201
111         * sb.h (sb_max_power_two): Delete.
112         (struct sb): Delete "item" and "pot".  Make "len" a size_t.  Add "max".
113         (sb_element): Delete.
114         (sb_add_char, sb_add_buffer, sb_skip_comma, sb_skip_write): Update
115         prototypes.
116         * sb.c (string_count, free_list): Delete.
117         (sb_build, sb_kill, sb_check): Rewrite.
118         (scrub_from_sb, sb_add_char, sb_add_string, sb_add_buffer,
119         sb_skip_white, sb_skip_comma): Replace assorted int params,
120         vars and return types with size_t.
121         * input-scrub.c: Likewise.
122         * macro.c: Likewise.
123         * macro.h: Likewise.
124         * as.c: Likewise.
125         * as.h: Likewise.
126         * input-file.h: Likewise.
127         * input-file.c: Likewise.
128         * read.c: Likewise.
129         * app.c: ..or ptrdiff_t.
130         * input-file.c (input_file_get): Use ferror.
131         (input_file_give_next_buffer): Use input_file_get.
132
133 2012-05-29  Roland McGrath  <mcgrathr@google.com>
134
135         * read.c [HANDLE_BUNDLE] (bundle_lock_depth): New variable.
136         (read_a_source_file) [HANDLE_BUNDLE]: Reset it.
137         [HANDLE_BUNDLE] (s_bundle_lock, s_bundle_unlock): Allow nested
138         pairs.
139
140 2012-05-28  Nick Clifton  <nickc@redhat.com>
141
142         * read.c (read_symbol_name): New function.  Reads a symbol names.
143         Allows escape codes in names.
144         (s_comm_internal): Use read_symbol_name.
145         (s_globl, s_lsym, s_set, s_weakref): Likewise.
146         * doc/as.texinfo: Document support for multibyte characters in
147         symbol names.
148
149 2012-05-21  Mike Frysinger  <vapier@gentoo.org>
150
151         * config/tc-mips.c (mips_after_parse_args): Assert that arch_info
152         is non-NULL.
153
154 2012-05-19  Alan Modra  <amodra@gmail.com>
155
156         * config/obj-elf.c (obj_elf_section): Cater for TC_KEEP_OPERAND_SPACES
157         targets when checking for "comdat".
158
159 2012-05-19  Alan Modra  <amodra@gmail.com>
160
161         * config/tc-dlx.c (s_proc): Don't use asprintf.
162
163 2012-05-18  Alan Modra  <amodra@gmail.com>
164
165         * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf
166         return value.
167
168 2012-05-18  James Lemke  <jwlemke@codesourcery.com>
169             Alan Modra  <amodra@gmail.com>
170
171         * config/tc-ppc.c: Don't capitalise error and warning messages.
172         (md_parse_option): Add checks for -a32 -mvle.
173
174 2012-05-18  Alan Modra  <amodra@gmail.com>
175
176         * config/obj-evax.c: Include as.h first.
177
178 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
179
180         * aclocal.m4: Regenerate.
181         * configure: Regenerate.
182         * Makefile.in: Regenerate.
183
184 2012-05-17  Daniel Richard G.  <skunk@iskunk.org>
185             Nick Clifton  <nickc@redhat.com>
186
187         PR 14072
188         * configure.in: Add check that sysdep.h has been included before
189         any system header files.
190         * configure: Regenerate.
191         * config.in: Regenerate.
192         * aclocal.m4: Regenerate.
193         * Makefile.am: Use wrappers around C files generated by flex.
194         * Makefile.in: Regenerate.
195         * doc/Makefile.in: Regenerate.
196         * itbl-lex-wrapper.c: New file.
197         * config/bfin-lex-wrapper.c: New file.
198         * cgen.c: Include as.h before setjmp.h.
199         * config/tc-dlx.c: Include as.h before any other header.
200         * config/tc-h8300.c: Likewise.
201         * config/tc-lm32.c: Likewise.
202         * config/tc-mep.c: Likewise.
203         * config/tc-microblaze.c: Likewise.
204         * config/tc-mmix.c: Likewise.
205         * config/tc-msp430.c: Likewise.
206         * config/tc-or32.c: Likewise.
207         * config/tc-tic4x.c: Likewise.
208         * config/tc-tic54x.c: Likewise.
209         * config/tc-xtensa.c: Likewise.
210
211 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
212
213         * config/tc-alpha.c (maybe_set_gp): Pass proper `bfd'
214         as the first argument for `bfd_get_section_vma'.
215
216 2012-05-16  Alberto Garcia  <agarcia@igalia.com>
217
218         PR gas/14082
219         * app.c (do_scrub_chars): Prevent possible out of bounds access to
220         lex[] array.
221
222 2012-05-16  Georg-Johann Lay  <avr@gjlay.de>
223
224         PR target/13503
225         * config/tc-avr.c (avr_cons_fix_new): Rename R_AVR_8_HHI8 to
226         R_AVR_8_HLO8.
227         (exp_mod_data) Ditto. And replace "hhi8" with "hlo8".
228         (md_apply_fix): Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
229
230 2012-05-16  Nathan Sidwell  <nathan@codesourcery.com>
231             Kwok Cheung Yeung  <kcy@codesourcery.com>
232
233         * config/tc-m68k.c (m68k_cpus): Add 51ag, 51je, 51jf, 51jg, 51mm,
234         51qm variants.
235
236 2012-05-15  James Murray <jsm@jsm-net.demon.co.uk>
237
238         * config/tc-m68hc11.c: Add S12X and XGATE co-processor support.
239         Add option to offset S12 addresses into XGATE memory space.
240         Tweak target flags to match other tools. (i.e. -m m68hc11).
241         * doc/as.texinfo: Mention new options.
242         * doc/c-m68hc11.texi: Document new options.
243         * NEWS: Mention new support.
244
245 2012-05-14  DJ Delorie  <dj@redhat.com>
246
247         * config/rx-parse.y (rx_range): declare.
248         (O1,O2,O3,O4): Add calls to rx_range.
249         (UO1,UO2,UO3): Likewise.
250         (IMM2,IMMB): Likewise.
251         (rx_range): New.
252
253         * config/tc-rx.c (rx_fetchalign): Declare.
254         (md_pseudo_table): Add .fetchalign.
255         (RX_NBASE_FETCHALIGN): New.
256         (fetchalign_bytes): New.
257         (rx_fetchalign): New.
258         (rx_frag_init): If a "magic" value is found, also init the
259         machine-specific data.
260         (md_assemble): Note following opcode size if called for.
261         (rx_next_opcode): New.
262         (rx_relax_frag): Support .fetchalign.
263         (md_convert_frag): Likewise.
264         * doc/c-rx.texi (RX-Directives): Add .fetchalign.
265
266 2012-05-14  James Lemke  <jwlemke@codesourcery.com>
267
268         * config/tc-ppc.c (insn_validate): New func of existing code to call..
269         (ppc_setup_opcodes): ..from 2 places here.
270         Revise for second (VLE) opcode table.
271         Add #ifdef'd code to print opcode tables.
272
273 2012-05-14  James Lemke  <jwlemke@codesourcery.com>
274
275         * config/tc-ppc.c (ppc_setup_opcodes): Allow out-of-order
276         for the VLE conditional branches.
277
278 2012-05-14  Catherine Moore  <clm@codesourcery.com>
279             Maciej W. Rozycki  <macro@codesourcery.com>
280             Rhonda Wittels  <rhonda@codesourcery.com>
281
282         * config/tc-ppc.c (PPC_VLE_SPLIT16A): New macro.
283         (PPC_VLE_SPLIT16D): New macro.
284         (PPC_VLE_LO16A): New macro.
285         (PPC_VLE_LO16D): New macro.
286         (PPC_VLE_HI16A): New macro.
287         (PPC_VLE_HI16D): New macro.
288         (PPC_VLE_HA16A): New macro.
289         (PPC_VLE_HA16D): New macro.
290         (PPC_APUINFO_VLE): New definition.
291         (md_chars_to_number): New function.
292         (md_parse_option): Check for combinations of little
293         endian and -mvle.
294         (md_show_usage): Document -mvle.
295         (ppc_arch): Recognize VLE.
296         (ppc_mach): Recognize bfd_mach_ppc_vle.
297         (ppc_setup_opcodes): Print the opcode table if
298         * config/tc-ppc.h (ppc_frag_check): Declare.
299         * doc/c-ppc.texi: Document -mvle.
300         * NEWS:  Mention PowerPC VLE port.
301
302 2012-05-14  Catherine Moore  <clm@codesourcery.com>
303
304         * config/tc-ppc.h (ppc_dw2_line_min_insn_length): Declare.
305         (DWARF2_LINE_MIN_INSN_LENGTH): Redefine.
306         * config/tc-ppc.c (ppc_dw2_line_min_insn_length): New.
307         * dwarf2dbg.c (scale_addr_delta): Handle values of 1
308         for DWARF2_LINE_MIN_INSN_LENGTH.
309
310 2012-05-12  H.J. Lu  <hongjiu.lu@intel.com>
311
312         * config/tc-i386.c (tc_gen_reloc): Remove x32 addend overflow
313         for BFD_RELOC_64.
314
315 2012-05-11  Daniel Richard G.  <skunk@iskunk.org>
316
317         PR binutils/14028
318         * configure.in: Invoke ACX_HEADER_STRING.
319         * configure: Regenerate.
320         * config.in: Regenerate.
321         * as.h: If STRINGS_WITH_STRING is defined then include both
322         string.h and strings.h.
323
324 2012-05-11  Georg-Johann Lay  <avr@gjlay.de
325
326         PR target/13503
327         * config/tc-avr.c (exp_mod_pm): Remove variable.
328         (exp_mod_data_t): New typedef.
329         (pexp_mod_data, exp_mod_data): New variables.
330         (avr_parse_cons_expression): Scan through exp_mod_data[] to find
331         data expression modifiers "pm", "gs", "lo8", hi8", "hhi8", "hh8"
332         and set pexp_mod_data accordingly to be used in avr_cons_fix_new.
333         (avr_cons_fix_new): Handle new data expression modifiers shipped
334         in pexp_mod_data.
335         (md_apply_fix): Handle BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
336         BFD_RELOC_AVR_8_HHI.
337
338 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
339
340         * config/tc-i386.c (tc_gen_reloc): Use bfd_signed_vma in x32
341         addend overflow check.
342
343 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
344
345         * config/tc-i386.c (tc_gen_reloc): Display signed hex number in
346         x32 addend overflow check.
347
348 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
349
350         * config/tc-i386.c (tc_gen_reloc): Use fits_in_signed_long.
351
352 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
353
354         * config/tc-i386.c (tc_gen_reloc): Check x32 addend overflow
355         for BFD_RELOC_64.
356
357 2012-05-08  Alan Modra  <amodra@gmail.com>
358
359         * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
360         LC and LANG environment vars.
361         * Makefile.in: Regenerate.
362
363 2012-05-07  Alan Modra  <amodra@gmail.com>
364
365         * Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
366         * Makefile.in: Regenerate.
367
368 2012-05-06  Arnold Metselaar <arnold_m@operamail.com>
369
370         * config/tc-z80.h(md_register_arithmetic): Define as 0.
371         * config/tc-z80.c(md_begin): Store register names in symbol table,
372         preventing usage as ordinary symbol.
373         * config/tc-z80.c(contains_register): New function.
374         * config/tc-z80.c(parse_exp2): Removed.
375         * config/tc-z80.c(parse_exp_not_indexed): New function.
376         * config/tc-z80.c(parse_exp): Add code to recogize indexed
377         addressing after parsing.
378         * config/tc-z80.c(emit_byte, emit_word): Use contains_register.
379         * config/tc-z80.c(emit_jp): Use parse_exp_not_indexed, simplify
380         condition for jump to register.
381         * config/tc-z80.c(emit_call, emit_jr, emit_ex, emit_rst): Use
382         parse_exp_not_indexed.
383
384 2012-05-05  Alan Modra  <amodra@gmail.com>
385
386         * ecoff.c: Replace all uses of bfd_abs_section, bfd_com_section,
387         bfd_und_section and bfd_ind_section with their _ptr variants, or
388         use corresponding bfd_is_* macros.
389         * symbols.c: Likewise.
390         * config/obj-aout.c: Likewise.
391         * config/obj-coff-seh.h: Likewise.
392         * config/tc-hppa.c: Likewise.
393         * config/tc-hppa.h: Likewise.
394         * config/tc-ia64.c: Likewise.
395         * config/tc-m32r.c: Likewise.
396         * config/tc-microblaze.c: Likewise.
397         * config/tc-mips.c: Likewise.
398         * config/tc-score.c: Likewise.
399         * config/tc-score7.c: Likewise.
400         * config/tc-tic6x.c: Likewise.
401
402 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
403
404         * configure.tgt: Support x86_64-*-linux-gnux32.
405
406 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
407
408         * config/tc-i386.c (match_template): Add `instruction' to
409         unsupported error message.
410
411 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
412
413         * config/tc-i386.c (output_insn): Reformat.
414
415 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
416
417         * config/tc-i386.c (output_insn): Remove the extra VEX check.
418
419 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
420
421         * config/tc-i386.c (match_template): Improve unsupported error
422         message.
423
424 2012-05-03  Sean Keys  <skeys@ipdatasys.com>
425
426         * configure, Makefile.in: Regenerate.
427         * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
428         * configure.tgt: Added cpu type.
429         Added files for XGATE assembler.
430         * config/tc-xgate.c: Assembler for XGATE.
431         * config/tc-xgate.h: Header definition for assembler
432         Added files for XGATE testsuite.
433         * doc/Makefile.am (CPU_DOCS): Added XGATE file.
434         * doc/c-xgate.texi: Document XGATE and XGATE port.
435         * doc/as.texinfo: Ditto.
436         * doc/all.texi: Ditto
437         * NEWS: Mention the new support.
438
439 2012-04-30  DJ Delorie  <dj@redhat.com>
440
441         * config/rx-parse.y (rx_intop): Add parameter for operation size.
442         Check for large positive constants really being small negative
443         ones.
444         (BRA, BSR): Update calls to rx_intop.
445         (immediate): Likewise.
446
447 2012-04-26  Mark Wielaard  <mjw@redhat.com>
448
449         * dwarf2dbg.c (DWARF2_ARANGES_VERSION): New define to 2.
450         (DWARF2_LINE_VERSION): Likewise.
451         (out_debug_line): Use DWARF2_LINE_VERSION not DWARF2_VERSION.
452         (out_debug_aranges): Use DWARF2_ARANGES_VERSION not DWARF2_VERSION.
453         (out_debug_abbrev): Use DW_FORM_data for DW_AT_high_pc when
454         DWARF2_VERSION >= 4.
455         (out_debug_info): Use difference between start and end as data
456         value for DW_AT_high_pc when DWARF2_VERSION >= 4.
457         * config/tc-ia64.h (DWARF2_LINE_VERSION): Override it.
458
459 2012-04-27  David S. Miller  <davem@davemloft.net>
460
461         * doc/c-sparc.text: Document %l34 and %h34.
462
463         * config/tc-sparc.c (v9a_asr_table): Add 'cfr'.
464
465         * config/tc-sparc.c (sparc_arch_table): Add HWCAP_PAUSE to sparc4,
466         v8pluse, v8plusv, v9e, and v9v.
467         (v9a_asr_table): Add 'pause'.
468
469         * config/tc-sparc.c (sparc_arch_table): Add HWCAP_CBCOND to
470         sparc4, v8pluse, v8plusv, v9e, and v9v.
471         (sparc_ip): Handle R_SPARC_5 of immediate constants inline in
472         order to accomodate cbcond which otherwise would require two
473         relocations to be handled in a single instruction..
474
475         * config/tc-sparc.c (sparc_ip): Likewise.  Accept instruction
476         names containing "_".
477         (sparc_arch_table): Add sparc4, v8pluse, and v9e.  Add crypto
478         hwcap masks to v8plusv and v9v.
479
480         * config/tc-sparc.c (sparc_arch_table): Rework to use HWCAP_*
481         masks.
482         (sparc_md_end): No longer need to translate hwcap_seen values into
483         ELF hwcap bits, they now match exactly.
484         (get_hwcap_name): Use HWCAP_* and handle new values.
485         (sparc_ip): Fetch hwcaps from insn->hwcaps instead of insn->flags.
486
487 2012-04-20  Tristan Gingold  <gingold@adacore.com>
488
489         * config/tc-ia64.c (obj_elf_vms_common): New function.
490         (md_pseudo_table): Add .vms_common pseudo.
491         * config/obj-elf.h (obj_elf_section_name): Add a prototype.
492         * config/obj-elf.c (obj_elf_section_name): Make it public.
493
494 2012-04-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
495
496         * config/tc-avr.c (md_apply_fix): Fix handling of BFD_RELOC32.
497
498 2012-04-12  David S. Miller  <davem@davemloft.net>
499
500         * config/tc-sparc.c (sparc_ip): Handle '=', "%h34", "%l34", and
501         BFD_RELOC_SPARC_H34.
502         (md_apply_fix): Handle BFD_RELOC_SPARC_WDISP10 and BFD_RELOC_SPARC_H34.
503         (tc_gen_reloc): Likewise.
504
505 2012-04-12  Roland McGrath  <mcgrathr@google.com>
506
507         * configure.tgt (arm-*-nacl*): Match it.
508         * config/te-nacl.h (FPU_DEFAULT, EABI_DEFAULT): Define.
509         (LOCAL_LABELS_DOLLAR): Define.
510         * config/tc-arm.c (elf32_arm_target_format) [TE_NACL]:
511         Use nacl format variants.
512
513 2012-04-12  Jie Zhang  <jie@codesourcery.com>
514             Meador Inge  <meadori@codesourcery.com>
515
516         * config/tc-arm.c (only_one_reg_in_list): New function.
517         (encode_ldmstm): Ditto.
518         (do_ldmstm): Use a different encoding when pushing or poping
519         a single register.
520         (A_COND_MASK): New macro.
521         (A_PUSH_POP_OP_MASK): Ditto.
522         (A1_OPCODE_PUSH): Ditto.
523         (A2_OPCODE_PUSH): Ditto.
524         (A2_OPCODE_POP): Ditto.
525
526 2012-04-06  Maciej W. Rozycki  <macro@linux-mips.org>
527
528         * doc/c-mips.texi (MIPS Opts): Correct -no-mfix-24k to
529         -mno-fix-24k.
530
531 2012-04-06  Roland McGrath  <mcgrathr@google.com>
532
533         * configure.in (AC_CHECK_HEADERS): Add locale.h.
534         * config.in: Regenerate.
535         * configure: Regenerate.
536
537 2012-04-05  Nick Clifton  <nickc@redhat.com>
538
539         * configure.in (AC_CHECK_FUNCS): Add setlocale.
540         (AM_LC_MESSAGES): Add.
541         * aclocal.m4: Regenerate.
542         * config.in: Regenerate.
543         * configure: Regenerate.
544
545 2012-04-03  DJ Delorie  <dj@redhat.com>
546
547         * config/rx-parse.y: Make the .L optional for ADC and SBB.
548
549 2012-04-02  DJ Delorie  <dj@redhat.com>
550
551         * config/rx-parse.y: IMM->IMM_, take an extra parameter for the
552         transfer size.
553         (IMM): New, call IMM_ with the default 32.
554         (IMMW,IMMB): Likewise, for 16 and 8.
555         (NIMM, MBIMM): Add size parameter.
556         (immediate): Likewise.  Allow 32768..65535 for 16-bit transfers.
557         (MOV.W): Use IMMW instead of IMM.
558
559         * config/rx-parse.y (ADC,SBB): ADC and SBB only allow .L.
560         (op_dp20_rm_l): New.
561         (op_dp20_rim_l): New.
562
563         * config/rx-parse.y (op_dp20_rms): Rename to op_dp20_rr, don't allow mem.
564         (ABS, NEG, NOT): These only take REG or REG,REG (rr, not rms).
565
566 2012-03-29  Terry Guo  <terry.guo@arm.com>
567
568         * config/tc-arm.c (arm_cpus): Add cortex-m0plus.
569         * doc/c-arm.texi (ARM Options): Document -mcpu=cortex-m0plus.
570
571 2012-03-23  Maxim Kuvyrkov  <maxim@codesourcery.com>
572
573         * config/tc-mips.c (mips_cpu_info_table): Add entry for Broadcom XLP.
574         * doc/c-mips.texi: Mention XLP.
575
576 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
577
578         [SH] Support the .uaquad and .8byte directives also for non-sh64
579         configurations.
580
581         * config/tc-sh.c (sh_cons_fix_new, md_apply_fix) [!HAVE_SH64]: Handle
582         BFD_RELOC_64.
583         * doc/c-sh64.texi (SH64 Machine Directives): Move .uaquad
584         description...
585         * doc/c-sh.texi (SH Machine Directives): ... here.
586
587 2012-03-20  Nick Clifton  <nickc@redhat.com>
588
589         * config/tc-arm.c (do_vmrs): Accept priviledged mode VFP system
590         registers.
591         (do_vmsr): Likewise.
592         (arm_opcode_insns): Do not default to using the FPSCR register in
593         the VMRS and VMSR registers.
594
595 2012-03-16  Roland McGrath  <mcgrathr@google.com>
596
597         * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT32, ELF_TARGET_FORMAT64):
598         Define for this case.
599         * configure.tgt (i386-*-nacl*): If ${cpu} is x86_64*, default to x32.
600
601 2012-03-16  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
602
603         * config/tc-arm.c (aeabi_set_public_attributes): Correct
604         handling of Tag_DIV_use.
605
606 2012-03-15  Thomas Schwinge  <thomas@codesourcery.com>
607
608         * doc/as.texinfo (Bundle directives): Fix typo.
609
610 2012-03-14  Ryan Mansfield  <rmansfield@qnx.com>
611
612         * doc/as.texinfo (Bundle directives): Replace @defn with @dfn.
613
614 2012-03-13  Roland McGrath  <mcgrathr@google.com>
615
616         * config/tc-arm.c (arm_frag_max_var): New function.
617         * config/tc-arm.h: Declare it.
618         (md_frag_max_var): New macro.
619
620         * config/tc-i386.c (i386_frag_max_var): New function.
621         * config/tc-i386.h: Declare it.
622         (md_frag_max_var): New macro.
623
624         * doc/as.texinfo (Bundle directives): New node.
625         (Pseudo Ops): Add it to the menu.
626         * NEWS: Mention new feature.
627         * read.c [md_frag_max_var] (HANDLE_BUNDLE): New macro.
628         [HANDLE_BUNDLE] (bundle_align_p2): New variable.
629         [HANDLE_BUNDLE] (bundle_lock_frchain, bundle_lock_frag): New variables.
630         [HANDLE_BUNDLE] (start_bundle, pending_bundle_size, finish_bundle):
631         New functions.
632         (assemble_one): New function if [HANDLE_BUNDLE], #define directly
633         to md_assembly if not.
634         (read_a_source_file): Call assemble_one in place of md_assemble.
635         (read_a_source_file) [HANDLE_BUNDLE]: Check for unterminated
636         .bundle_lock at end of processing.
637         [HANDLE_BUNDLE] (s_bundle_align_mode, s_bundle_lock, s_bundle_unlock):
638         New functions.
639         [HANDLE_BUNDLE] (potable): Add their entries.
640         * read.h: Declare new functions.
641
642 2012-03-10  Edmar Wienskoski  <edmar@freescale.com>
643
644         * config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.
645         (ppc_handle_align): Add termination nop opcode for e500mc family.
646         * doc/as.texinfo: Document options -me5500 and -me6500.
647         * doc/c-ppc.texi: Likewise.
648
649 2012-03-07  Nick Clifton  <nickc@redhat.com>
650
651         * config/tc-mn10300.c (other_registers): Add SSP and USP.
652         (md_assemble): Add support for TLS relocs.
653         (mn10300_parse_name): Likewise.
654
655 2012-02-27  Alan Modra  <amodra@gmail.com>
656
657         * config/tc-crx.c (check_range): Correct uint32_t misconceptions.
658
659 2012-02-27  Alan Modra  <amodra@gmail.com>
660
661         * config/tc-tic4x.c (tic4x_do_align): Remove ATTRIBUTE_UNUSED on
662         params.  Properly generate NOP pattern.  Comment reason for
663         subseg_text_p failure.
664
665 2012-02-27  Alan Modra  <amodra@gmail.com>
666
667         * config/tc-h8300.c (constant_fits_width_p): Trim constant to 32 bits
668         and sign extend before range tests.
669         (constant_fits_size_p): Similarly.
670         (get_specific): Trim X_add_number to 32 bits.
671         (fix_operand_size): Likewise, and use unsigned test for signed
672         ranges.
673
674 2012-02-27  Alan Modra  <amodra@gmail.com>
675
676         * config/tc-crx.c: Include bfd_stdint.h.
677         (getconstant): Remove irrelevant comment.  Don't fail due to
678         sign-extension of int mask.
679         (check_range): Rewrite using unsigned arithmetic throughout.
680
681 2012-02-25  Walter Lee  <walt@tilera.com>
682
683         * tc-tilepro.c (emit_tilepro_instruction): Check if symbol is
684         non-local before checking sy_value.
685         * tc-tilegx.c (emit_tilegx_instruction): Ditto.
686
687 2012-02-25  Walter Lee  <walt@tilera.com>
688
689         * tc-tilepro.c (O_tls_le): Define operator.
690         (O_tls_le_lo16): Ditto.
691         (O_tls_le_hi16): Ditto.
692         (O_tls_le_ha16): Ditto.
693         (O_tls_gd_call): Ditto.
694         (O_tls_gd_add): Ditto.
695         (O_tls_ie_load): Ditto.
696         (md_begin): Delete old operators; handle new operators.
697         (emit_tilepro_instruction): Ditto.
698         (md_apply_fix): Ditto.
699         * tc-tilegx.c (O_hw1_got): Delete operator.
700         (O_hw2_got): Ditto.
701         (O_hw3_got): Ditto.
702         (O_hw2_last_got): Ditto.
703         (O_hw1_tls_gd): Ditto.
704         (O_hw2_tls_gd): Ditto.
705         (O_hw3_tls_gd): Ditto.
706         (O_hw2_last_tls_gd): Ditto.
707         (O_hw1_tls_ie): Ditto.
708         (O_hw2_tls_ie): Ditto.
709         (O_hw3_tls_ie): Ditto.
710         (O_hw2_last_tls_ie): Ditto.
711         (O_hw0_tls_le): Define operator.
712         (O_hw0_last_tls_le): Ditto.
713         (O_hw1_last_tls_le): Ditto.
714         (O_tls_gd_call): Ditto.
715         (O_tls_gd_add): Ditto.
716         (O_tls_ie_load): Ditto.
717         (O_tls_add): Ditto.
718         (md_begin): Delete old operators; handle new operators.
719         (emit_tilegx_instruction): Ditto.
720         (md_apply_fix): Ditto.
721         * doc/c-tilegx.texi: Delete old operators; document new operators.
722         * doc/c-tilepro.texi: Ditto.
723
724 2012-02-25  Walter Lee  <walt@tilera.com>
725
726         * tc-tilepro.c (apply_special_operator): delete cases for
727         got and tls operators.
728         (md_apply_fix): Ditto.
729         * tc-tilegx.c (md_begin): Set architecture and machine.
730         (tilegx_target_format): Handle big endian.
731         (OPTION_EB): Define.
732         (OPTION_EL): Define.
733         (md_longopts): Add entries for "EB" and "EL".
734         (md_parse_option): Handle OPTION_EB and OPTION_EL.
735         (md_show_usage): Add -EB and -EL.
736         (md_number_to_chars): New.
737         (apply_special_operator): delete cases for got and tls
738         operators.
739         (md_apply_fix): Ditto.
740         * tc-tilegx.h (TARGET_BYTES_BIG_ENDIAN): Guard definition with
741         ifndef.
742         (md_number_to_chars): Delete.
743         * configure.tgt (tilegx*be): Handle.
744         * doc/as.texinfo [TILE-Gx]: Document -EB and -EL.
745         * doc/c-tilegx.texi: Ditto.
746
747 2012-02-21  H.J. Lu  <hongjiu.lu@intel.com>
748
749         * config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
750         HLEPrefixAny and HLEPrefixRelease.
751
752 2012-02-21  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
753
754         * gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
755
756 2012-02-21  Iain Sandoe  <idsandoe@googlemail.com>
757
758         * write.c (write_object_file): Add md_pre_output_hook.
759         * config/obj-macho.c (obj_mach_o_check_before_writing): New.
760         (obj_mach_o_pre_output_hook): New.
761         * config/obj-macho.h (md_pre_output_hook): Define.
762         (obj_mach_o_pre_output_hook): Declare.
763
764 2012-02-21  Tristan Gingold  <gingold@adacore.com>
765
766         * config/tc-i386.h (OBJ_MACH_O): New section.
767         (TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
768         (TC_FORCE_RELOCATION_SUB_SAME): New
769         (TC_FORCE_RELOCATION_SUB_LOCAL): New.
770         (TC_VALIDATE_FIX_SUB): New.
771         * frags.h (struct frag): OBJ_FRAG_TYPE, new field.
772         * symbols.c (colon): obj_frob_colon: New hook.
773         * write.c (write_object_file): md_pre_relax_hook, new
774         hook.
775         * config/obj-macho.c (obj_mach_o_frob_colon): New.
776         (obj_mach_o_frob_label): Record sub-section labels.
777         (obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
778         (obj_mach_o_set_subsections): New.
779         (obj_mach_o_pre_relax_hook): New.
780         (obj_mach_o_in_different_subsection): New.
781         (obj_mach_o_force_reloc_sub_same): New.
782         (obj_mach_o_force_reloc_sub_local): New.
783         (obj_mach_o_force_reloc): New.
784         * config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
785         (obj_frob_colon): New Define.
786         (obj_mach_o_frob_label): Renamed.
787         (obj_mach_o_frob_symbol): Renamed.
788         (OBJ_FRAG_TYPE): New.
789         (obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
790          obj_mach_o_force_reloc_sub_same,
791          obj_mach_o_force_reloc_sub_local): New declarations.
792
793 2012-02-20  Iain Sandoe  <idsandoe@googlemail.com>
794
795         * config/obj-macho.c (obj_mach_o_is_frame_section): New.
796         (obj_mach_o_allow_local_subtract): New.
797         * config/obj-macho.h (md_allow_local_subtract): Define.
798         (obj_mach_o_allow_local_subtract): Declare.
799
800 2012-02-20  Iain Sandoe  <idsandoe@googlemail.com>
801
802         * config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of
803         canonical information, try to determine CODE and DEBUG section flags
804         from the mach-o section data.
805
806 2012-02-20  Nick Clifton  <nickc@redhat.com>
807
808         * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
809         local symbols.
810
811 2012-02-12  Iain Sandoe  <idsandoe@googlemail.com>
812
813         * config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
814         any local symbol used as an indirect.
815
816 2012-02-10  Iain Sandoe  <idsandoe@googlemail.com>
817
818         * config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
819         stub size when provided.  (obj_mach_o_section): Flag that stub-size
820         has been provided.
821
822 2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>
823
824         * config/tc-i386.c (HLE_PREFIX): New.
825         (check_hle): Likewise.
826         (_i386_insn): Add have_hle.
827         (cpu_arch): Add .hle and .rtm.
828         (md_assemble): Call check_hle if i.have_hle isn't zero.
829         (parse_insn): Set i.have_hle to 1 for HLE prefix.
830         (output_jump): Support up to 2 byte opcode.
831
832         * doc/c-i386.texi: Document hle/.hle and rtm/.rtm.
833
834 2012-02-02  Tristan Gingold  <gingold@adacore.com>
835
836         * config/obj-macho.c (obj_mach_o_zerofill): Silent
837         uninitialized variable warning.
838
839 2012-02-02  Nick Clifton  <nickc@redhat.com>
840
841         PR gas/13224
842         * config/obj-elf.c (obj_elf_parse_section_letters): Rename 'clone'
843         to 'is_clone' to avoid shadowing a gloabl.
844         (obj_elf_section): Likewise.
845
846 2012-01-31  Paul Brook  <paul@codesourcery.com>
847
848         * doc/c-tic6x.c: Fix typo.
849
850 2012-01-26  Alexey Makhalov  <makhaloff@gmail.com>
851
852         PR gas/13624
853         * app.c (app_push): Set 'add_newlines' to zero after saving.
854
855 2012-01-24  DJ Delorie  <dj@redhat.com>
856
857         * config/rl78-parse.y (NOT1): Add.
858
859 2012-01-23  Roland McGrath  <mcgrathr@google.com>
860
861         * configure.tgt (i386-*-nacl*): Match it.
862         * config/te-nacl.h: New file.
863         * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT): Define for this case.
864         * config/tc-i386.c [TE_NACL] (i386_comment_chars, PREFIX_SEPARATOR):
865         Use TE_GNU et al case for TE_NACL too.
866
867 2012-01-20  H.J. Lu  <hongjiu.lu@intel.com>
868
869         * config/tc-i386.c (_i386_insn): Replace disp32_encoding with
870         disp_encoding.
871         (md_assemble): Updated.
872         (output_branch): Likewise.
873         (parse_insn): Support .d8 suffix.
874         (build_modrm_byte): Fake zero displacement for .d8 and .d32
875         suffixes.
876
877         * doc/c-i386.texi: Document .d8 suffix.
878
879 2012-01-17  Andrew Burgess  <aburgess@broadcom.com>
880
881         * write.c (fix_new_internal): Don't mark used parameter as unused.
882
883 2012-01-17  Alan Modra  <amodra@gmail.com>
884
885         * as.c (parse_args): Update copyright message year.
886
887 2012-01-13  H.J. Lu  <hongjiu.lu@intel.com>
888
889         * config/tc-i386.c (cpu_arch): Add ".vmfunc".
890
891         * doc/c-i386.texi: Document vmfunc.
892
893 2012-01-13  Tristan Gingold  <gingold@adacore.com>
894
895         * config/obj-macho.c (obj_mach_o_reorder_section_relocs): New.
896         * config/obj-macho.h (SET_SECTION_RELOCS): Define.
897         (obj_mach_o_reorder_section_relocs): Declare.
898
899 2012-01-13  Iain Sandoe  <idsandoe@googlemail.com>
900
901         * config/obj-macho.c (obj_mach_o_set_indirect_symbols): Handle
902         absolute indirect symbols.
903
904 2012-01-13  Iain Sandoe  <idsandoe@googlemail.com>
905
906         * config/obj-macho.c (obj_mach_o_set_vma_data): New type.
907         (obj_mach_o_set_section_vma): New.
908         (obj_mach_o_post_relax_hook): New.
909         * config/obj-macho.h (md_post_relax_hook): Define.
910         (obj_mach_o_post_relax_hook): Declare.
911
912 2012-01-12  Iain Sandoe  <idsandoe@googlemail.com>
913
914         * config/obj-macho.c (obj_mach_o_set_symbol_qualifier): Switch off
915         lazy when the symbol is private_extern.
916         (obj_mach_o_indirect_sym): New type.
917         (obj_mach_o_indirect_symbol): New.
918         (mach_o_pseudo_table): Use obj_mach_o_indirect_symbol.
919         (obj_macho_frob_label): Adjust to avoid adding bsyms for locals.
920         (obj_macho_frob_label): Likewise.  Adjust external and comm
921         symbol tests.
922         (obj_mach_o_set_indirect_symbols): New.
923         (obj_mach_o_frob_file_after_relocs): New.
924         *config/obj-macho.h (obj_frob_file_after_relocs): Define.
925         (obj_mach_o_frob_file_after_relocs): Declare.
926
927 2012-01-12  Tristan Gingold  <gingold@adacore.com>
928
929         PR gas/13591
930         * config/obj-coff.h (sy_obj): Rename macro to avoid a name conflict.
931
932 2012-01-10  Tristan Gingold  <gingold@adacore.com>
933
934         * struc-symbol.h (struct symbol_flags): New struct, created from...
935         (struct symbol): ... this one.  Add sy_flags field, remove flag fields.
936         (struct local_symbol): Replace lsy_marker field by lsy_flags.
937         Adjust comment.
938         (local_symbol_resolved_p): Adjust.
939         (local_symbol_mark_resolved): Likewise.
940         * symbols.c (LOCAL_SYMBOL_CHECK): Adjust.
941         (local_symbol_make, local_symbol_convert, colon)
942         (symbol_clone_if_forward_ref, verify_symbol_chain)
943         (resolve_symbol_value, snapshot_symbol, S_GET_VALUE)
944         (S_IS_WEAKREFR, S_IS_WEAKREFD, S_IS_VOLATILE, S_IS_FORWARD_REF)
945         (S_SET_WEAKREFR, S_CLEAR_WEAKREFR, S_SET_WEAKREFD)
946         (S_CLEAR_WEAKREFD, S_SET_VOLATILE, S_CLEAR_VOLATILE)
947         (S_SET_FORWARD_REF, symbol_same_p, symbol_mark_used)
948         (symbol_clear_used, symbol_used_p, symbol_mark_used_in_reloc)
949         (symbol_clear_used_in_reloc, symbol_used_in_reloc_p)
950         (symbol_mark_mri_common, symbol_clear_mri_common)
951         (symbol_mri_common_p, symbol_mark_written, symbol_clear_written)
952         (symbol_written_p, symbol_mark_resolved, symbol_resolved_p)
953         (symbol_equated_reloc_p, dot_symbol_init)
954         (print_symbol_value_1): Adjust.
955
956 2012-01-09  Iain Sandoe  <idsandoe@googlemail.com>
957
958         * config/obj-macho.c (obj_mach_o_weak): Remove.
959         (obj_mach_o_common_parse): Set symbol qualifiers.
960         (LAZY, REFE): New macros.
961         (obj_mach_o_symbol_type): New enum.
962         (obj_mach_o_set_symbol_qualifier): New.
963         (obj_mach_o_sym_qual): New.
964         (mach_o_pseudo_table): Add symbol qualifiers, set indirect_symbol to
965         a dummy function.
966         (obj_mach_o_type_for_symbol): New.
967         (obj_macho_frob_label): New.
968         (obj_macho_frob_symbol): New.
969         * config/obj-macho.h (S_SET_ALIGN): Amend temorary var name.
970         (obj_frob_label, obj_macho_frob_label): Declare.
971         (obj_frob_symbol, obj_macho_frob_symbol): Declare.
972
973 2012-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
974
975         * config/tc-mips.c (s_tls_rel_directive): Call mips_clear_insn_labels.
976
977 2012-01-08  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
978             Richard Sandiford  <rdsandiford@googlemail.com>
979
980         * config/tc-mips.c (mips_move_labels): Take the list of labels and
981         textness as parameters.
982         (mips_move_text_labels): New function.
983         (append_insn): Use it instead of mips_move_labels.
984         (mips_emit_delays, start_noreorder): Likewise.
985         (mips_align): Take the labels rather than just one label.
986         Move all labels to after the .align.
987         (s_align): Change the last argument to mips_align.
988         (s_cons): Likewise.
989         (s_float_cons): Likewise.
990         (s_gpword): Likewise.
991         (s_gpdword): Likewise.
992
993 2012-01-06  Tristan Gingold  <gingold@adacore.com>
994
995         * config/tc-i386.c: Update copyright year.
996         (lex_got): Also defined for Mach-O.
997         Add a guard for non-ELF configuration.
998         (md_longopts): Also handle -64 for Mach-O.
999         (md_parse_option): Likewise.
1000         (i386_target_format): Adjust for x86_64-darwin.
1001
1002 2012-01-04  Iain Sandoe  <idsandoe@googlemail.com>
1003
1004         * config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Tidy definition.
1005         (obj_mach_o_get_section_names): New (split from obj_mach_o_section).
1006         (obj_mach_o_make_or_get_sect): Likewise.
1007         (obj_mach_o_section): Split out the functionality shared with zerofill.
1008         (obj_mach_o_zerofill): New.
1009         (obj_mach_o_common_parse): Ensure whitespace is skipped.
1010         (mach_o_pseudo_table): Add .zerofill.
1011
1012 2012-01-03  Iain Sandoe  <idsandoe@googlemail.com>
1013
1014         * config/obj-macho.c (obj_macho_process_stab): New.
1015         * config/obj-macho.h (OBJ_PROCESS_STAB): Define.
1016         (obj_macho_process_stab): Declare.
1017
1018 For older changes see ChangeLog-2011
1019 \f
1020 Local Variables:
1021 mode: change-log
1022 left-margin: 8
1023 fill-column: 74
1024 version-control: never
1025 End: