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