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