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