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