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