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