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