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