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