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