gas/
[external/binutils.git] / gas / ChangeLog
1 2012-11-01  Maciej W. Rozycki  <macro@codesourcery.com>
2
3         * config/tc-mips.c (is_delay_slot_valid): Don't accept macros
4         in 16-bit delay slots.
5         (macro_build_jalr): Emit 32-bit JALR if placed in a 32-bit delay
6         slot.
7         (macro) <M_JAL_2>: Likewise
8
9 2012-10-31  David Holsgrove  <david.holsgrove@xilinx.com>
10
11         * config/tc-microblaze.c: Check for weak symbols before
12         emitting relocation.
13
14 2012-10-29  Alan Modra  <amodra@gmail.com>
15
16         * sb.c (sb_check): Use __builtin_clzll when size_t is not the
17         same size as long.
18
19 2012-10-29  Alan Modra  <amodra@gmail.com>
20
21         * config/tc-ppc.c (ppc_znop): Remove unused vars.
22
23 2012-10-26  Alan Modra  <amodra@gmail.com>
24
25         PR target/14758
26         * config/tc-ppc.c (ppc_setup_opcodes): Fix comment.
27         (md_assemble): Translate to _DS relocs for ppc32 as well as ppc64.
28         (tc_gen_reloc): Handle _DS relocs in ppc32 mode.
29
30 2012-10-22  Simon Baldwin  <simonb@google.com>
31
32         * as.c (dump_statistics): Compute data size as the delta between
33         current sbrk(0) and start_sbrk.
34         * (main): Set start_sbrk to sbrk(0) on entry.
35
36 2012-10-18  Kai Tietz  <ktietz@redhat.com>
37
38         * config/obj-coff.c: Add include of struc-symbol.h header.
39         (coff_frob_symbol): Check that function-aux entries are generated for
40         defined symbols only.
41
42         * doc/as.texinfo: Add missing documentation about section flag
43         exclude.
44
45 2012-10-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
46
47         * config/tc-hppa.c (pa_get_number): New.
48         (pa_get_absolute_expression): Simplify.
49         (pa_ip): Use pa_get_number instead of pa_get_absolute_expression
50         to get SOP, SFU and COPR identifiers.
51
52         * config/tc-hppa.c (pa_ip): Reject double floating point stores and
53         loads that reference the right half of a floating point register.
54
55 2012-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
56
57         * config/tc-hppa.c (pa_ip): Limit unit conditions for uxor to those
58         not involving a carry.
59
60 2012-10-12  Peter Bergner  <bergner@vnet.ibm.com>
61
62         * doc/as.texinfo (-mpwr4, -mpwr7): Fix option name typos.
63
64 2012-10-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
65
66         * config/tc-arm.c: Change condition code insertion for
67         lds[hb] instructions from after the 2nd character to after the 3rd.
68         (tCM): Remove macro.
69         (TxCM): Likewise.
70         (TxCM_): Likewise.
71         (TCM): Likewise.
72
73 2012-10-09  Nagajyothi Eggone  <nagajyothi.eggone@amd.com>
74
75         * config/tc-i386.c (cpu_arch): Add CPU_BDVER3_FLAGS.
76         * doc/c-i386.texi: Add -march=bdver3 option.
77
78 2012-10-04  Nick Clifton  <nickc@redhat.com>
79
80         * config/tc-v850.c (v850_insert_operand): Use a static buffer for
81         the error message.
82
83 2012-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
84
85         * config/tc-s390.c (s390_parse_cpu): Add new option zEC12.
86         * doc/as.texinfo: Document new option zEC12.
87         * doc/c-s390.texi: Likewise.
88
89 2012-10-03  DJ Delorie  <dj@redhat.com>
90
91         * config/tc-rl78.c: Change line_separator to '@' so that '|' can
92         be used in expressions.
93
94 2012-10-01  Alan Modra  <amodra@gmail.com>
95
96         * write.c (chain_frchains_together_1): Reorder assertion to avoid
97         uninit warning.
98
99 2012-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
100
101         * config/tc-mips.h (TC_FORCE_RELOCATION): Remove comment.
102         * config/tc-mips.c (calculate_reloc): New function.
103         (append_insn): Use it.  Do not resolve compound relocations here.
104         (mips16_macro_build, mips16_ip): Use calculate_reloc.
105         (mips16_immed_extend): New function, split out from...
106         (mips16_immed): ...here.
107         (mips_frob_file): Handle null symbols.
108         (mips_force_relocation): Remove NEWABI handling.
109         (read_reloc_insn, write_reloc_insn): New functions.
110         (md_apply_fix): Report TLS relocations against constants.
111         Use read_reloc_insn, calculate_reloc and write_reloc_insn.
112         Report relocations against constants that can't be resolved
113         at assembly time.
114
115 2012-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
116
117         * config/tc-mips.c (append_insn) <BFD_RELOC_MIPS_JMP>: Don't
118         mark as incomplete for constant expressions.
119         <BFD_RELOC_MIPS16_JMP>: Likewise.
120
121 2012-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
122             Maciej W. Rozycki  <macro@codesourcery.com>
123
124         * config/tc-mips.h (mips_record_label): Delete.
125         (mips_add_dot_label): Declare.
126         (tc_new_dot_label): Use it.
127         * config/tc-mips.c (mips_assembling_insn): New variable.
128         (md_assemble): Call mips_mark_labels.  Set mips_assembling_insn
129         while the main part of the function is executing.
130         (mips_compressed_mark_label): New function, split out from...
131         (mips_compressed_mark_labels): ...here.
132         (append_insn): Don't call mips_mark_labels here.
133         (mips_record_label): Make local.
134         (mips_add_dot_label): New function.
135
136 2012-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
137
138         * config/tc-mips.c (SEXT_16BIT): New macro.
139         (mips16_immed): Take the reloc type as a parameter.  Do not impose
140         a signed vs. unsigned distinction on the value when a relocation
141         operator was used.
142         (mips16_macro_build, mips16_ip, md_convert_frag): Pass the reloc
143         type to mips16_immed.
144         (macro): Use SEXT_16BIT.
145
146 2012-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
147
148         * config/tc-mips.c (read_insn, write_insn, read_compressed_insn):
149         New functions.
150         (install_insn, md_apply_fix, md_convert_frag, mips_handle_align):
151         Use them, and write_compressed_insn.
152
153 2012-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
154
155         * config/tc-mips.c (mips_cl_insn): Remove use_extend and extend.
156         (MIPS16_EXTEND): New macro.
157         (mips16_opcode_length): New function.
158         (insn_length): Use it.
159         (create_insn): Update after mips_cl_insn change.
160         (write_compressed_insn): New function.
161         (install_insn): Use it.
162         (append_insn): Use insn_length to check for unextended MIPS16
163         instructions.
164         (mips16_macro_build): Update call to mips16_immed.
165         (mips16_ip): Likewise.  Use MIPS16_EXTEND to force an extended
166         instruction.
167         (mips16_immed): Remove use_extend and extend; install EXTEND
168         opcodes in the upper 16 bits of *INSN instead.  Keep the
169         instruction extended if it already is.  Replace warn, small
170         and ext with a forced_insn_length-like parameter.
171         (md_convert_frag): Update call mips16_immed.
172         Use write_compressed_insn.
173
174 2012-09-20  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
175
176         * config/tc-i386.c (cpu_arch): Add .cx16.
177         * doc/c-i386.texi: Document .cx16.
178
179 2012-09-19  Steve Ellcey  <sellcey@mips.com>
180
181         * configure.tgt: Add mips*-mti-elf* target.
182
183 2012-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
184
185         * config/tc-arm.c: Changed ldra and strl-form mnemonics
186         to lda and stl-form for armv8.
187
188 2012-09-17  Yufeng Zhang  <yufeng.zhang@arm.com>
189
190         * config/tc-aarch64.c (aarch64_archs): Rename 'armv8' to 'armv8-a'.
191
192 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
193
194         * configure: Regenerate.
195
196 2012-09-13  Anthony Green  <green@moxielogic.com>
197
198         * config/tc-moxie.h (DEFAULT_TARGET_FORMAT): Define.
199         (TARGET_FORMAT): Don't hard-code endian-ness.
200         * config/tc-moxie.c (target_big_endian, moxie_target_format):
201         Define.
202         (md_assemble): Handle bi-endian encodings.
203         (md_shortopts, md_parse_option, md_show_usage, md_apply_fix)
204         (md_number_to_chars, md_chars_to_number): Update for bi-endian
205         support.
206
207 2012-09-12  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
208
209         * config/tc-aarch64.c
210         (reloc_table): Add reloc to table entry.
211         (parse_address_main): Add support for #:<reloc_op>:<symbol>.
212         (parse_operands): Check for unused reloc.
213         (md_apply_fix): New case for reloc.
214         (aarch64_force_relocation): Likewise.
215
216 2012-09-11  Georg-Johann Lay  <avr@gjlay.de>
217
218         PR gas/13503
219         * config/tc-avr.h (TC_VALIDATE_FIX): Skip: BFD_RELOC_AVR_8_LO,
220         BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HLO.
221
222 2012-09-11  Alan Modra  <amodra@gmail.com>
223
224         * Makefile.am (bootstrap): Add $EXEEXT to dependency.
225         * Makefile.in: Regenerate.
226
227 2012-09-10  Matthias Klose  <doko@ubuntu.com>
228
229         * config.in: Disable sanity check for kfreebsd.
230
231 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
232
233         * configure: Regenerated.
234
235 2012-09-07  Anthony Green  <green@moxielogic.com>
236
237         * config/tc-moxie.c (md_pcrel_from): Branches are now relative
238         to the address following the branch instruction.
239
240 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
241
242         * config/tc-s390.c (set_highgprs_p): New variable.
243         (s390_machinemode): New function.
244         (md_pseudo_table): Add new pseudo command machinemode.
245         (md_parse_option): Set set_highgprs_p to TRUE if -mzarch was
246         specified on command line.
247         (s390_elf_final_processing): Set the highgprs flag in the ELF
248         header depending on set_highgprs_p.
249
250         * doc/c-s390.texi: Document new pseudo machinemode.
251
252 2012-09-05  James Lemke  <jwlemke@codesourcery.com>
253
254         * doc/c-ppc.texi: Document -mvle.
255         * doc/as.texinfo: Likewise.
256
257 2012-09-04  Sergey A. Guriev  <sergey.a.guriev@intel.com>
258
259         * config/tc-ia64.c (reg_symbol): Add a new register.
260         (indirect_reg): Ditto.
261         (pseudo_func): Add new symbolic constants.
262         (operand_match): Add new operand types recognition.
263         (operand_insn): Add new register recognition.
264         (md_begin): Add new register definition.
265         (specify_resource): Add new register recognition.
266
267 2012-09-01  Hans-Peter Nilsson  <hp@bitrange.com>
268
269         PR gas/14521
270         * config/tc-mmix.h (tc_frob_file_before_fix): Renumber sections
271         after call to mmix_frob_file.
272
273 2012-08-31  Maciej W. Rozycki  <macro@codesourcery.com>
274
275         * doc/c-mips.texi (MIPS Opts): Correct a typo in the -mips5
276         option.
277
278 2012-08-27  Walter Lee  <walt@tilera.com>
279
280         * tc-tilegx.c (O_hw0_plt): Define operator.
281         (O_hw1_plt): Ditto.
282         (O_hw1_last_plt): Ditto.
283         (O_hw2_last_plt): Ditto.
284         (md_begin): Handle new operators.
285         (emit_tilegx_instruction): Ditto.
286         (md_apply_fix): Ditto.
287         * doc/c-tilegx.texi: Document new operators.
288
289 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
290
291         * config/tc-arm.c (ARM_ENC_TAB): Add sha1h and sha2op entries.
292         (do_sha1h): New function.
293         (do_sha1su1): Likewise.
294         (do_sha256su0): Likewise.
295         (insns): Add 2 operand SHA instructions.
296
297 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
298
299         * config/tc-arm.c (NEON_ENC_TAB): Add sha3op entry.
300         (do_crypto_3op_1): New function.
301         (do_sha1c): Likewise.
302         (do_sha1p): Likewise.
303         (do_sha1m): Likewise.
304         (do_sha1su0): Likewise.
305         (do_sha256h): Likewise.
306         (do_sha256h2): Likewise.
307         (do_sha256su1): Likewise.
308         (insns): Add SHA 3 operand instructions.
309
310 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
311
312         * config/tc-arm.c (neon_type_mask): Add P64 type.
313         (type_chk_of_el_type): Handle P64 type.
314         (el_type_of_type_chk): Likewise.
315         (do_neon_vmull): Handle VMULL.P64.
316
317 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
318
319         * config/tc-arm.c (NEON_ENC_TAB): Add aes entry.
320         (neon_type_mask): Add N_UNT.
321         (neon_check_type): Don't always decay typed to untyped sizes.
322         (do_crypto_2op_1): New function.
323         (do_aese): Likewise.
324         (do_aesd): Likewise.
325         (do_aesmc.8): Likewise.
326         (do_aesimc.8): Likewise.
327         (insns): Add AES instructions.
328
329 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
330
331         * config/tc-arm.c (el_type_type_check): Add handling for 16-bit
332         floating point types.
333         (do_neon_cvttb_2): New function.
334         (do_neon_cvttb_1): Likewise.
335         (do_neon_cvtb): Refactor to use do_neon_cvttb_1.
336         (do_neon_cvtt): Likewise.
337
338 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
339
340         * config/tc-arm.c (NEON_ENC_TAB): Add vrint entries.
341         (neon_cvt_mode): Add neon_cvt_mode_r.
342         (do_vrint_1): New function.
343         (do_vrint_x): Likewise.
344         (do_vrint_z): Likewise.
345         (do_vrint_r): Likewise.
346         (do_vrint_a): Likewise.
347         (do_vrint_n): Likewise.
348         (do_vrint_p): Likewise.
349         (do_vrint_m): Likewise.
350         (insns): Add VRINT instructions.
351
352 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
353
354         * config/tc-arm.c (NEON_ENC_TAB): Add vcvta entry.
355         (neon_cvt_mode): New enumeration.
356         (do_vfp_nsyn_cvt_fpv8): New function.
357         (do_neon_cvt_1): Add support for new conversions.
358         (do_neon_cvtr): Use neon_cvt_mode enumerator.
359         (do_neon_cvt): Likewise.
360         (do_neon_cvta): New function.
361         (do_neon_cvtn): Likewise.
362         (do_neon_cvtp): Likewise.
363         (do_neon_cvtm): Likewise.
364         (insns): Add new VCVT instructions.
365
366 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm>
367
368         * config/tc-arm.c (CVT_FLAVOUR_VAR): New define.
369         (CVT_VAR): New helper define.
370         (neon_cvt_flavour): New enumeration, function renamed...
371         (get_neon_cvt_flavour): ...to this.
372         (do_vfp_nsyn_cvt): Update to use new neon_cvt_flavour.
373         (do_vfp_nsyn_cvtz): Likewise.
374         (do_neon_cvt_1): Likewise.
375
376 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
377
378         * config/tc-arm.c (NEON_ENC_TAB): Add vmaxnm, vminnm entries.
379         (vfp_or_neon_is_neon_bits): Add NEON_CHECK_ARCH8 enumerator.
380         (vfp_or_neon_is_neon): Add check for SIMD for ARMv8.
381         (do_maxnm): New function.
382         (insns): Add vmaxnm, vminnm entries.
383
384 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
385
386         * config/tc-arm.c (NEON_ENC_TAB): Add entries for VSEL.
387         (NEON_ENC_FPV8_): New define.
388         (do_vfp_nsyn_fpv8): New function.
389         (do_vsel): Likewise.
390         (insns): Add VSEL instructions.
391
392 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
393
394         * config/tc-arm.c (do_rm_rn): New function.
395         (do_strlex): Likewise.
396         (do_t_strlex): Likewise.
397         (insns): Add support for LDRA/STRL instructions.
398
399 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
400
401         * config/tc-arm.c (do_t_bkpt_hlt1): New function.
402         (do_t_hlt): New function.
403         (do_t_bkpt): Use do_t_bkpt_hlt1.
404         (insns): Add HLT.
405
406 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
407
408         * config/tc-arm.c (insns): Add DCPS instruction.
409
410 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
411
412         * config/tc-arm.c (T16_32_TAB): Add _sevl.
413         (insns): Add SEVL.
414
415 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
416
417         * config/tc-arm.c (asm_barrier_opt): Add arch field.
418         (mark_feature_used): New function.
419         (parse_barrier): Check specified option is valid for the
420         specified architecture.
421         (UL_BARRIER): New macro.
422         (barrier_opt_names): Update for new barrier options.
423
424 2012-08-24  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
425
426         * config/tc-arm.c (do_setend): Warn on deprecated SETEND.
427         (do_t_setend): Likewise.
428
429 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
430
431         * config/tc-arm.c (do_t_it): Fully initialise now_it.
432         (new_automatic_it_block): Likewise.
433         (handle_it_block): Record whether current instruction is
434         conditionally executed.
435         * config/tc-arm.c (depr_insn_mask): New structure.
436         (depr_it_insns): New variable.
437         (it_fsm_post_encode): Warn on deprecated uses.
438         * config/tc-arm.h (current_it): Add new fields.
439
440 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
441
442         * config/tc-arm.c (deprecated_coproc_regs_s): New structure.
443         (deprecated_coproc_regs): New variable.
444         (deprecated_coproc_reg_count): Likewise.
445         (do_co_reg): Error on obsolete & warn on deprecated registers.
446
447 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
448
449         * config/tc-arm.c (check_obsolete): New function.
450         (do_rd_rm_rn): Check swp{b} for obsoletion.
451
452 2012-08-24  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
453
454         * config/tc-arm.h (arm_ext_v8): New variable.
455         (fpu_vfp_ext_armv8): Likewise.
456         (fpu_neon_ext_armv8): Likewise.
457         (fpu_crypto_ext_armv8): Likewise.
458         (arm_archs): Add armv8-a.
459         (arm_extensions): Add crypto, fp, and simd.
460         (arm_fpus): Add fp-armv8, neon-fp-armv8, crypto-neon-fp-armv8.
461         (cpu_arch_ver): Add support for ARMv8.
462         (aeabi_set_public_sttributes): Likewise.
463         * doc/c-arm.texi (ARM Options): Document new architecture and
464         extension options for ARMv8.
465
466 2012-08-20  H.J. Lu  <hongjiu.lu@intel.com>
467
468         * doc/as.texinfo: Replace --n32 with --x32.
469
470 2012-08-17  Nagajyothi Eggone  <nagajyothi.eggone@amd.com>
471
472         * config/tc-i386.c (cpu_arch): Add CPU_BTVER1_FLAGS and
473         CPU_BTVER2_FLAGS.
474         (i386_align_code): Add case for PROCESSOR_BT.
475
476         * config/tc-i386.h (enum processor_type): Add PROCESSOR_BT.       
477
478         * doc/c-i386.texi: Add -march={btver1, btver2} options.
479
480 2012-08-14  H.J. Lu  <hongjiu.lu@intel.com>
481
482         PR gas/14457
483         * config/tc-i386.c (i386_att_operand): Terminate register name
484         when reporting bad register.
485
486 2012-08-14  Hans-Peter Nilsson  <hp@bitrange.com>
487
488         * config/tc-mmix.c (loc_asserts): New variable.
489         (mmix_greg_internal): Handle expressions not determinable at first
490         pass.
491         (s_loc): Ditto.  Record expressions where the section isn't
492         determinable at the first pass, and assume they don't refer to
493         other sections.
494         (mmix_md_end): Verify that recorded LOC expressions weren't
495         to other sections, else emit error messages.
496
497 2012-08-13  Ian Bolton  <ian.bolton@arm.com>
498             Laurent Desnogues  <laurent.desnogues@arm.com>
499             Jim MacArthur  <jim.macarthur@arm.com>
500             Marcus Shawcroft  <marcus.shawcroft@arm.com>
501             Nigel Stephens  <nigel.stephens@arm.com>
502             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
503             Richard Earnshaw  <rearnsha@arm.com>
504             Sofiane Naci  <sofiane.naci@arm.com>
505             Tejas Belagod  <tejas.belagod@arm.com>
506             Yufeng Zhang  <yufeng.zhang@arm.com>
507
508         * Makefile.am: Add AArch64.
509         * Makefile.in: Regenerate.
510         * config/tc-aarch64.c: New file.
511         * config/tc-aarch64.h: New file.
512         * configure.tgt: Add AArch64.
513         * doc/Makefile.am: Add AArch64.
514         * doc/Makefile.in: Regenerate.
515         * doc/all.texi: Add AArch64.
516         * doc/as.texinfo: Add AArch64.
517         * doc/c-aarch64.texi: New file.
518         * po/POTFILES.in: Regenerate.
519         * NEWS: Mention the new support.
520
521 2012-08-13  Maciej W. Rozycki  <macro@codesourcery.com>
522
523         * config/tc-mips.c (NO_ISA_COP, COP_INSN): Remove macros.
524         (is_opcode_valid): Remove coprocessor instruction exclusions.
525         Replace OPCODE_IS_MEMBER with opcode_is_member.
526         (is_opcode_valid_16): Replace OPCODE_IS_MEMBER with
527         opcode_is_member.
528         (macro): Remove coprocessor instruction exclusions.
529
530 2012-08-13  Maciej W. Rozycki  <macro@codesourcery.com>
531
532         * config/tc-mips.c (s_cpload, s_cpsetup): Fail if MIPS16 mode.
533         (s_cplocal, s_cprestore, s_cpreturn): Likewise.
534
535 2012-08-07  Jan Beulich <jbeulich@suse.com>
536
537         * config/tc-i386-intel.c (build_modrm_byte): Split determining
538         default segment from figuring out encoding. Honor RegRex for
539         the former.
540
541 2012-08-07  Jan Beulich <jbeulich@suse.com>
542
543         * config/tc-i386.c (set_check): Renamed from set_sse_check.
544         Generalize to also handle operand checking option.
545         (enum i386_error): New enumerator 'invalid_vector_register_set'.
546         (match_template): Handle it.
547         (enum check_kind): Give it a tag. Drop sse_ prefixes from
548         enumerators.
549         (operand_check): New.
550         (md_pseudo_table): Add "operand_check".
551         (check_VecOperands): Don't special case RIP addressing. Check
552         that vSIB operands use distinct vector registers unless no
553         checking was requested.
554         (OPTION_MOPERAND_CHECK): New.
555         (md_parse_option): Handle it.
556         (OPTION_MAVXSCALAR, OPTION_X32): Adjust.
557         (md_longopts): Add "moperand-check".
558         (md_show_usage): Add help text for it.
559
560 2012-08-07  Jan Beulich <jbeulich@suse.com>
561
562         * config/tc-i386.c (register_number): New function.
563         (build_vex_prefix, process_immext, process_operands,
564         build_modrm_byte, i386_index_check): Use it.
565
566 2012-08-07  Daniel Green  <venix1@gmail.com>
567
568         * config/tc-i386.c (lex_got): Provide implementation for PE
569         format.
570
571 2012-08-06  Maciej W. Rozycki  <macro@codesourcery.com>
572
573         * config/tc-mips.c (append_insn): Also handle moving delay-slot
574         instruction across frags for fixed branches.
575
576 2012-08-03  Maciej W. Rozycki  <macro@codesourcery.com>
577
578         * frags.c (frag_grow): Never shrink the obstack size requested
579         below the default.
580
581 2012-08-02  Sean Keys  <skeys@ipdatasys.com>
582
583         * config/tc-m68hc11.c (s_m68hc11_parse_pseudo_instruction):
584         New function to parse pseudo ops that are unreleated to
585         existing pseudo ops.
586
587 2012-08-01  Catherine Moore  <clm@codesourcery.com>
588             Sandra Loosemore  <sandra@codesourcery.com>
589
590         * config/mips/tc-mips.c (mips_cpu_info):  Add the 34kn.
591         * doc/c-mips.texi (MIPS Opts): Document it.
592
593 2012-08-01  James Lemke  <jwlemke@codesourcery.com>
594
595         * dwarf2dbg.c (out_set_addr): Allow for non-constant value of
596         DWARF2_LINE_MIN_INSN_LENGTH
597         * config/tc-ppc.c (ppc_dwarf2_line_min_insn_length): Declare
598         and initialize.
599         (md_apply_fix): Branch addr can be a multiple of 2 or 4.
600         * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Now a
601         variable reference.
602
603 2012-07-31  Maciej W. Rozycki  <macro@codesourcery.com>
604             Chao-Ying Fu  <fu@mips.com>
605             Catherine Moore  <clm@codesourcery.com>
606
607         * config/tc-mips.c (ISA_SUPPORTS_DSP_ASE): Also set if microMIPS
608         mode.
609         (ISA_SUPPORTS_DSPR2_ASE): Likewise.
610         (macro_build) <'2'>: Handle microMIPS.
611         (macro) <M_BALIGN>: Update error handling.
612         (validate_micromips_insn) <'2', '3', '4', '5', '6'>: New cases.
613         <'7', '8', '0', '@', '^'>: Likewise.
614         (mips_ip) <'2', '3', '4', '5', '6', '7', '8'>: Handle microMIPS.
615         <'9'>: Fix formatting.
616         <'0', '@'>: Handle microMIPS.
617         <'^'>: New case.
618
619 2012-07-31  Jan Beulich <jbeulich@suse.com>
620
621         * config/tc-i386.c (match_template): Adjust error message
622         for 'bad_imm4' case.
623
624 2012-07-31  Jan Beulich <jbeulich@suse.com>
625
626         * config/tc-i386.c (check_byte_reg): Check for I/O port
627         register earlier, and just once. Drop diagnostic that got
628         issued only for some registers.
629
630 2012-07-31  Jan Beulich <jbeulich@suse.com>
631
632         * config/tc-i386.c (match_template): New local variable
633         'specific_error'. Set it from i.error after failed
634         check_VecOperands or VEX_check_operands. Use it if set in
635         preference to i.error when actually issuing disagnostic.
636
637 2012-07-30  Nick Clifton  <nickc@redhat.com>
638
639         * po/gas.pot: Updated template.
640         * po/es.po: Updated Spanish translation.
641         * po/fi.po: Updated Finnish translation.
642         * po/fr.po: Updated French translation.
643
644 2012-07-27  Mike Frysinger  <vapier@gentoo.org>
645
646         * configure.in (BFD_VERSION): Run bfd/configure --version and
647         parse the output of that.
648         * configure: Regenerate.
649
650 2012-07-27  Tristan Gingold  <gingold@adacore.com>
651
652         * NEWS: Add marker for 2.23.
653
654 2012-07-27  James Murray  <jsm@jsm-net.demon.co.uk>
655
656         * config/tc-m68hc11.c: Replace binary with hex for cygwin.
657
658 2012-07-26  Segher Boessenkool  <segher@kernel.crashing.org>
659
660         * listing.c (struct list_message): New.
661         (struct list_info_struct): Delete "message".  Add "messages"
662         and "last_message".
663         (listing_message): Adjust.
664         (listing_newline): Adjust.
665         (print_lines): Adjust.
666
667 2012-07-24  Jan Beulich <jbeulich@suse.com>
668
669         * config/tc-i386-intel.c (i386_intel_simplify_register): Handle
670         xmm/ymm index register being specified first as well as esp/rsp
671         base register being specified last in a memory operand.
672
673 2012-07-24  Jan Beulich <jbeulich@suse.com>
674
675         * config/tc-i386-intel.c (i386_intel_simplify_register):
676         Replace literal 4 by corresponding ESP_REG_NUM.
677
678 2012-07-24  Sandra Loosemore  <sandra@codesourcery.com>
679             Jie Zhang  <jzhang918@gmail.com>
680
681         * config/tc-arm.c (md_apply_fix): Use encoding A2 of ADR
682         if offset is negative.
683
684 2012-07-16  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
685
686         * config/tc-i386.c: Add ADX, RDSEED and PRFCHW asm directives.
687         * doc/c-i386.texi: Document the new directives.
688
689 2012-07-05  Sean Keys  <skeys@ipdatasys.com>
690
691         * config/tc-xgate.c: Revised assembler so that operands
692         are collected before the addressing mode is determined.
693
694 2012-07-02  Nick Clifton  <nickc@redhat.com>
695
696         * write.c (fixup_segment): Only perform the subtraction of an
697         fx_subsy symbol if MD_APPLY_SYM_VALUE allows it and the symbol is
698         properly defined.
699         * config/tc-msp430.h (MD_APPLY_SYM_VALUE): Define.
700
701 2012-06-30  Alan Modra  <amodra@gmail.com>
702
703         PR gas/14315
704         * config/obj-elf.c (obj_elf_weak): Don't set local.
705
706 2012-06-30  Johan Olmutz Nielsen  <jnielsen@ddci.com>
707
708         * frags.h (frag_offset_fixed_p): Update prototype.
709         * frags.c (frag_offset_fixed_p): Change type of "offset" to offsetT.
710         * expr.c (expr, resolve_expression): Likewise for frag_off var.
711
712 2012-06-29  Nick Clifton  <nickc@redhat.com>
713
714         PR gas/14263
715         * config/tc-arm.c (parse_operands): Initialise val.
716
717 2012-06-28  Nick Clifton  <nickc@redhat.com>
718
719         PR gas/14260
720         * config/tc-arm.c (encode_arm_addr_mode_common): Generate an error
721         message if literal pool addressing is used.
722
723 2012-06-28  Nick Clifton  <nickc@redhat.com>
724
725         * dwarf2dbg.c (DWARF2_USE_FIXED_ADVANCE_PC): Enable when using
726         linker relaxation.
727         (dwarf2_gen_line_info): Generate real, local, labels for line
728         numbers.
729         (dwarf2dbg_convert_frag): Do not finalize the computation of the
730         frag's symbol value when linker relaxation is enabled.
731         (ADDR_DELTA_LIMIT): Define.
732         (size_fixed_inc_line_addr): Use ADDR_DELTA_LIMIT.
733         (emit_fixed_inc_line_addr): Likewise.
734         * write.c (fixup_segment): If the subtraction of two symbols
735         cannot be resolved but is valid, then prevent bogus range warnings
736         by pre-biasing add_number.
737         * config/tc-h8300.h (DWARF2_USE_FIXED_ADVANCE_PC): Define to 0.
738
739 2012-06-28  Sean Keys  <skeys@ipdatasys.com>
740
741         * config/tc-xgate.h: Defined tc_frob_symbol.
742         * config/tc-xgate.c (xgate_frob_symbol): Wrote new function to mark
743         symbols as being XGATE by setting st_target_internal value.
744
745 2012-06-22  Roland McGrath  <mcgrathr@google.com>
746
747         * NEWS: Mention 'rep ret' too.
748
749         * config/tc-i386.c (parse_insn): Don't complain about REP prefix
750         when the template has opcode_modifier.repprefixok set.
751         * NEWS: Mention the change.
752
753 2012-06-18  Iain Sandoe  <iain@codesourcery.com>
754
755         * configure.in: Check DECLS for free, getenv, malloc, realloc,
756         * configure: Regenerate.
757         * config.in: Likewise.
758
759 2012-06-13  H.J. Lu  <hongjiu.lu@intel.com>
760
761         * config/tc-i386.c (x86_address_bytes): New.
762         * config/tc-i386.h (TC_ADDRESS_BYTES): Likewise.
763         (x86_address_bytes): Likewise.
764
765 2012-06-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
766
767         PR gas/12698
768         * config/tc-arm.c (do_t_mrs): Do not require an m-profile
769         architecure when assembling for all archiectures.
770         (do_t_msr): Likewise.
771
772 2012-06-11  Georg-Johann Lay  <avr@gjlay.de>
773
774         PR 13503
775         * config/tc-avr.c (exp_mod): Fix typo introduced in 1.82
776         from 2012-05-16.
777
778 2012-06-09  H.J. Lu  <hongjiu.lu@intel.com>
779
780         * input-scrub.c (input_scrub_include_sb): Use sb_build to
781         allocate sufficient space for from_sb.  Use sb_terminate to
782         terminate string.
783         * read.c (read_a_source_file): Use sb_build to allocate
784         sufficient space and replace sb_add_string with sb_add_buffer.
785         (s_macro): Likewise.
786         (input_scrub_insert_line): Likewise.
787         (s_irp): Use sb_build to allocate sufficient space.
788         (do_repeat): Use sb_build to allocate sufficient space
789         for many.
790         * sb.c (sb_build): Remove static.
791         * sb.h (sb_build): New prototype.
792
793 2012-06-09  Alan Modra  <amodra@gmail.com>
794
795         * sb.c: Include limits.h.
796         (dsize): Delete.
797         (MALLOC_OVERHEAD, INIT_ALLOC): Define.
798         (sb_new): Use INIT_ALLOC.
799         (sb_check): Modify allocation strategy using MALLOC_OVERHEAD.
800         (sb_terminate): Don't use sb_add_char.
801
802 2012-06-07  Alan Modra  <amodra@gmail.com>
803
804         PR gas/14201
805         * sb.h (sb_max_power_two): Delete.
806         (struct sb): Delete "item" and "pot".  Make "len" a size_t.  Add "max".
807         (sb_element): Delete.
808         (sb_add_char, sb_add_buffer, sb_skip_comma, sb_skip_write): Update
809         prototypes.
810         * sb.c (string_count, free_list): Delete.
811         (sb_build, sb_kill, sb_check): Rewrite.
812         (scrub_from_sb, sb_add_char, sb_add_string, sb_add_buffer,
813         sb_skip_white, sb_skip_comma): Replace assorted int params,
814         vars and return types with size_t.
815         * input-scrub.c: Likewise.
816         * macro.c: Likewise.
817         * macro.h: Likewise.
818         * as.c: Likewise.
819         * as.h: Likewise.
820         * input-file.h: Likewise.
821         * input-file.c: Likewise.
822         * read.c: Likewise.
823         * app.c: ..or ptrdiff_t.
824         * input-file.c (input_file_get): Use ferror.
825         (input_file_give_next_buffer): Use input_file_get.
826
827 2012-05-31  Sean Keys  <skeys@ipdatasys.com>
828
829         * config/tc-xgate.c (md_begin): Refactored code.
830
831 2012-05-29  Roland McGrath  <mcgrathr@google.com>
832
833         * read.c [HANDLE_BUNDLE] (bundle_lock_depth): New variable.
834         (read_a_source_file) [HANDLE_BUNDLE]: Reset it.
835         [HANDLE_BUNDLE] (s_bundle_lock, s_bundle_unlock): Allow nested
836         pairs.
837
838 2012-05-28  Nick Clifton  <nickc@redhat.com>
839
840         * read.c (read_symbol_name): New function.  Reads a symbol names.
841         Allows escape codes in names.
842         (s_comm_internal): Use read_symbol_name.
843         (s_globl, s_lsym, s_set, s_weakref): Likewise.
844         * doc/as.texinfo: Document support for multibyte characters in
845         symbol names.
846
847 2012-05-21  Mike Frysinger  <vapier@gentoo.org>
848
849         * config/tc-mips.c (mips_after_parse_args): Assert that arch_info
850         is non-NULL.
851
852 2012-05-19  Alan Modra  <amodra@gmail.com>
853
854         * config/obj-elf.c (obj_elf_section): Cater for TC_KEEP_OPERAND_SPACES
855         targets when checking for "comdat".
856
857 2012-05-19  Alan Modra  <amodra@gmail.com>
858
859         * config/tc-dlx.c (s_proc): Don't use asprintf.
860
861 2012-05-18  Alan Modra  <amodra@gmail.com>
862
863         * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf
864         return value.
865
866 2012-05-18  James Lemke  <jwlemke@codesourcery.com>
867             Alan Modra  <amodra@gmail.com>
868
869         * config/tc-ppc.c: Don't capitalise error and warning messages.
870         (md_parse_option): Add checks for -a32 -mvle.
871
872 2012-05-18  Alan Modra  <amodra@gmail.com>
873
874         * config/obj-evax.c: Include as.h first.
875
876 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
877
878         * aclocal.m4: Regenerate.
879         * configure: Regenerate.
880         * Makefile.in: Regenerate.
881
882 2012-05-17  Daniel Richard G.  <skunk@iskunk.org>
883             Nick Clifton  <nickc@redhat.com>
884
885         PR 14072
886         * configure.in: Add check that sysdep.h has been included before
887         any system header files.
888         * configure: Regenerate.
889         * config.in: Regenerate.
890         * aclocal.m4: Regenerate.
891         * Makefile.am: Use wrappers around C files generated by flex.
892         * Makefile.in: Regenerate.
893         * doc/Makefile.in: Regenerate.
894         * itbl-lex-wrapper.c: New file.
895         * config/bfin-lex-wrapper.c: New file.
896         * cgen.c: Include as.h before setjmp.h.
897         * config/tc-dlx.c: Include as.h before any other header.
898         * config/tc-h8300.c: Likewise.
899         * config/tc-lm32.c: Likewise.
900         * config/tc-mep.c: Likewise.
901         * config/tc-microblaze.c: Likewise.
902         * config/tc-mmix.c: Likewise.
903         * config/tc-msp430.c: Likewise.
904         * config/tc-or32.c: Likewise.
905         * config/tc-tic4x.c: Likewise.
906         * config/tc-tic54x.c: Likewise.
907         * config/tc-xtensa.c: Likewise.
908
909 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
910
911         * config/tc-alpha.c (maybe_set_gp): Pass proper `bfd'
912         as the first argument for `bfd_get_section_vma'.
913
914 2012-05-16  Alberto Garcia  <agarcia@igalia.com>
915
916         PR gas/14082
917         * app.c (do_scrub_chars): Prevent possible out of bounds access to
918         lex[] array.
919
920 2012-05-16  Georg-Johann Lay  <avr@gjlay.de>
921
922         PR target/13503
923         * config/tc-avr.c (avr_cons_fix_new): Rename R_AVR_8_HHI8 to
924         R_AVR_8_HLO8.
925         (exp_mod_data) Ditto. And replace "hhi8" with "hlo8".
926         (md_apply_fix): Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
927
928 2012-05-16  Nathan Sidwell  <nathan@codesourcery.com>
929             Kwok Cheung Yeung  <kcy@codesourcery.com>
930
931         * config/tc-m68k.c (m68k_cpus): Add 51ag, 51je, 51jf, 51jg, 51mm,
932         51qm variants.
933
934 2012-05-15  James Murray <jsm@jsm-net.demon.co.uk>
935
936         * config/tc-m68hc11.c: Add S12X and XGATE co-processor support.
937         Add option to offset S12 addresses into XGATE memory space.
938         Tweak target flags to match other tools. (i.e. -m m68hc11).
939         * doc/as.texinfo: Mention new options.
940         * doc/c-m68hc11.texi: Document new options.
941         * NEWS: Mention new support.
942
943 2012-05-14  DJ Delorie  <dj@redhat.com>
944
945         * config/rx-parse.y (rx_range): declare.
946         (O1,O2,O3,O4): Add calls to rx_range.
947         (UO1,UO2,UO3): Likewise.
948         (IMM2,IMMB): Likewise.
949         (rx_range): New.
950
951         * config/tc-rx.c (rx_fetchalign): Declare.
952         (md_pseudo_table): Add .fetchalign.
953         (RX_NBASE_FETCHALIGN): New.
954         (fetchalign_bytes): New.
955         (rx_fetchalign): New.
956         (rx_frag_init): If a "magic" value is found, also init the
957         machine-specific data.
958         (md_assemble): Note following opcode size if called for.
959         (rx_next_opcode): New.
960         (rx_relax_frag): Support .fetchalign.
961         (md_convert_frag): Likewise.
962         * doc/c-rx.texi (RX-Directives): Add .fetchalign.
963
964 2012-05-14  James Lemke  <jwlemke@codesourcery.com>
965
966         * config/tc-ppc.c (insn_validate): New func of existing code to call..
967         (ppc_setup_opcodes): ..from 2 places here.
968         Revise for second (VLE) opcode table.
969         Add #ifdef'd code to print opcode tables.
970
971 2012-05-14  James Lemke  <jwlemke@codesourcery.com>
972
973         * config/tc-ppc.c (ppc_setup_opcodes): Allow out-of-order
974         for the VLE conditional branches.
975
976 2012-05-14  Catherine Moore  <clm@codesourcery.com>
977             Maciej W. Rozycki  <macro@codesourcery.com>
978             Rhonda Wittels  <rhonda@codesourcery.com>
979
980         * config/tc-ppc.c (PPC_VLE_SPLIT16A): New macro.
981         (PPC_VLE_SPLIT16D): New macro.
982         (PPC_VLE_LO16A): New macro.
983         (PPC_VLE_LO16D): New macro.
984         (PPC_VLE_HI16A): New macro.
985         (PPC_VLE_HI16D): New macro.
986         (PPC_VLE_HA16A): New macro.
987         (PPC_VLE_HA16D): New macro.
988         (PPC_APUINFO_VLE): New definition.
989         (md_chars_to_number): New function.
990         (md_parse_option): Check for combinations of little
991         endian and -mvle.
992         (md_show_usage): Document -mvle.
993         (ppc_arch): Recognize VLE.
994         (ppc_mach): Recognize bfd_mach_ppc_vle.
995         (ppc_setup_opcodes): Print the opcode table if
996         * config/tc-ppc.h (ppc_frag_check): Declare.
997         * doc/c-ppc.texi: Document -mvle.
998         * NEWS:  Mention PowerPC VLE port.
999
1000 2012-05-14  Catherine Moore  <clm@codesourcery.com>
1001
1002         * config/tc-ppc.h (ppc_dw2_line_min_insn_length): Declare.
1003         (DWARF2_LINE_MIN_INSN_LENGTH): Redefine.
1004         * config/tc-ppc.c (ppc_dw2_line_min_insn_length): New.
1005         * dwarf2dbg.c (scale_addr_delta): Handle values of 1
1006         for DWARF2_LINE_MIN_INSN_LENGTH.
1007
1008 2012-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1009
1010         * config/tc-i386.c (tc_gen_reloc): Remove x32 addend overflow
1011         for BFD_RELOC_64.
1012
1013 2012-05-11  Daniel Richard G.  <skunk@iskunk.org>
1014
1015         PR binutils/14028
1016         * configure.in: Invoke ACX_HEADER_STRING.
1017         * configure: Regenerate.
1018         * config.in: Regenerate.
1019         * as.h: If STRINGS_WITH_STRING is defined then include both
1020         string.h and strings.h.
1021
1022 2012-05-11  Georg-Johann Lay  <avr@gjlay.de
1023
1024         PR target/13503
1025         * config/tc-avr.c (exp_mod_pm): Remove variable.
1026         (exp_mod_data_t): New typedef.
1027         (pexp_mod_data, exp_mod_data): New variables.
1028         (avr_parse_cons_expression): Scan through exp_mod_data[] to find
1029         data expression modifiers "pm", "gs", "lo8", hi8", "hhi8", "hh8"
1030         and set pexp_mod_data accordingly to be used in avr_cons_fix_new.
1031         (avr_cons_fix_new): Handle new data expression modifiers shipped
1032         in pexp_mod_data.
1033         (md_apply_fix): Handle BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
1034         BFD_RELOC_AVR_8_HHI.
1035
1036 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1037
1038         * config/tc-i386.c (tc_gen_reloc): Use bfd_signed_vma in x32
1039         addend overflow check.
1040
1041 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1042
1043         * config/tc-i386.c (tc_gen_reloc): Display signed hex number in
1044         x32 addend overflow check.
1045
1046 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1047
1048         * config/tc-i386.c (tc_gen_reloc): Use fits_in_signed_long.
1049
1050 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1051
1052         * config/tc-i386.c (tc_gen_reloc): Check x32 addend overflow
1053         for BFD_RELOC_64.
1054
1055 2012-05-08  Alan Modra  <amodra@gmail.com>
1056
1057         * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
1058         LC and LANG environment vars.
1059         * Makefile.in: Regenerate.
1060
1061 2012-05-07  Alan Modra  <amodra@gmail.com>
1062
1063         * Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
1064         * Makefile.in: Regenerate.
1065
1066 2012-05-06  Arnold Metselaar <arnold_m@operamail.com>
1067
1068         * config/tc-z80.h(md_register_arithmetic): Define as 0.
1069         * config/tc-z80.c(md_begin): Store register names in symbol table,
1070         preventing usage as ordinary symbol.
1071         * config/tc-z80.c(contains_register): New function.
1072         * config/tc-z80.c(parse_exp2): Removed.
1073         * config/tc-z80.c(parse_exp_not_indexed): New function.
1074         * config/tc-z80.c(parse_exp): Add code to recogize indexed
1075         addressing after parsing.
1076         * config/tc-z80.c(emit_byte, emit_word): Use contains_register.
1077         * config/tc-z80.c(emit_jp): Use parse_exp_not_indexed, simplify
1078         condition for jump to register.
1079         * config/tc-z80.c(emit_call, emit_jr, emit_ex, emit_rst): Use
1080         parse_exp_not_indexed.
1081
1082 2012-05-05  Alan Modra  <amodra@gmail.com>
1083
1084         * ecoff.c: Replace all uses of bfd_abs_section, bfd_com_section,
1085         bfd_und_section and bfd_ind_section with their _ptr variants, or
1086         use corresponding bfd_is_* macros.
1087         * symbols.c: Likewise.
1088         * config/obj-aout.c: Likewise.
1089         * config/obj-coff-seh.h: Likewise.
1090         * config/tc-hppa.c: Likewise.
1091         * config/tc-hppa.h: Likewise.
1092         * config/tc-ia64.c: Likewise.
1093         * config/tc-m32r.c: Likewise.
1094         * config/tc-microblaze.c: Likewise.
1095         * config/tc-mips.c: Likewise.
1096         * config/tc-score.c: Likewise.
1097         * config/tc-score7.c: Likewise.
1098         * config/tc-tic6x.c: Likewise.
1099
1100 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1101
1102         * configure.tgt: Support x86_64-*-linux-gnux32.
1103
1104 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1105
1106         * config/tc-i386.c (match_template): Add `instruction' to
1107         unsupported error message.
1108
1109 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1110
1111         * config/tc-i386.c (output_insn): Reformat.
1112
1113 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1114
1115         * config/tc-i386.c (output_insn): Remove the extra VEX check.
1116
1117 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1118
1119         * config/tc-i386.c (match_template): Improve unsupported error
1120         message.
1121
1122 2012-05-03  Sean Keys  <skeys@ipdatasys.com>
1123
1124         * configure, Makefile.in: Regenerate.
1125         * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
1126         * configure.tgt: Added cpu type.
1127         Added files for XGATE assembler.
1128         * config/tc-xgate.c: Assembler for XGATE.
1129         * config/tc-xgate.h: Header definition for assembler
1130         Added files for XGATE testsuite.
1131         * doc/Makefile.am (CPU_DOCS): Added XGATE file.
1132         * doc/c-xgate.texi: Document XGATE and XGATE port.
1133         * doc/as.texinfo: Ditto.
1134         * doc/all.texi: Ditto
1135         * NEWS: Mention the new support.
1136
1137 2012-04-30  DJ Delorie  <dj@redhat.com>
1138
1139         * config/rx-parse.y (rx_intop): Add parameter for operation size.
1140         Check for large positive constants really being small negative
1141         ones.
1142         (BRA, BSR): Update calls to rx_intop.
1143         (immediate): Likewise.
1144
1145 2012-04-26  Mark Wielaard  <mjw@redhat.com>
1146
1147         * dwarf2dbg.c (DWARF2_ARANGES_VERSION): New define to 2.
1148         (DWARF2_LINE_VERSION): Likewise.
1149         (out_debug_line): Use DWARF2_LINE_VERSION not DWARF2_VERSION.
1150         (out_debug_aranges): Use DWARF2_ARANGES_VERSION not DWARF2_VERSION.
1151         (out_debug_abbrev): Use DW_FORM_data for DW_AT_high_pc when
1152         DWARF2_VERSION >= 4.
1153         (out_debug_info): Use difference between start and end as data
1154         value for DW_AT_high_pc when DWARF2_VERSION >= 4.
1155         * config/tc-ia64.h (DWARF2_LINE_VERSION): Override it.
1156
1157 2012-04-27  David S. Miller  <davem@davemloft.net>
1158
1159         * doc/c-sparc.text: Document %l34 and %h34.
1160
1161         * config/tc-sparc.c (v9a_asr_table): Add 'cfr'.
1162
1163         * config/tc-sparc.c (sparc_arch_table): Add HWCAP_PAUSE to sparc4,
1164         v8pluse, v8plusv, v9e, and v9v.
1165         (v9a_asr_table): Add 'pause'.
1166
1167         * config/tc-sparc.c (sparc_arch_table): Add HWCAP_CBCOND to
1168         sparc4, v8pluse, v8plusv, v9e, and v9v.
1169         (sparc_ip): Handle R_SPARC_5 of immediate constants inline in
1170         order to accomodate cbcond which otherwise would require two
1171         relocations to be handled in a single instruction..
1172
1173         * config/tc-sparc.c (sparc_ip): Likewise.  Accept instruction
1174         names containing "_".
1175         (sparc_arch_table): Add sparc4, v8pluse, and v9e.  Add crypto
1176         hwcap masks to v8plusv and v9v.
1177
1178         * config/tc-sparc.c (sparc_arch_table): Rework to use HWCAP_*
1179         masks.
1180         (sparc_md_end): No longer need to translate hwcap_seen values into
1181         ELF hwcap bits, they now match exactly.
1182         (get_hwcap_name): Use HWCAP_* and handle new values.
1183         (sparc_ip): Fetch hwcaps from insn->hwcaps instead of insn->flags.
1184
1185 2012-04-20  Tristan Gingold  <gingold@adacore.com>
1186
1187         * config/tc-ia64.c (obj_elf_vms_common): New function.
1188         (md_pseudo_table): Add .vms_common pseudo.
1189         * config/obj-elf.h (obj_elf_section_name): Add a prototype.
1190         * config/obj-elf.c (obj_elf_section_name): Make it public.
1191
1192 2012-04-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
1193
1194         * config/tc-avr.c (md_apply_fix): Fix handling of BFD_RELOC32.
1195
1196 2012-04-12  David S. Miller  <davem@davemloft.net>
1197
1198         * config/tc-sparc.c (sparc_ip): Handle '=', "%h34", "%l34", and
1199         BFD_RELOC_SPARC_H34.
1200         (md_apply_fix): Handle BFD_RELOC_SPARC_WDISP10 and BFD_RELOC_SPARC_H34.
1201         (tc_gen_reloc): Likewise.
1202
1203 2012-04-12  Roland McGrath  <mcgrathr@google.com>
1204
1205         * configure.tgt (arm-*-nacl*): Match it.
1206         * config/te-nacl.h (FPU_DEFAULT, EABI_DEFAULT): Define.
1207         (LOCAL_LABELS_DOLLAR): Define.
1208         * config/tc-arm.c (elf32_arm_target_format) [TE_NACL]:
1209         Use nacl format variants.
1210
1211 2012-04-12  Jie Zhang  <jie@codesourcery.com>
1212             Meador Inge  <meadori@codesourcery.com>
1213
1214         * config/tc-arm.c (only_one_reg_in_list): New function.
1215         (encode_ldmstm): Ditto.
1216         (do_ldmstm): Use a different encoding when pushing or poping
1217         a single register.
1218         (A_COND_MASK): New macro.
1219         (A_PUSH_POP_OP_MASK): Ditto.
1220         (A1_OPCODE_PUSH): Ditto.
1221         (A2_OPCODE_PUSH): Ditto.
1222         (A2_OPCODE_POP): Ditto.
1223
1224 2012-04-06  Maciej W. Rozycki  <macro@linux-mips.org>
1225
1226         * doc/c-mips.texi (MIPS Opts): Correct -no-mfix-24k to
1227         -mno-fix-24k.
1228
1229 2012-04-06  Roland McGrath  <mcgrathr@google.com>
1230
1231         * configure.in (AC_CHECK_HEADERS): Add locale.h.
1232         * config.in: Regenerate.
1233         * configure: Regenerate.
1234
1235 2012-04-05  Nick Clifton  <nickc@redhat.com>
1236
1237         * configure.in (AC_CHECK_FUNCS): Add setlocale.
1238         (AM_LC_MESSAGES): Add.
1239         * aclocal.m4: Regenerate.
1240         * config.in: Regenerate.
1241         * configure: Regenerate.
1242
1243 2012-04-03  DJ Delorie  <dj@redhat.com>
1244
1245         * config/rx-parse.y: Make the .L optional for ADC and SBB.
1246
1247 2012-04-02  DJ Delorie  <dj@redhat.com>
1248
1249         * config/rx-parse.y: IMM->IMM_, take an extra parameter for the
1250         transfer size.
1251         (IMM): New, call IMM_ with the default 32.
1252         (IMMW,IMMB): Likewise, for 16 and 8.
1253         (NIMM, MBIMM): Add size parameter.
1254         (immediate): Likewise.  Allow 32768..65535 for 16-bit transfers.
1255         (MOV.W): Use IMMW instead of IMM.
1256
1257         * config/rx-parse.y (ADC,SBB): ADC and SBB only allow .L.
1258         (op_dp20_rm_l): New.
1259         (op_dp20_rim_l): New.
1260
1261         * config/rx-parse.y (op_dp20_rms): Rename to op_dp20_rr, don't allow mem.
1262         (ABS, NEG, NOT): These only take REG or REG,REG (rr, not rms).
1263
1264 2012-03-29  Terry Guo  <terry.guo@arm.com>
1265
1266         * config/tc-arm.c (arm_cpus): Add cortex-m0plus.
1267         * doc/c-arm.texi (ARM Options): Document -mcpu=cortex-m0plus.
1268
1269 2012-03-23  Maxim Kuvyrkov  <maxim@codesourcery.com>
1270
1271         * config/tc-mips.c (mips_cpu_info_table): Add entry for Broadcom XLP.
1272         * doc/c-mips.texi: Mention XLP.
1273
1274 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1275
1276         [SH] Support the .uaquad and .8byte directives also for non-sh64
1277         configurations.
1278
1279         * config/tc-sh.c (sh_cons_fix_new, md_apply_fix) [!HAVE_SH64]: Handle
1280         BFD_RELOC_64.
1281         * doc/c-sh64.texi (SH64 Machine Directives): Move .uaquad
1282         description...
1283         * doc/c-sh.texi (SH Machine Directives): ... here.
1284
1285 2012-03-20  Nick Clifton  <nickc@redhat.com>
1286
1287         * config/tc-arm.c (do_vmrs): Accept priviledged mode VFP system
1288         registers.
1289         (do_vmsr): Likewise.
1290         (arm_opcode_insns): Do not default to using the FPSCR register in
1291         the VMRS and VMSR registers.
1292
1293 2012-03-16  Roland McGrath  <mcgrathr@google.com>
1294
1295         * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT32, ELF_TARGET_FORMAT64):
1296         Define for this case.
1297         * configure.tgt (i386-*-nacl*): If ${cpu} is x86_64*, default to x32.
1298
1299 2012-03-16  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1300
1301         * config/tc-arm.c (aeabi_set_public_attributes): Correct
1302         handling of Tag_DIV_use.
1303
1304 2012-03-15  Thomas Schwinge  <thomas@codesourcery.com>
1305
1306         * doc/as.texinfo (Bundle directives): Fix typo.
1307
1308 2012-03-14  Ryan Mansfield  <rmansfield@qnx.com>
1309
1310         * doc/as.texinfo (Bundle directives): Replace @defn with @dfn.
1311
1312 2012-03-13  Roland McGrath  <mcgrathr@google.com>
1313
1314         * config/tc-arm.c (arm_frag_max_var): New function.
1315         * config/tc-arm.h: Declare it.
1316         (md_frag_max_var): New macro.
1317
1318         * config/tc-i386.c (i386_frag_max_var): New function.
1319         * config/tc-i386.h: Declare it.
1320         (md_frag_max_var): New macro.
1321
1322         * doc/as.texinfo (Bundle directives): New node.
1323         (Pseudo Ops): Add it to the menu.
1324         * NEWS: Mention new feature.
1325         * read.c [md_frag_max_var] (HANDLE_BUNDLE): New macro.
1326         [HANDLE_BUNDLE] (bundle_align_p2): New variable.
1327         [HANDLE_BUNDLE] (bundle_lock_frchain, bundle_lock_frag): New variables.
1328         [HANDLE_BUNDLE] (start_bundle, pending_bundle_size, finish_bundle):
1329         New functions.
1330         (assemble_one): New function if [HANDLE_BUNDLE], #define directly
1331         to md_assembly if not.
1332         (read_a_source_file): Call assemble_one in place of md_assemble.
1333         (read_a_source_file) [HANDLE_BUNDLE]: Check for unterminated
1334         .bundle_lock at end of processing.
1335         [HANDLE_BUNDLE] (s_bundle_align_mode, s_bundle_lock, s_bundle_unlock):
1336         New functions.
1337         [HANDLE_BUNDLE] (potable): Add their entries.
1338         * read.h: Declare new functions.
1339
1340 2012-03-10  Edmar Wienskoski  <edmar@freescale.com>
1341
1342         * config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.
1343         (ppc_handle_align): Add termination nop opcode for e500mc family.
1344         * doc/as.texinfo: Document options -me5500 and -me6500.
1345         * doc/c-ppc.texi: Likewise.
1346
1347 2012-03-07  Nick Clifton  <nickc@redhat.com>
1348
1349         * config/tc-mn10300.c (other_registers): Add SSP and USP.
1350         (md_assemble): Add support for TLS relocs.
1351         (mn10300_parse_name): Likewise.
1352
1353 2012-02-27  Alan Modra  <amodra@gmail.com>
1354
1355         * config/tc-crx.c (check_range): Correct uint32_t misconceptions.
1356
1357 2012-02-27  Alan Modra  <amodra@gmail.com>
1358
1359         * config/tc-tic4x.c (tic4x_do_align): Remove ATTRIBUTE_UNUSED on
1360         params.  Properly generate NOP pattern.  Comment reason for
1361         subseg_text_p failure.
1362
1363 2012-02-27  Alan Modra  <amodra@gmail.com>
1364
1365         * config/tc-h8300.c (constant_fits_width_p): Trim constant to 32 bits
1366         and sign extend before range tests.
1367         (constant_fits_size_p): Similarly.
1368         (get_specific): Trim X_add_number to 32 bits.
1369         (fix_operand_size): Likewise, and use unsigned test for signed
1370         ranges.
1371
1372 2012-02-27  Alan Modra  <amodra@gmail.com>
1373
1374         * config/tc-crx.c: Include bfd_stdint.h.
1375         (getconstant): Remove irrelevant comment.  Don't fail due to
1376         sign-extension of int mask.
1377         (check_range): Rewrite using unsigned arithmetic throughout.
1378
1379 2012-02-25  Walter Lee  <walt@tilera.com>
1380
1381         * tc-tilepro.c (emit_tilepro_instruction): Check if symbol is
1382         non-local before checking sy_value.
1383         * tc-tilegx.c (emit_tilegx_instruction): Ditto.
1384
1385 2012-02-25  Walter Lee  <walt@tilera.com>
1386
1387         * tc-tilepro.c (O_tls_le): Define operator.
1388         (O_tls_le_lo16): Ditto.
1389         (O_tls_le_hi16): Ditto.
1390         (O_tls_le_ha16): Ditto.
1391         (O_tls_gd_call): Ditto.
1392         (O_tls_gd_add): Ditto.
1393         (O_tls_ie_load): Ditto.
1394         (md_begin): Delete old operators; handle new operators.
1395         (emit_tilepro_instruction): Ditto.
1396         (md_apply_fix): Ditto.
1397         * tc-tilegx.c (O_hw1_got): Delete operator.
1398         (O_hw2_got): Ditto.
1399         (O_hw3_got): Ditto.
1400         (O_hw2_last_got): Ditto.
1401         (O_hw1_tls_gd): Ditto.
1402         (O_hw2_tls_gd): Ditto.
1403         (O_hw3_tls_gd): Ditto.
1404         (O_hw2_last_tls_gd): Ditto.
1405         (O_hw1_tls_ie): Ditto.
1406         (O_hw2_tls_ie): Ditto.
1407         (O_hw3_tls_ie): Ditto.
1408         (O_hw2_last_tls_ie): Ditto.
1409         (O_hw0_tls_le): Define operator.
1410         (O_hw0_last_tls_le): Ditto.
1411         (O_hw1_last_tls_le): Ditto.
1412         (O_tls_gd_call): Ditto.
1413         (O_tls_gd_add): Ditto.
1414         (O_tls_ie_load): Ditto.
1415         (O_tls_add): Ditto.
1416         (md_begin): Delete old operators; handle new operators.
1417         (emit_tilegx_instruction): Ditto.
1418         (md_apply_fix): Ditto.
1419         * doc/c-tilegx.texi: Delete old operators; document new operators.
1420         * doc/c-tilepro.texi: Ditto.
1421
1422 2012-02-25  Walter Lee  <walt@tilera.com>
1423
1424         * tc-tilepro.c (apply_special_operator): delete cases for
1425         got and tls operators.
1426         (md_apply_fix): Ditto.
1427         * tc-tilegx.c (md_begin): Set architecture and machine.
1428         (tilegx_target_format): Handle big endian.
1429         (OPTION_EB): Define.
1430         (OPTION_EL): Define.
1431         (md_longopts): Add entries for "EB" and "EL".
1432         (md_parse_option): Handle OPTION_EB and OPTION_EL.
1433         (md_show_usage): Add -EB and -EL.
1434         (md_number_to_chars): New.
1435         (apply_special_operator): delete cases for got and tls
1436         operators.
1437         (md_apply_fix): Ditto.
1438         * tc-tilegx.h (TARGET_BYTES_BIG_ENDIAN): Guard definition with
1439         ifndef.
1440         (md_number_to_chars): Delete.
1441         * configure.tgt (tilegx*be): Handle.
1442         * doc/as.texinfo [TILE-Gx]: Document -EB and -EL.
1443         * doc/c-tilegx.texi: Ditto.
1444
1445 2012-02-21  H.J. Lu  <hongjiu.lu@intel.com>
1446
1447         * config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
1448         HLEPrefixAny and HLEPrefixRelease.
1449
1450 2012-02-21  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1451
1452         * gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
1453
1454 2012-02-21  Iain Sandoe  <idsandoe@googlemail.com>
1455
1456         * write.c (write_object_file): Add md_pre_output_hook.
1457         * config/obj-macho.c (obj_mach_o_check_before_writing): New.
1458         (obj_mach_o_pre_output_hook): New.
1459         * config/obj-macho.h (md_pre_output_hook): Define.
1460         (obj_mach_o_pre_output_hook): Declare.
1461
1462 2012-02-21  Tristan Gingold  <gingold@adacore.com>
1463
1464         * config/tc-i386.h (OBJ_MACH_O): New section.
1465         (TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
1466         (TC_FORCE_RELOCATION_SUB_SAME): New
1467         (TC_FORCE_RELOCATION_SUB_LOCAL): New.
1468         (TC_VALIDATE_FIX_SUB): New.
1469         * frags.h (struct frag): OBJ_FRAG_TYPE, new field.
1470         * symbols.c (colon): obj_frob_colon: New hook.
1471         * write.c (write_object_file): md_pre_relax_hook, new
1472         hook.
1473         * config/obj-macho.c (obj_mach_o_frob_colon): New.
1474         (obj_mach_o_frob_label): Record sub-section labels.
1475         (obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
1476         (obj_mach_o_set_subsections): New.
1477         (obj_mach_o_pre_relax_hook): New.
1478         (obj_mach_o_in_different_subsection): New.
1479         (obj_mach_o_force_reloc_sub_same): New.
1480         (obj_mach_o_force_reloc_sub_local): New.
1481         (obj_mach_o_force_reloc): New.
1482         * config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
1483         (obj_frob_colon): New Define.
1484         (obj_mach_o_frob_label): Renamed.
1485         (obj_mach_o_frob_symbol): Renamed.
1486         (OBJ_FRAG_TYPE): New.
1487         (obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
1488          obj_mach_o_force_reloc_sub_same,
1489          obj_mach_o_force_reloc_sub_local): New declarations.
1490
1491 2012-02-20  Iain Sandoe  <idsandoe@googlemail.com>
1492
1493         * config/obj-macho.c (obj_mach_o_is_frame_section): New.
1494         (obj_mach_o_allow_local_subtract): New.
1495         * config/obj-macho.h (md_allow_local_subtract): Define.
1496         (obj_mach_o_allow_local_subtract): Declare.
1497
1498 2012-02-20  Iain Sandoe  <idsandoe@googlemail.com>
1499
1500         * config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of
1501         canonical information, try to determine CODE and DEBUG section flags
1502         from the mach-o section data.
1503
1504 2012-02-20  Nick Clifton  <nickc@redhat.com>
1505
1506         * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
1507         local symbols.
1508
1509 2012-02-12  Iain Sandoe  <idsandoe@googlemail.com>
1510
1511         * config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
1512         any local symbol used as an indirect.
1513
1514 2012-02-10  Iain Sandoe  <idsandoe@googlemail.com>
1515
1516         * config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
1517         stub size when provided.  (obj_mach_o_section): Flag that stub-size
1518         has been provided.
1519
1520 2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>
1521
1522         * config/tc-i386.c (HLE_PREFIX): New.
1523         (check_hle): Likewise.
1524         (_i386_insn): Add have_hle.
1525         (cpu_arch): Add .hle and .rtm.
1526         (md_assemble): Call check_hle if i.have_hle isn't zero.
1527         (parse_insn): Set i.have_hle to 1 for HLE prefix.
1528         (output_jump): Support up to 2 byte opcode.
1529
1530         * doc/c-i386.texi: Document hle/.hle and rtm/.rtm.
1531
1532 2012-02-02  Tristan Gingold  <gingold@adacore.com>
1533
1534         * config/obj-macho.c (obj_mach_o_zerofill): Silent
1535         uninitialized variable warning.
1536
1537 2012-02-02  Nick Clifton  <nickc@redhat.com>
1538
1539         PR gas/13224
1540         * config/obj-elf.c (obj_elf_parse_section_letters): Rename 'clone'
1541         to 'is_clone' to avoid shadowing a gloabl.
1542         (obj_elf_section): Likewise.
1543
1544 2012-01-31  Paul Brook  <paul@codesourcery.com>
1545
1546         * doc/c-tic6x.c: Fix typo.
1547
1548 2012-01-26  Alexey Makhalov  <makhaloff@gmail.com>
1549
1550         PR gas/13624
1551         * app.c (app_push): Set 'add_newlines' to zero after saving.
1552
1553 2012-01-24  DJ Delorie  <dj@redhat.com>
1554
1555         * config/rl78-parse.y (NOT1): Add.
1556
1557 2012-01-23  Roland McGrath  <mcgrathr@google.com>
1558
1559         * configure.tgt (i386-*-nacl*): Match it.
1560         * config/te-nacl.h: New file.
1561         * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT): Define for this case.
1562         * config/tc-i386.c [TE_NACL] (i386_comment_chars, PREFIX_SEPARATOR):
1563         Use TE_GNU et al case for TE_NACL too.
1564
1565 2012-01-20  H.J. Lu  <hongjiu.lu@intel.com>
1566
1567         * config/tc-i386.c (_i386_insn): Replace disp32_encoding with
1568         disp_encoding.
1569         (md_assemble): Updated.
1570         (output_branch): Likewise.
1571         (parse_insn): Support .d8 suffix.
1572         (build_modrm_byte): Fake zero displacement for .d8 and .d32
1573         suffixes.
1574
1575         * doc/c-i386.texi: Document .d8 suffix.
1576
1577 2012-01-17  Andrew Burgess  <aburgess@broadcom.com>
1578
1579         * write.c (fix_new_internal): Don't mark used parameter as unused.
1580
1581 2012-01-17  Alan Modra  <amodra@gmail.com>
1582
1583         * as.c (parse_args): Update copyright message year.
1584
1585 2012-01-13  H.J. Lu  <hongjiu.lu@intel.com>
1586
1587         * config/tc-i386.c (cpu_arch): Add ".vmfunc".
1588
1589         * doc/c-i386.texi: Document vmfunc.
1590
1591 2012-01-13  Tristan Gingold  <gingold@adacore.com>
1592
1593         * config/obj-macho.c (obj_mach_o_reorder_section_relocs): New.
1594         * config/obj-macho.h (SET_SECTION_RELOCS): Define.
1595         (obj_mach_o_reorder_section_relocs): Declare.
1596
1597 2012-01-13  Iain Sandoe  <idsandoe@googlemail.com>
1598
1599         * config/obj-macho.c (obj_mach_o_set_indirect_symbols): Handle
1600         absolute indirect symbols.
1601
1602 2012-01-13  Iain Sandoe  <idsandoe@googlemail.com>
1603
1604         * config/obj-macho.c (obj_mach_o_set_vma_data): New type.
1605         (obj_mach_o_set_section_vma): New.
1606         (obj_mach_o_post_relax_hook): New.
1607         * config/obj-macho.h (md_post_relax_hook): Define.
1608         (obj_mach_o_post_relax_hook): Declare.
1609
1610 2012-01-12  Iain Sandoe  <idsandoe@googlemail.com>
1611
1612         * config/obj-macho.c (obj_mach_o_set_symbol_qualifier): Switch off
1613         lazy when the symbol is private_extern.
1614         (obj_mach_o_indirect_sym): New type.
1615         (obj_mach_o_indirect_symbol): New.
1616         (mach_o_pseudo_table): Use obj_mach_o_indirect_symbol.
1617         (obj_macho_frob_label): Adjust to avoid adding bsyms for locals.
1618         (obj_macho_frob_label): Likewise.  Adjust external and comm
1619         symbol tests.
1620         (obj_mach_o_set_indirect_symbols): New.
1621         (obj_mach_o_frob_file_after_relocs): New.
1622         *config/obj-macho.h (obj_frob_file_after_relocs): Define.
1623         (obj_mach_o_frob_file_after_relocs): Declare.
1624
1625 2012-01-12  Tristan Gingold  <gingold@adacore.com>
1626
1627         PR gas/13591
1628         * config/obj-coff.h (sy_obj): Rename macro to avoid a name conflict.
1629
1630 2012-01-10  Tristan Gingold  <gingold@adacore.com>
1631
1632         * struc-symbol.h (struct symbol_flags): New struct, created from...
1633         (struct symbol): ... this one.  Add sy_flags field, remove flag fields.
1634         (struct local_symbol): Replace lsy_marker field by lsy_flags.
1635         Adjust comment.
1636         (local_symbol_resolved_p): Adjust.
1637         (local_symbol_mark_resolved): Likewise.
1638         * symbols.c (LOCAL_SYMBOL_CHECK): Adjust.
1639         (local_symbol_make, local_symbol_convert, colon)
1640         (symbol_clone_if_forward_ref, verify_symbol_chain)
1641         (resolve_symbol_value, snapshot_symbol, S_GET_VALUE)
1642         (S_IS_WEAKREFR, S_IS_WEAKREFD, S_IS_VOLATILE, S_IS_FORWARD_REF)
1643         (S_SET_WEAKREFR, S_CLEAR_WEAKREFR, S_SET_WEAKREFD)
1644         (S_CLEAR_WEAKREFD, S_SET_VOLATILE, S_CLEAR_VOLATILE)
1645         (S_SET_FORWARD_REF, symbol_same_p, symbol_mark_used)
1646         (symbol_clear_used, symbol_used_p, symbol_mark_used_in_reloc)
1647         (symbol_clear_used_in_reloc, symbol_used_in_reloc_p)
1648         (symbol_mark_mri_common, symbol_clear_mri_common)
1649         (symbol_mri_common_p, symbol_mark_written, symbol_clear_written)
1650         (symbol_written_p, symbol_mark_resolved, symbol_resolved_p)
1651         (symbol_equated_reloc_p, dot_symbol_init)
1652         (print_symbol_value_1): Adjust.
1653
1654 2012-01-09  Iain Sandoe  <idsandoe@googlemail.com>
1655
1656         * config/obj-macho.c (obj_mach_o_weak): Remove.
1657         (obj_mach_o_common_parse): Set symbol qualifiers.
1658         (LAZY, REFE): New macros.
1659         (obj_mach_o_symbol_type): New enum.
1660         (obj_mach_o_set_symbol_qualifier): New.
1661         (obj_mach_o_sym_qual): New.
1662         (mach_o_pseudo_table): Add symbol qualifiers, set indirect_symbol to
1663         a dummy function.
1664         (obj_mach_o_type_for_symbol): New.
1665         (obj_macho_frob_label): New.
1666         (obj_macho_frob_symbol): New.
1667         * config/obj-macho.h (S_SET_ALIGN): Amend temorary var name.
1668         (obj_frob_label, obj_macho_frob_label): Declare.
1669         (obj_frob_symbol, obj_macho_frob_symbol): Declare.
1670
1671 2012-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
1672
1673         * config/tc-mips.c (s_tls_rel_directive): Call mips_clear_insn_labels.
1674
1675 2012-01-08  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
1676             Richard Sandiford  <rdsandiford@googlemail.com>
1677
1678         * config/tc-mips.c (mips_move_labels): Take the list of labels and
1679         textness as parameters.
1680         (mips_move_text_labels): New function.
1681         (append_insn): Use it instead of mips_move_labels.
1682         (mips_emit_delays, start_noreorder): Likewise.
1683         (mips_align): Take the labels rather than just one label.
1684         Move all labels to after the .align.
1685         (s_align): Change the last argument to mips_align.
1686         (s_cons): Likewise.
1687         (s_float_cons): Likewise.
1688         (s_gpword): Likewise.
1689         (s_gpdword): Likewise.
1690
1691 2012-01-06  Tristan Gingold  <gingold@adacore.com>
1692
1693         * config/tc-i386.c: Update copyright year.
1694         (lex_got): Also defined for Mach-O.
1695         Add a guard for non-ELF configuration.
1696         (md_longopts): Also handle -64 for Mach-O.
1697         (md_parse_option): Likewise.
1698         (i386_target_format): Adjust for x86_64-darwin.
1699
1700 2012-01-04  Iain Sandoe  <idsandoe@googlemail.com>
1701
1702         * config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Tidy definition.
1703         (obj_mach_o_get_section_names): New (split from obj_mach_o_section).
1704         (obj_mach_o_make_or_get_sect): Likewise.
1705         (obj_mach_o_section): Split out the functionality shared with zerofill.
1706         (obj_mach_o_zerofill): New.
1707         (obj_mach_o_common_parse): Ensure whitespace is skipped.
1708         (mach_o_pseudo_table): Add .zerofill.
1709
1710 2012-01-03  Iain Sandoe  <idsandoe@googlemail.com>
1711
1712         * config/obj-macho.c (obj_macho_process_stab): New.
1713         * config/obj-macho.h (OBJ_PROCESS_STAB): Define.
1714         (obj_macho_process_stab): Declare.
1715
1716 For older changes see ChangeLog-2011
1717 \f
1718 Local Variables:
1719 mode: change-log
1720 left-margin: 8
1721 fill-column: 74
1722 version-control: never
1723 End: