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