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