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