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