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