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