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