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