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