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