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