gas/
[binutils-gdb.git] / gas / ChangeLog
1 2009-07-21 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR gas/10420
4 * config/tc-i386.c (i386_align_code): Tune for 32bit nops in
5 64bit.
6 (i386_target_format): Set cpu_arch_isa_flags.bitfield.cpulm
7 for 64bit.
8
9 2009-07-17 H.J. Lu <hongjiu.lu@intel.com>
10
11 * config/tc-i386.c (md_assemble): Update operand types.
12 (update_imm): Updated.
13 (finalize_imm): Update the first 2 immediate operands only
14 for instructions with 2 operands or more.
15
16 2009-07-17 H.J. Lu <hongjiu.lu@intel.com>
17
18 * config/tc-i386.c (md_assemble): Check implicit registers
19 only for instructions with 3 operands or less.
20
21 2009-07-17 Nick Clifton <nickc@redhat.com>
22
23 * config/tc-avr.c (md_apply_fix): Cast fixup reloc type to avoid
24 compile time warning.
25
26 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
27
28 * config/tc-i386.c (md_assemble): Only check i.operands for AX.
29 (md_estimate_size_before_relax): Don't relax IFUNC symbols.
30
31 2009-07-16 Nathan Sidwell <nathan@codesourcery.com>
32
33 * config/tc-arm.c (md_apply_fix <BFD_RELOC_ARM_TARGET2>): Write
34 the offset for REL targets here.
35
36 2009-07-15 Kai Tietz <kai.tietz@onevision.com>
37
38 * listing.c (print_source): Initialize cache by NULL.
39
40 2009-07-15 Daniel Gutson <dgutson@codesourcery.com>
41
42 * doc/c-arm.texi (mauto-it): Removed old option.
43 (mimplicit-it): Added right option.
44
45 2009-07-14 Daniel Gutson <dgutson@codesourcery.com>
46
47 * config/tc-arm.h (MAX_MEM_ALIGNMENT_BYTES): Define.
48 (MAX_MEM_FOR_RS_ALIGN_CODE): Define in terms of
49 MAX_MEM_ALIGNMENT_BYTES.
50 * config/tc-arm.c (arm_frag_align_code): Replace hard coded
51 constant with MAX_MEM_FOR_RS_ALIGN_CODE.
52
53 2009-07-14 Nick Clifton <nickc@redhat.com>
54
55 PR 10387
56 * config/tc-arm.h (THUMB_IS_FUNC): Handle a NULL pointer.
57 (ARM_IS_FUNC): Likewise.
58
59 2009-07-14 Daniel Gutson <dgutson@codesourcery.com>
60
61 * config/tc-arm.c (md_assemble): Added validation.
62
63 2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
64
65 * Makefile.am: Run "make dep-am".
66 * Makefile.in: Regenerated.
67
68 2009-07-10 Tom Tromey <tromey@redhat.com>
69
70 * Makefile.am (DEPTC_alpha_ecoff): Refer to dwarf2.h, not
71 elf/dwarf2.h.
72 (DEPTC_alpha_elf): Likewise.
73 (DEPTC_alpha_evax): Likewise.
74 (DEPTC_arm_elf): Likewise.
75 (DEPTC_hppa_elf): Likewise.
76 (DEPTC_i386_aout): Likewise.
77 (DEPTC_i386_coff): Likewise.
78 (DEPTC_i386_elf): Likewise.
79 (DEPTC_m68k_aout): Likewise.
80 (DEPTC_m68k_coff): Likewise.
81 (DEPTC_m68k_elf): Likewise.
82 (DEPTC_mips_coff): Likewise.
83 (DEPTC_mips_ecoff): Likewise.
84 (DEPTC_mips_elf): Likewise.
85 (DEPTC_ppc_coff): Likewise.
86 (DEPTC_ppc_elf): Likewise.
87 (DEPTC_s390_elf): Likewise.
88 (DEPTC_sh_coff): Likewise.
89 (DEPTC_sh_elf): Likewise.
90 (DEPTC_sh64_elf): Likewise.
91 (DEPTC_sparc_aout): Likewise.
92 (DEPTC_sparc_coff): Likewise.
93 (DEPTC_sparc_elf): Likewise.
94 (as.o): Likewise.
95 (dwarf2dbg.o): Likewise.
96 (dw2gencfi.o): Likewise.
97 (ehopt.o): Likewise.
98 (read.o): Likewise.
99 * Makefile.in: Rebuild.
100 * dw2gencfi.h: Include dwarf2.h, not elf/dwarf2.h.
101 * dwarf2dbg.c: Likewise.
102 * ehopt.c: Likewise.
103
104 2009-07-09 Daniel Gutson <dgutson@codesourcery.com>
105
106 * config/tc-arm.c (it_fsm_post_encode): New forward declaration.
107 (set_it_insn_type_nonvoid): New macro.
108 (emit_thumb32_expr): New function.
109 (thumb_insn_size): New function.
110 (emit_insn): New function.
111 (s_arm_elf_inst): New function.
112 (md_pseudo_table): New pseudo-opcode entries added.
113 * doc/c-arm.texi: New directive added.
114
115 2009-07-07 DJ Delorie <dj@redhat.com>
116
117 * config/tc-mep.c (md_begin): Don't reset the coprocessor options
118 when enabling other options without a specific configuration.
119
120 2009-07-07 Chung-Lin Tang <cltang@pllab.cs.nthu.edu.tw>
121
122 * config/tc-arm.c (insns): Fix encoding for torvsc.
123
124 2009-07-06 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
125
126 * config/tc-i386.c (cpu_arch): Add .fma4 and CPU_FMA4_FLAGS.
127 (build_modrm_byte): Add support to handle FMA4 instructions.
128 (md_show_usage): Add fma4.
129
130 2009-07-04 Alan Modra <amodra@bigpond.net.au>
131
132 * config/tc-cr16.h (TC_LINKRELAX_FIXUP): Set only for code sections.
133
134 2009-07-02 Tristan Gingold <gingold@adacore.com>
135
136 * Makefile.am (OBJ_FORMATS): Add macho.
137 (CPU_OBJ_VALID): Ditto.
138 (OBJ_FORMAT_CFILES): Add config/obj-macho.c
139 (OBJ_FORMAT_HFILES): Add config/obj-macho.h
140 (obj-macho.o): New rule.
141 * Makefile.in: Regenerated.
142 * configure.tgt (generic_target): Add i386-*-darwin*.
143 * config/tc-i386.h: Use i386_target_format for Mach-O.
144 * config/tc-i386.c (i386_target_format): Define it for Mach-O.
145 (i386_target_format): Add a case for bfd_target_mach_o_flavour.
146 * config/obj-macho.h: New file.
147 * config/obj-macho.c: New file.
148
149 2009-07-01 Nick Clifton <nickc@redhat.com>
150
151 PR 10168
152 * config/tc-arm.c (do_t_pkhtb): Swap Rm and Rn when encoding as
153 PKHBT.
154
155 2009-07-01 Paul Brook <paul@codesourcery.com>
156
157 * config/tc-arm.c (MISSING_FNSTART): Define.
158 (s_arm_unwind_fnstart): Diagnose duplicate directive.
159 (s_arm_unwind_handlerdata, s_arm_unwind_fnend, s_arm_unwind_fnend,
160 s_arm_unwind_cantunwind, s_arm_unwind_personalityindex,
161 s_arm_unwind_personality, s_arm_unwind_save, s_arm_unwind_movsp,
162 s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): Error if
163 not inside function unwinding region.
164
165 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
166
167 * config/tc-i386.c: Reformat.
168
169 2009-06-23 DJ Delorie <dj@redhat.com>
170
171 * config/tc-mep.c (mep_check_ivc2_scheduling): For IVC2, allocate
172 32 bits for relaxable branches so that we can relax them later.
173 (md_estimate_size_before_relax): Assume IVC2 branches will be relaxed.
174 (mep_relax_frag): New.
175 (md_convert_frag): Relax IVC2 branches in-place.
176 * config/tc-mep.h ((mep_relax_frag): New.
177
178 2009-06-22 Martin Thuresson <martin@mtme.org>
179
180 * gas/app, gas/as.c, gas/as.h, gas/atof-generic.c, gas/cgen.c,
181 gas/config/atof-ieee.c, gas/config/obj-aout.c,
182 gas/config/obj-coff.c, gas/config/obj-ecoff.c,
183 gas/config/obj-elf.c, gas/config/obj-som.c, gas/config/tc-alpha.c,
184 gas/config/tc-arc.c, gas/config/tc-arm.c, gas/config/tc-cr16.c,
185 gas/config/tc-cris.c, gas/config/tc-crx.c, gas/config/tc-d30v.c,
186 gas/config/tc-dlx.c, gas/config/tc-hppa.c, gas/config/tc-i370.c,
187 gas/config/tc-i386-intel.c, gas/config/tc-i386.c,
188 gas/config/tc-i860.c, gas/config/tc-i960.c, gas/config/tc-ia64.c,
189 gas/config/tc-iq2000.c, gas/config/tc-m32c.c,
190 gas/config/tc-m32r.c, gas/config/tc-m68hc11.c,
191 gas/config/tc-m68k.c, gas/config/tc-maxq.c, gas/config/tc-mcore.c,
192 gas/config/tc-mep.c, gas/config/tc-mips.c, gas/config/tc-mmix.c,
193 gas/config/tc-mn10300.c, gas/config/tc-moxie.c,
194 gas/config/tc-ns32k.c, gas/config/tc-pj.c, gas/config/tc-ppc.c,
195 gas/config/tc-s390.c, gas/config/tc-score.c,
196 gas/config/tc-score7.c, gas/config/tc-sh.c, gas/config/tc-sparc.c,
197 gas/config/tc-spu.c, gas/config/tc-tic30.c, gas/config/tc-vax.c,
198 gas/config/tc-xtensa.c, gas/config/xtensa-relax.c,
199 gas/dw2gencfi.c, gas/dwarf2dbg.c, gas/ehopt.c, gas/expr.c,
200 gas/frags.c, gas/input-file.c, gas/read.c, gas/sb.c,
201 gas/subsegs.c, gas/symbols.c, gas/write.c: Change the name of the
202 gas macro `assert' to `gas_assert'.
203
204 2009-06-22 Daniel Gutson <dgutson@codesourcery.com>
205
206 * config/tc-arm.c (implicit_it_mode): New enum.
207 (implicit_it_mode): New global.
208 (it_instruction_type): New enum.
209 (arm_parse_it_mode): New function.
210 (arm_long_opts): New option added.
211 (arm_it): New field.
212 (it_state): New enum.
213 (now_it): New macro.
214 (check_it_blocks_finished): New function.
215 (insns[]): Use the IT Thumb opcodes for ARM too.
216 (arm_cleanup): Call check_it_blocks_finished.
217 (now_it_compatible): New function.
218 (conditional_insn): New function.
219 (set_it_insn_type): New macro.
220 (set_it_insn_type_last): New macro.
221 (do_it): Call automatic IT machinery functions.
222 (do_t_add_sub): Likewise
223 (do_t_arit3): Likewise.
224 (do_t_arit3c): Likewise.
225 (do_t_blx): Likewise.
226 (do_t_branch): Likewise.
227 (do_t_bkpt): Likewise.
228 (do_t_branch23): Likewise.
229 (do_t_bx): Likewise.
230 (do_t_bxj): Likewise.
231 (do_t_cps): Likewise.
232 (do_t_cpsi): Likewise.
233 (do_t_cbz): Likewise.
234 (do_t_it): Likewise.
235 (encode_thumb2_ldmstm): Likewise.
236 (do_t_ldst): Likewise.
237 (do_t_mov_cmp): Likewise.
238 (do_t_mvn_tst): Likewise.
239 (do_t_mul): Likewise.
240 (do_t_neg): Likewise.
241 (do_t_setend): Likewise.
242 (do_t_shift): Likewise.
243 (do_t_tb): Likewise.
244 (output_it_inst): New function.
245 (new_automatic_it_block): New function.
246 (close_automatic_it_block): New function.
247 (now_it_add_mask): New function.
248 (it_fsm_pre_encode): New function.
249 (handle_it_state): New function.
250 (it_fsm_post_encode): New function.
251 (force_automatic_it_block_close): New function.
252 (in_it_block): New function.
253 (md_assemble): Call automatic IT block machinery functions.
254 (arm_frob_label): Likewise.
255 (arm_opts): New element.
256 * config/tc-arm.h (it_state): New enum.
257 (current_it): New struct.
258 (arm_segment_info_type): New member added.
259 * doc/c-arm.texi: New option -mimplicit-it documented.
260
261 2009-06-20 Alan Modra <amodra@bigpond.net.au>
262
263 PR 10302
264 * doc/as.texinfo (Section <ELF "M,S" flag>): Clarify tail merge.
265
266 2009-06-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
267
268 * config/tc-s390.c (md_gather_operands): Accept an instruction
269 without operands if all operands are tagged as optional.
270
271 2009-06-18 Nick Clifton <nickc@redhat.com>
272
273 PR 10169
274 * gas/tc-arm.c (do_t_ssat): Move common code from here...
275 (do_t_usat): ... and here to...
276 (do_t_ssat_usat): New function: ... here. Add code to check that
277 the shift value, if present, is in range.
278
279 2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
280
281 Merge cegcc and mingw32ce target name changes
282 from CeGCC project:
283
284 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt>
285
286 * configure.tgt: Add arm*-*-cegcc* target.
287
288 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt>
289
290 * configure.tgt: Add arm-*-mingw32ce* target.
291
292 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
293
294 * config/tc-vax.c (md_estimate_size_before_relax): Accept
295 indirect symbol references in the PIC mode and emit a
296 PC-relative relocation instead of a GOT/PLT one. Likewise
297 for symbols known to be hidden at this point.
298
299 2009-06-15 Nick Clifton <nickc@redhat.com>
300
301 PR 10186
302 * config/tc-arm.c (T16_32_TAB): Fix binary value of SEV.W
303 instruction.
304
305 2009-06-13 H.J. Lu <hongjiu.lu@intel.com>
306
307 PR ld/10269
308 * config/tc-i386.c (md_apply_fix): Use TC_FORCE_RELOCATION
309 instead of generic_force_reloc.
310
311 * config/tc-i386.h (TC_FORCE_RELOCATION): New.
312
313 2009-06-11 Anthony Green <green@moxielogic.com>
314
315 * config/tc-moxie.c (md_chars_to_number): Define.
316 (md_begin): Populate opcode hashtable with more form 3 opcodes.
317 (md_assemble): Assemble MOXIE_F3_PCREL encoded instructions.
318 (md_apply_fix): Handle BFD_RELOC_MOXIE_10_PCREL relocations.
319 (tc_gen_reloc): Ditto.
320 (md_pcrel_from): Ditto.
321 (md_chars_to_number): New function.
322
323 2009-06-10 Anthony Green <green@moxielogic.com>
324
325 * config/tc-moxie.c (md_assemble): Handle MOXIE_F1_M encoded
326 opcodes.
327
328 2009-06-09 Jakub Jelinek <jakub@redhat.com>
329
330 PR gas/10255
331 * dw2gencfi.c (output_cfi_insn): Initialize fragment before rs_cfa
332 to DW_CFA_advance_loc4.
333
334 2009-06-08 Dave Korn <dave.korn.cygwin@gmail.com>
335
336 PR gas/977
337 * config/tc-i386.c (md_estimate_size_before_relax): Don't relax
338 branches to weak symbols.
339 (md_apply_fix): Don't convert fixes against weak symbols to
340 section-relative offsets, but save addend for later reloc emission.
341 (tc_gen_reloc): When emitting reloc against weak symbol, adjust
342 addend to pre-compensate for bfd_install_relocation.
343
344 2009-06-04 Alan Modra <amodra@bigpond.net.au>
345
346 * dep-in.sed: Don't use \n in replacement part of s command.
347 * Makefile.am (DEP1, DEPTC, DEPOBJ, DEP2): LC_ALL for uniq.
348 * Makefile.in: Regenerate.
349
350 2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
351
352 PR gas/10198
353 * config/tc-i386-intel.c (i386_intel_operand): Check '$' as '.'.
354
355 2009-05-26 Catherine Moore <clm@codesourcery.com>
356
357 * config/tc-mips.c (check_for_24k_errata): Remove.
358 (md_mips_end): Remove call to check_for_24k_errata.
359 (start_noreorder): Likewise.
360 (s_change_sec): Likewise.
361 (s_change_section): Likewise.
362 (insns_between): Add 24k errata checks.
363 (append_insn): Remove declaration and references to nhdx_24k.
364 Remove calls to check_for_24k_errata.
365
366 2009-05-26 Nick Clifton <nickc@redhat.com>
367
368 * po/id.po: Updated Indonesian translation.
369 * po/gas.pot: Updated template file.
370
371 2009-05-26 Nick Clifton <nickc@redhat.com>
372
373 PR 10143
374 * config/bfin-parse.y (error): Use "%s" as format string for error
375 message.
376
377 2009-05-26 Alan Modra <amodra@bigpond.net.au>
378
379 * dep-in.sed: Output one filename per line with all lines having
380 continuation backslash. Prefix first line with "A", following
381 lines with "B".
382 * Makefile.am (DEP): Don't use dep.sed here.
383 (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
384 sort and uniq.
385 (DEPTC, DEPOBJ, DEP2): Use dep.sed on dependencies, sort and uniq.
386 Emit multi dependencies on one line.
387 * Makefile.in: Regenerate.
388
389 2009-05-25 Tristan Gingold <gingold@adacore.com>
390
391 * makefile.vms: New file to compile gas on VMS.
392
393 * configure.com: New file to do configuration on VMS with DCL.
394
395 2009-05-23 Richard Sandiford <rdsandiford@googlemail.com>
396
397 * config/tc-mips.c (nops_for_vr4130): Don't check noreorder_p.
398 (nops_for_insn): Likewise.
399
400 2009-05-22 H.J. Lu <hongjiu.lu@intel.com>
401
402 * symbols.c (COPIED_SYMFLAGS): Add BSF_GNU_INDIRECT_FUNCTION.
403
404 2009-05-22 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
405
406 * config/tc-i386.c (process_drex): Delete. Remove SSE5 support.
407 (build_modrm_byte): Remove DREX handling support.
408 (DREX_*): Delete.
409 (drex_byte): Delete.
410 (md_assemble): Remove DREX handling support.
411 (process_operands): Remove DREX, SSE5 support.
412 (i386_insn): Remove DREX.
413
414 2009-05-22 Alan Modra <amodra@bigpond.net.au>
415
416 * Makefile.am: Run "make dep-am".
417 * Makefile.in: Regenerate.
418
419 2009-05-20 Kai Tietz <kai.tietz@onevision.com>
420 H.J. Lu <hongjiu.lu@intel.com>
421
422 * config/obj-coff.h: Include "coff/x86_64.h" for x86 pe-coff.
423 (TARGET_FORMAT): Removed for x86 pe-coff.
424 (COFF_TARGET_FORMAT): Likewise.
425
426 * config/tc-i386.c (md_longopts): Allow --64 for x86 pe-coff.
427 (md_parse_option): Likewise.
428 (md_show_usage): Show option --32/--64 for x86 pe-coff.
429 (i386_target_format): Use also for x86 pe-coff.
430
431 * config/tc-i386.h (TARGET_FORMAT): Defined as i386_target_format
432 for x86 pe-coff.
433
434 2009-05-19 DJ Delorie <dj@redhat.com>
435
436 * config/tc-mep.c (mep_machine): Only check CPU flags, not COP flags.
437 (mep_process_saved_insns): Remove debugging printfs.
438
439 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
440
441 * NEWS: Mention new feature.
442 * config/obj-coff.c (obj_coff_common_parse): New function.
443 (obj_coff_comm): Likewise.
444 (coff_pseudo_table): Override default ".comm" definition on PE.
445 * doc/as.texinfo: Document new feature.
446
447 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
448
449 * config/obj-coff.c (obj_coff_section): Add 'y' as
450 specifier for SEC_COFF_NOREAD section flag.
451 * doc/as.texinfo: Add documentation about .section flag 'y'.
452
453 2009-05-13 DJ Delorie <dj@redhat.com>
454
455 * cgen.c (gas_cgen_parse_operand): Guard against NULL pointers.
456
457 2009-05-13 Andrew Jenner <andrew@codesourcery.com>
458
459 * config/tc-arm.c: Move as.h to start of file.
460
461 2009-05-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
462
463 * config/tc-arm.h: Fix typo in comment.
464 (ARM_IS_FUNC): New macro.
465 (MD_APPLY_SYM_VALUE): Define.
466
467 * config/tc-arm.c (do_blx): Retain BFD_RELOC_ARM_PCREL_BLX for
468 all versions of EABI.
469 (relax_branch): Do not relax for branches to ARM functions.
470 (md_pcrel_from_section): Set up base correctly for
471 BFD_RELOC_THUMB_PCREL_BLX, BFD_RELOC_THUMB_PCREL_CALL,
472 BFD_RELOC_THUMB_PCREL_BRANCH23, BFD_RELOC_ARM_PCREL_BLX
473 BFD_RELOC_ARM_PCREL_CALL.
474 (md_apply_fix): Flip bl to blx where possible.
475 Flip blx to bl where possible.
476 (arm_force_relocation): Force relocations for
477 BFD_RELOC_ARM_PCREL_JUMP, BFD_RELOC_ARM_PCREL_JUMP,
478 BFD_RELOC_ARM_PCREL_BLX, BFD_RELOC_THUMB_PCREL_BLX,
479 BFD_RELOC_THUMB_PCREL_BRANCH20, BFD_RELOC_THUMB_PCREL_BRANCH23,
480 BFD_RELOC_THUMB_PCREL_BRANCH25.
481 (arm_apply_sym_value): New function.
482
483 2009-05-04 Tristan Gingold <gingold@adacore.com>
484
485 * config/tc-alpha.c: Also declare alpha_prologue_label for OBJ_EVAX.
486
487 2009-05-01 Nathan Sidwell <nathan@codesourcery.com>
488
489 * config/tc-armlinux-eabi.h (FPU_DEFAULT): Default to plain VFP.
490 * config/tc-armeabi.h (FPU_DEFAULT): Likewise.
491 * config/tc-arm.c (md_begin): If FPU_DEFAULT is set, don't infer
492 the default FPU from the processor.
493
494 2009-05-01 Julian Brown <julian@codesourcery.com>
495
496 * config/tc-arm.c (do_t_blx): Always use BFD_RELOC_THUMB_PCREL_BLX.
497 (md_pcrel_from_section): Align address for BLX.
498 (tc_gen_reloc): Change BFD_RELOC_THUMB_PCREL_BLX relocations to
499 BFD_RELOC_THUMB_PCREL_BRANCH23 for EABI v4+.
500
501 2009-04-29 DJ Delorie <dj@redhat.com>
502
503 * config/tc-mep.c (md_begin): Check coprocessor type.
504 (md_check_parallel64_scheduling): Use memset to initialize the buffer.
505 (md_check_parallel32_scheduling): Likewise.
506 (slot_ok): New.
507 (mep_check_ivc2_scheduling): New.
508 (mep_check_parallel_scheduling): Call it.
509 (mep_process_saved_insns): Add IVC2 slot support.
510 (md_assemble): Likewise.
511
512 2009-04-30 Nick Clifton <nickc@redhat.com>
513
514 * config/obj-elf.c (obj_elf_type): Add support for a
515 gnu_indirect_function type.
516 * config/tc-i386.c (tc_i386_fix_adjustable): Do not adjust fixups
517 against indirect function symbols.
518 * doc/as.texinfo (.type): Document the support for the
519 gnu_indirect_function symbol type.
520 * NEWS: Mention the new feature.
521
522 2009-04-24 Cary Coutant <ccoutant@google.com>
523
524 * NEWS: Add item about discriminator support.
525 * dwarf2dbg.h (struct dwarf2_line_info): Add discriminator field.
526 * dwarf2dbg.c (current): Add discriminator field.
527 (dwarf2_where): Copy discriminator value.
528 (dwarf2_consume_line_info): Set discriminator to 0.
529 (dwarf2_directive_loc): Process discriminator sub-op.
530 (out_leb128): New function.
531 (process_entries): Output DW_LNE_set_discriminator.
532 * doc/as.texinfo: Add discriminator operand to .loc directive.
533
534 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
535
536 * config/tc-mips.c (macro_end, md_convert_frag): Use '%s' for
537 as_bad calls to silence compiler warning.
538
539 2009-04-21 H.J. Lu <hongjiu.lu@intel.com>
540
541 * config/tc-i386-intel.c (O_XXX): Reorder.
542
543 2009-04-20 Jan Beulich <jbeulich@novell.com>
544
545 * Makefile.am: Add explicit dependency of tc-i386.o on
546 tc-i386-intel.c.
547 * Makefile.in: Likewise.
548 * config/tc-i386.c (i386_finalize_immediate): Declare, broken
549 out from i386_immediate.
550 (i386_immediate): Slightly re-arrange, call
551 i386_finalize_immediate.
552 (i386_finalize_displacement): Declare, broken out from
553 i386_displacement.
554 (i386_displacement): Slightly re-arrange, call
555 i386_finalize_displacement.
556 (i386_intel_simplify, i386_intel_parse_name): Declare.
557 (this_operand): Initialize to -1.
558 (set_intel_syntax): Set expression rank for O_full_ptr.
559 (md_assemble): Set this_operand back to -1 after parsing
560 operands.
561 (x86_cons): Negate intel_syntax to indicate state. Call
562 i386_intel_simplify.
563 (md_operand): Convert if to switch. Handle '[' for Intel
564 syntax.
565 (i386_intel_operand): Delete, including all helper functions
566 and data.
567 * config/tc-i386-intel.c: New file, all new code.
568 * config/tc-i386.h (i386_operator): Declare.
569 (md_operator): Define to i386_operator.
570 (i386_need_index_operator): Declare.
571 (md_need_index_operator): Define to i386_need_index_operator.
572 (O_full_ptr): Define.
573
574 2009-04-20 Jan Beulich <jbeulich@novell.com>
575
576 * expr.c (operand): Call md_need_index_operator() and
577 md_operator() if defined. Add unary label.
578 (operator): Call md_operator() if defined.
579 (expr): Adjust assertions on range and rank of op_left and
580 op_right. Don't abort on unhandled operators when reducing
581 expressions with both operands being constant.
582 (expr_set_rank): New.
583 * expr.h (expr_set_rank): Declare.
584
585 2009-04-15 Anthony Green <green@moxielogic.com>
586
587 * config/tc-moxie.h: New file.
588 * config/tc-moxie.c: New file.
589 * configure: Add support for moxie.
590 * configure.tgt: Add support for moxie.
591
592 2009-04-16 Jan Beulich <jbeulich@novell.com>
593
594 * expr.c: Include limits.h if available, and #define CHAR_BITS
595 otherwise.
596 (expr): Check range of shift count when evaluating a constant
597 expression.
598
599 2009-04-15 Jan Beulich <jbeulich@novell.com>
600
601 * config/tc-i386.c (process_operands): Print operands in
602 correct order depending on intel_syntax.
603
604 2009-04-09 Catherine Moore <clm@codesourcery.com>
605
606 * config/tc-mips.c (mips_fix_24k): Declare.
607 (check_for_24k_errata): New.
608 (mips_cleanup): Call check_for_24k_errata.
609 (start_noreorder): Likewise.
610 (md_mips_end): Likewise.
611 (s_change_sec): Likewise.
612 (s_change_section): Likewise.
613 (append_insn): Call check_for_24k_errata. Prevent
614 ERET/DERET instructions from being moved into delay
615 slots.
616 (OPTION_FIX_24K): New.
617 (OPTION_NO_FIX_24k) New.
618 (md_longopts): Add "mfix-24k" and "mno-fix-24k".
619 (md_parse_option): Handle fix-24k options.
620 (md_show_usage): Display fix-24k options.
621 * doc/c-mips.texi: Document.
622
623 2009-04-09 Adam Nemet <anemet@caviumnetworks.com>
624
625 * config/tc-mips.c (mips_dwarf2_addr_size): Use HAVE_64BIT_OBJECTS
626 instead of HAVE_64BIT_SYMBOLS.
627
628 2009-04-07 DJ Delorie <dj@redhat.com>
629
630 * config/tc-mep.c: Add UCI/DSP instruction support. Add C5 support.
631 (md_show_usage): Change default endian to little.
632 * config/tc-mep.h (TARGET_BYTES_BIG_ENDIAN): Change default to little.
633
634 2009-04-06 DJ Delorie <dj@redhat.com>
635
636 * tc-h8300.c (do_a_fix_imm): Pass the insn, force relocs for MOVA
637 immediates.
638 (build_bytes): Pass insn to do_a_fix_imm.
639
640 2009-04-02 Daniel Gutson <dgutson@codesourcery.com>
641
642 * config/tc-arm.c (arm_cpus): Add entry for ARM Cortex-M0.
643 * doc/c-arm.texi: Added codes for processors ARM Cortex-M0 and
644 Cortex-M1.
645
646 2009-04-01 Matt Thomas <matt@netbsd.org>
647
648 * config/tc-vax.c (synthetic_votstrs): add "jbbcci" and "jbbssi"
649 (md_assemble): emit symbol name when used as immediate in PIC mode.
650 (md_assemble): fix LP64 bug (use sizeof (valueT) instead 4).
651
652 2009-04-01 Sterling Augustine <sterling@jaw.hq.tensilica.com>
653
654 * config/tc-xtensa.c (parse_arguments): call demand_empty_rest_of_line
655
656 2009-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
657
658 * config/tc-arm.c (arm_validate_fix): Define only for OBJ_COFF.
659 (find_real_start): Likewise.
660 * config/tc-arm.h (TC_VALIDATE_FIX): Likewise
661
662 2009-04-01 Nathan Sidwell <nathan@codesourcery.com>
663
664 * config/tc-arm.c (do_nop): Generate v6k nops whenever possible.
665 (arm_handle_align): Generate v6k ARM, thumb2 wide & narrow nops
666 whenever possible.
667
668 2009-03-31 Peter Bergner <bergner@vnet.ibm.com>
669
670 * config/tc-ppc.c (ppc_handle_align): Handle power7's group ending nop.
671
672 2009-03-31 Dave Korn <dave.korn.cygwin@gmail.com>
673
674 * doc/internals.texi: Fix trivial syntax errors.
675
676 2009-03-26 Alan Modra <amodra@bigpond.net.au>
677
678 PR 10005
679 * config/tc-i386.c (reloc): Don't abort on lack of required
680 reloc type.
681
682 2009-03-25 H.J. Lu <hongjiu.lu@intel.com>
683
684 * config/tc-i386.c (parse_insn): Use default_arch on unsupported
685 arch.
686
687 2009-03-23 H.J. Lu <hongjiu.lu@intel.com>
688
689 PR gas/9966
690 * listing.c (listing_newline): Properly handle `\\"' and ';'.
691
692 * read.c (is_end_of_line): Update comments for line separator.
693 (read_begin): Set line separator in is_end_of_line to 2.
694
695 2009-03-19 David S. Miller <davem@davemloft.net>
696
697 * config/tc-sparc.c (md_parse_option): If the user gives
698 us '--64' make sure max_architecture is at least V9.
699
700 2009-03-18 Andrew Stubbs <ams@codesourcery.com>
701
702 * config/tc-arm.c (md_apply_fix): Check BFD_RELOC_ARM_IMMEDIATE and
703 BFD_RELOC_ARM_ADRL_IMMEDIATE value is in the correct section.
704 Check BFD_RELOC_ARM_ADRL_IMMEDIATE has a defined symbol.
705
706 2009-03-18 Alan Modra <amodra@bigpond.net.au>
707
708 * as.h: Include alloca-conf.h instead of config.h and remove
709 existing #if's handling alloca.
710 * Makefile.am: Run "make dep-am".
711 * Makefile.in: Regenerate.
712
713 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
714
715 * config/tc-ppc.c (ppc_frob_symbol): Add csect information for
716 C_AIX_WEAKEXT too.
717
718 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
719
720 * config/tc-ppc.c (md_apply_fix): On COFF targets, always reread
721 "value" from fx_offset. Manually resubtract md_pcrel_from_section
722 where necessary.
723
724 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
725
726 * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
727 * configure.in: Likewise.
728 * configure: Regenerate.
729
730 2009-03-11 Hans-Peter Nilsson <hp@axis.com>
731
732 * config/tc-cris.c (cris_create_short_jump): Remove prototype.
733 Rename, changing all callers, to...
734 (md_create_short_jump): Adjust head comment. Assert
735 word-sized-branch distance for v32. Bail out calling as_fatal for
736 compatibility mode here.
737 (md_create_long_jump): ...not here.
738 * config/tc-cris.h (md_create_short_jump): Do not define.
739
740 2009-03-10 Hans-Peter Nilsson <hp@axis.com>
741
742 * write.c (write_object_file) [!WORKING_DOT_WORD]: When patching
743 the jump table for multiple overflowing entries with the same
744 target, handle base symbols being different.
745 (relax_segment) <case rs_broken_word, second loop>: Whenever a
746 single entry overflows, arrange to redirect all entries with the
747 same target.
748
749 2009-03-10 Alan Modra <amodra@bigpond.net.au>
750
751 * config/tc-ppc.c (parse_cpu): Delete.
752 (md_parse_option, ppc_machine): Use ppc_parse_cpu.
753
754 2009-03-09 H.J. Lu <hongjiu.lu@intel.com>
755
756 PR gas/9915
757 * config/tc-i386.h (LOCAL_LABELS_DOLLAR): New. Defined as 0.
758 (LOCAL_LABELS_FB): Undefine befoe define.
759
760 2009-03-06 Nick Clifton <nickc@redhat.com>
761
762 * po/es.po: Updated Spanish translation.
763
764 2009-03-05 Joseph Myers <joseph@codesourcery.com>
765
766 * read.c (s_fill, s_space, s_float_space, float_cons, stringer,
767 s_incbin): Call md_cons_align (1).
768
769 2009-03-04 Nick Clifton <nickc@redhat.com>
770
771 * config/tc-alpha.c (alpha_prologue_label): Only define for ELF
772 based targets.
773 (s_alpha_comm): Only define "temp" and "log_align" local variables
774 for EVAX targets.
775
776 2009-03-04 Alan Modra <amodra@bigpond.net.au>
777
778 * config/tc-ppc.c (ppc_elf_suffix): Error if ppc32 tls got relocs
779 have non-zero addend.
780 (md_assemble): Parse args of __tls_get_addr calls.
781 (md_apply_fix): Handle BFD_RELOC_PPC_TLSGD and BFD_RELOC_PPC_TLSLD.
782
783 2009-03-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
784
785 binutils/3807
786 * config/tc-hppa.h (tc_frob_symbol): Don't frob absolute symbols with
787 local scope for ELF targets.
788
789 2009-03-04 Alan Modra <amodra@bigpond.net.au>
790
791 * config/tc-ppc.c (md_assemble): APUinfo only for e500.
792
793 2009-03-03 Tristan Gingold <gingold@adacore.com>
794 Eric Botcazou <ebotcazou@adacore.com>
795 Douglas B Rupp <rupp@gnat.com>
796
797 * doc/as.texinfo (Overview): Mention -replace/-noreplace options
798 for Alpha.
799 * doc/c-alpha.texi (Alpha Options): Document -replace/-noreplace.
800 * config/tc-alpha.h (TC_VALIDATE_FIX_SUB): Define to 1 (evax).
801 (OBJ_SYMFIELD_TYPE): Remove.
802 (tc_canonicalize_symbol_name): Define to evax_shorten_name.
803 (TC_IMPLICIT_LCOMM_ALIGNMENT): For alignment to 3 on evax.
804 (tc_frob_file_before_fix): Do not defined on evax.
805 * config/tc-alpha.c: Always includes dwarf2dbg.h.
806 Include vms.h if OBJ_EVAX.
807 (struct alpha_fixup): Add xtrasym and procsym (evax only).
808 (enum alpha_macro_arg): Remove trailing comma.
809 (md_longopts): Add replace and noreplace arguments (evax only).
810 (alpha_evax_proc_hash): New variable.
811 (alpha_link_section): Make it global.
812 (alpha_ctors_section, alpha_dtors_section): Removed.
813 (alpha_ctors_symbol, alpha_dtors_symbol): Ditto.
814 (alpha_lit8_section): Ifndef'ed on evax.
815 (alpha_lit8_symbol): Ditto.
816 (alpha_prologue_label): New variable.
817 (alpha_linkage_symbol): New variable (evax only).
818 (alpha_flag_replace): Ditto.
819 (struct alpha_evax_procs): Add handler and handler_data field.
820 (alpha_evax_proc): Now of type pointer.
821 (alpha_linkage_fixup_root, alpha_linkage_fixup_tail): New variables.
822 (struct alpha_reloc_tag): Add sym and psym fields (evax only).
823 (get_alpha_reloc_tag): Initialize sym and psym fields (evax only).
824 (alpha_adjust_relocs): Ifndef'ed on evax.
825 (load_expression): Add opname argument.
826 Implement LDA/BSR optimization for evax.
827 (emit_lda): Adjust for new prototype of load_expression.
828 (emit_ir_load): Ditto. Do not nothing for GP if ..lk symbols.
829 (emit_loadstore): Likewise.
830 (emit_ldXu): Likewise.
831 (emit_stX): Likewise.
832 (emit_jsrjmp): Likewise. Implement LDA/BSR optimization for evax.
833 (emit_ldgp): Avoid warning in evax case.
834 (add_to_link_pool): Make it static. Return symbolic expression rather
835 than number expression for the offset.
836 (s_alpha_text): Create .text symbol for evax if not already created.
837 (s_alpha_comm): Do not create specific section for common symbol.
838 Fill common area with zeros for evax.
839 (s_alpha_prologue): Create alpha_prologue_label.
840 (s_alpha_section_name): New function (evax).
841 (s_alpha_section_word): Likewise.
842 (section_name): New static variabke moved out from ...
843 (s_alpha_section): ... here. Create new sections on demand.
844 (s_alpha_literals): New function (evax).
845 (s_alpha_ent): Create alpha_evax_proc instance and insert it in the
846 alpha_evax_proc_hash table.
847 (s_alpha_handler): New function (evax).
848 (s_alpha_frame): Adjust for new type of alpha_evax_proc.
849 (s_alpha_prologue): New function (evax).
850 (s_alpha_pdesc): Adjust for new type of alpha_evax_proc and new
851 handling of procedures with hash table.
852 Add support for condition handlers.
853 (s_alpha_linkage): Create linkage_fixup instance and chain it.
854 (s_alpha_fp_save): Adjust for new type of alpha_evax_proc.
855 (s_alpha_mask): Likewise.
856 (s_alpha_fmask): Likewise.
857 (s_alpha_end): Clear alpha_evax_proc.
858 (s_alpha_align): Increase max_alignment to 16.
859 (alpha_print_token): Call print_expr_1 instead of print_expr.
860 (md_pseudo_table): Add "section", "literals", "handler" and
861 "handler_data" (evax). Do not ignore "prologue" on evax.
862 Fix indentation.
863 (md_begin): Create hash table for alpha_evax_proc_hash.
864 (md_parse_option): Handle OPTION_REPLACE and OPTION_NOREPLACE.
865 (md_show_usage): Mention -replace/-noreplace for evax.
866 (md_apply_fix): Handle evax relocs (_NOP, _LDA, _BSR and _BOH).
867 (alpha_force_relocation): Likewise.
868 (alpha_fix_adjustable): Likewise. Add BFD_RELOC_16 case.
869 (tc_gen_reloc): Likewise. Add BFD_RELOC_ALPHA_LINKAGE for evax.
870 (emit_insn): New cases for evax specific relocs.
871 (assemble_insn): Fix indentation.
872 Take care of -MDISP in operand table.
873 * config/obj-evax.h (struct alpha_linkage_fixups): New struct.
874 (OBJ_SYMFIELD_TYPE): New macro.
875 (obj_symbol_new_hook): Define.
876 (obj_frob_symbol, obj_frob_file_before_adjust): Ditto.
877 (obj_frob_file_before_fix): Ditto.
878 (PDSC_S_M_HANDLER_VALID): New macro.
879 (PDSC_S_M_HANDLER_DATA_VALID): Ditto.
880 (TC_IMPLICIT_LCOMM_ALIGNMENT): Remove.
881 Add prototypes for functions declared in obj-evax.c
882 * config/obj-evax.c: Include subsegs.h, struc-symbol.h, safe-ctype.h.
883 (s_evax_weak): Convert to ansi-C.
884 (evax_symbol_new_hook): New function.
885 (evax_frob_symbol): Ditto.
886 (evax_frob_file_before_adjust): Ditto.
887 (evax_frob_file_before_fix): Ditto.
888 (evax_shorten_name): Ditto.
889 (crc32): Ditto.
890 (encode_32): Ditto.
891 (encode_16): Ditto.
892 (decode_16): Ditto.
893 (shorten_identifier): Ditto.
894 (is_truncated_identifier): Ditto.
895 * dwarf2dbg.c (out_debug_info): Do not append trailing slash on VMS.
896 * as.c (close_output_file): Remove #ifndef OBJ_VMS.
897 (main): Ditto.
898
899 2009-03-03 Alan Modra <amodra@bigpond.net.au>
900
901 * Makefile.am: Run "make dep-am".
902 * Makefile.in: Regenerate.
903
904 2009-03-02 Nick Clifton <nickc@redhat.com>
905
906 PR 9874
907 * config/tc-ia64.c (fix_insn): Fix warning reported by
908 -Wformat-security.
909
910 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
911
912 * config/tc-score7.c: New file.
913 * doc/c-score.texi: New file.
914 * Makefile.am: Update dependencies for tc-score.c.
915 * Makefile.in: Regenerate.
916 * NEWS: Mention support for Score7 architecture.
917 * config/tc-score.c: Add support for Score7 architecture.
918 * config/tc-score.h: Likewise.
919 * doc/Makefile.am: Add c-score.texi.
920 * doc/Makefile.in: Regenerate.
921 * doc/all.texi: Add Score7.
922 * doc/as.texinfo: Add Score7.
923
924 2009-03-01 Mark Mitchell <mark@codesourcery.com>
925
926 * config/tc-arm.c (md_assemble): Allow barrier instructions on
927 ARMv6-M cores.
928
929 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
930
931 * configure: Regenerate.
932
933 2009-02-26 Peter Bergner <bergner@vnet.ibm.com>
934
935 * config/tc-ppc.c (pre_defined_registers): Add "f32" to "f63",
936 "f.32" to "f.63", "vs0" to "vs63" and "vs.0" to "vs.63".
937 (parse_cpu): Extend -mpower7 to accept power7 and isel instructions.
938
939 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
940
941 * config/tc-i386.c (fits_in_imm4): Removed.
942
943 2009-02-24 Helge Deller <deller@gmx.de>
944
945 * config/tc-hppa.c (pa_ip): Add check of immediate values.
946 (SAVE_IMMEDIATE): New define.
947
948 2009-02-23 Mark Mitchell <mark@codesourcery.com>
949
950 * config/tc-arm.c (warn_deprecated_sp): New macro.
951 (do_t_mov_cmp): Permit R13 as the second
952 argument to "cmp.n".
953
954 2009-02-23 H.J. Lu <hongjiu.lu@intel.com>
955
956 * config/tc-i386.c (type_names): Add OPERAND_TYPE_REGYMM.
957 (pt): Replace UINTS_ALL_ZERO with operand_type_all_zero.
958
959 2009-02-23 H.J. Lu <hongjiu.lu@intel.com>
960
961 * config/tc-i386.c (type_names): Remove OPERAND_TYPE_VEX_IMM4.
962
963 2009-02-23 H.J. Lu <hongjiu.lu@intel.com>
964
965 * config/tc-i386.c (vex_imm4): Removed.
966 (VEX_check_operands): Likewise.
967 (match_template): Updated.
968
969 2009-02-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
970
971 * doc/all.texi: Set S390.
972 * doc/as.texinfo: Add S390 support and pull in c-s390.texi.
973 * doc/Makefile.am (CPU_DOCS): Add c-s390.texi.
974 * doc/Makefile.in: Likewise.
975 * doc/c-s390.texi: New.
976
977 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
978
979 * config/tc-m68k.c (mcf51qe_ctrl): Add CPUCR.
980 (mcf52259_ctrl, mcf52277_ctrl, mcf53017_ctrl): New.
981 (mcf5307_ctrl): Add VBR.
982 (no_mac): New variable.
983 (m68k_extensions): Refer to no_mac mask.
984 (m68k_cpus): Add 51, 51ac, 51cn, 51em, 51jm, 52274, 52277,
985 52252..52259, 53011..53017.
986 (m68k_ip): Process CPUCR.
987 (init_table): Add cpucr entry.
988 (m68k_set_extension): Allow negated mask to refer to a variable.
989 (md_show_usage): Use '%s' to silence fprintf warning.
990 * config/m68k-parse.h (CPUCR): New control register.
991
992 2009-02-10 Nathan Sidwell <nathan@codesourcery.com>
993
994 * config/tc-ppc.c (ppc_insert_operand, md_assemble): Use '%s' for
995 as_bad calls to silence compiler warning.
996
997 2009-02-06 Nick Clifton <nickc@redhat.com>
998
999 PR 9814
1000 * config/tc-arm.c (MODE_RECORDED): New define.
1001 (output_inst): Record the thumb_mode in the current frag.
1002 (arm_handle_align): Ignore the MODE_RECORDED bit in tc_frag_data.
1003 (arm_init_frag): Only set the tc_frag_data field if it has not
1004 already been set.
1005
1006 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
1007
1008 AVX Programming Reference (January, 2009)
1009 * config/tc-i386.c (CPU_FLAGS_PCLMUL_MATCH): New.
1010 (CPU_FLAGS_AVX_MATCH): Updated.
1011 (CPU_FLAGS_32BIT_MATCH): Likewise.
1012 (cpu_flags_match): Likewise.
1013
1014 2009-02-03 Sandip Matte <sandip@rmicorp.com>
1015
1016 * config/tc-mips.c (macro): Handle M_MSGSND, M_MSGLD, M_MSGLD_T,
1017 M_MSGWAIT and M_MSGWAIT_T.
1018 (mips_cpu_info_table): Add XLR entry.
1019 * doc/c-mips.texi (-march): Document xlr.
1020
1021 2009-02-03 Eric B. Weddington <eric.weddington@atmel.com>
1022
1023 * config/tc-avr.c (mcu_types): Add ata6289.
1024 * doc/c-avr.texi: Likewise.
1025
1026 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
1027
1028 * configure.in: AC_SUBST pdfdir.
1029 * Makefile.am: Add install-pdf, install-pdf-am,
1030 and install-pdf-recursive targets.
1031 * doc/Makefile.am: Define pdf__strip_dir. Add
1032 install-pdf and install-pdf-am targets.
1033 * po/Make-in: Add install-pdf target.
1034 * configure: Regenerate.
1035 * Makefile.in: Regenerate.
1036 * doc/Makefile.in: Regenerate.
1037
1038 2009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com>
1039
1040 * config/m68k-parse.h (enum pic_relocation): Add values for TLS
1041 relocations.
1042 * config/m68k-parse.y (yylex): Parse TLS relocations.
1043 * config/tc-m68k.c (m68k_elf_cons): New static function.
1044 (md_pseudo_table): Use it.
1045 (get_reloc_code, tc_m68k_fix_adjustable, tc_gen_reloc): Handle TLS
1046 relocations.
1047 (md_apply_fix): Fix to set thread local flag.
1048 (m68k_elf_suffix): New static function; helper for m68k_elf_cons.
1049
1050 2009-02-03 Vince Weaver <vince@csl.cornell.edu>
1051
1052 PR 9779
1053 * config/tc-pdp11.c (parse_op_no_deferred): Fix handling of
1054 indexed addressing for symbolic expressions.
1055
1056 2009-01-29 Mark Mitchell <mark@codesourcery.com>
1057
1058 * config/tc-arm.c (BAD_SP): Define.
1059 (s_arm_unwind_fnstart): Use REG_SP.
1060 (s_arm_unwind_setfp): Likewise.
1061 (reject_bad_reg): New macro.
1062 (do_co_reg): Check for bad registers.
1063 (do_co_reg2c): Likewise.
1064 (do_srs): Use REG_SP.
1065 (do_t_add_sub): Check for bad registers.
1066 (do_t_adr): Likewise.
1067 (do_t_arit3): Likewise.
1068 (do_t_arit3c): Likewise.
1069 (do_t_bfc): Likewise.
1070 (do_t_bfi): Likewise.
1071 (do_t_bfx): Likewise.
1072 (do_t_blx): Likewise.
1073 (do_t_bx): Likewise.
1074 (do_t_bxj): Likewise.
1075 (do_t_clz): Likewise.
1076 (do_t_div): Likewise.
1077 (do_t_mla): Likewise.
1078 (do_t_mlal): Likewise.
1079 (do_t_mov_cmp): Likewise.
1080 (do_t_mov16): Likewise.
1081 (do_t_mvn_tst): Likewise.
1082 (do_t_mrs): Likewise.
1083 (do_t_msr): Likewise.
1084 (do_t_mul): Likewise.
1085 (do_t_mull): Likewise.
1086 (do_t_orn): Likewise.
1087 (do_t_pkhbt): Likewise.
1088 (do_t_pld): Likewise.
1089 (do_t_rbit): Likewise.
1090 (do_t_rev): Likewise.
1091 (do_t_rrx): Likewise.
1092 (do_t_rsb): Likewise.
1093 (do_t_shift): Likewise.
1094 (do_t_simd): Likewise.
1095 (do_t_ssat): Likewise.
1096 (do_t_ssat16): Likewise.
1097 (do_t_sxtah): Likewise.
1098 (do_t_sxth): Likewise.
1099 (do_t_tb): Likewise.
1100 (do_t_usat): Likewise.
1101 (do_t_usat16): Likewise.
1102 (nysn_insert_sp): Use REG_SP.
1103
1104 2009-01-29 Mark Mitchell <mark@codesourcery.com>
1105
1106 * config/tc-arm.c (do_t_orn): New function.
1107 (do_t_rrx): Likewise.
1108 (insns): Add orn and rrx.
1109
1110 2009-01-29 Mark Mitchell <mark@codesourcery.com>
1111
1112 * config/tc-arm.c (insns): Add qasx, qsax, shasx, shsax, ssax,
1113 uasx, uhasx, uhsx, uqasx, uqsax, usax.
1114
1115 2009-01-29 Mark Mitchell <mark@codesourcery.com>
1116
1117 * config/tc-arm.c (insns): Correct encoding of qadd, qdadd, qsub,
1118 qdsub in Thumb-2 mode.
1119
1120 2009-01-29 Paul Brook <paul@codesourcery.com>
1121 Mark Mitchell <mark@codesourcery.com>
1122
1123 * config/tc-arm.c (do_t_mul): In Thumb-2 mode, use 16-bit encoding
1124 of MUL when possible.
1125
1126 2009-01-29 Nick Clifton <nickc@redhat.com>
1127
1128 * config/tc-mep.h (DIFF_EXPR_OK): Do not define.
1129
1130 2009-01-29 Nathan Sidwell <nathan@codesourcery.com>
1131 Catherine Moore <clm@codesourcery.com?
1132
1133 * doc/c-arm.texi (ARM Directives): Alphabetize. Document .2byte,
1134 .4byte, .8byte, .bss, .even, .extend, .ldouble, .packed, .secrel32
1135 directives.
1136
1137 2009-01-27 Nick Clifton <nickc@redhat.com>
1138
1139 * config/tc-mips.c (append_insn): Cope with a complex reloc
1140 sequence containing an unsupported reloc type.
1141 (enum options): Replace computed #define's constants for option
1142 numbers with this enum.
1143 (struct md_longopts): Use the enum. Allow OPTION_32 in a non-ELF
1144 environment.
1145 (md_parse_option): Allow -32 in a non-ELF environment.
1146
1147 2009-01-26 Andrew Stubbs <ams@codesourcery.com>
1148
1149 * config/tc-arm.c (attributes_set_explicitly): New array.
1150 (s_arm_eabi_attribute): Check return value from s_vendor_attribute.
1151 (cpu_arch): Add ARM_ARCH_V5T.
1152 (aeabi_set_attribute_int): New function.
1153 (aeabi_set_attribute_string): New function.
1154 (aeabi_set_public_attributes): Set attributes according to the user's
1155 intentions, rather than the actual state of the binary.
1156 Use aeabi_set_attribute_int and aeabi_set_attribute_string instead of
1157 bfd_elf_add_proc_attr_int and bfd_elf_add_proc_attr_string.
1158 Support WMMXv2. Use attribute names instead of numbers.
1159 * read.c (s_vendor_attribute): Change return type to int.
1160 Return the tag number that was set.
1161 * read.h (s_vendor_attribute): Change return type to int.
1162
1163 2009-01-26 Eric B. Weddington <eric.weddington@atmel.com>
1164
1165 PR 9789
1166 * config/tc-avr.c (mcu_types): Fix typo in atmega128rfa1 name.
1167 * doc/c-avr.texi: Likewise.
1168
1169 2009-01-23 Nathan Sidwell <nathan@codesourcery.com>
1170
1171 * doc/c-arm.texi (): Document -mwarn-deprecated.
1172 * config/tc-arm.c (WARN_DEPRECATED): Remove. Replace with ...
1173 (warn_on_deprecated): ... this.
1174 (opcode_lookup, md_assemble): Check it before warning.
1175 (arm_opts): Add m[no-]warn-deprecated.
1176 (md_parse_option): Replace WARN_DEPRECATED with
1177 warn_on_deprecated.
1178
1179 2009-01-23 Andreas Schwab <schwab@suse.de>
1180
1181 * config/tc-mips.c (macro) [M_DINS, M_SEQ_I, M_SNE_I]: Cast
1182 arguments to macro_build to match format.
1183
1184 * config/obj-elf.h (LOCAL_LABEL_PREFIX): Conditionally define.
1185 * config/tc-s390.h (LOCAL_LABEL_PREFIX): Don't define.
1186
1187 2009-01-19 Nick Clifton <nickc@redhat.com>
1188
1189 * config/tc-arm.h (CONVERT_SYMBOLIC_ATTRIBUTE): Only define for
1190 ELF format ARM targets.
1191 * config/tc-arm.c (arm_convert_symbolic_attribute): Likewise.
1192
1193 2009-01-19 Nick Clifton <nickc@redhat.com>
1194
1195 * configure.tgt: Restore alpha sorting to object format switch
1196 statement.
1197
1198 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
1199
1200 * read.c (s_vendor_attribute): Allow for unknown flag bits in type.
1201
1202 2009-01-16 Mark Shinwell <shinwell@codesourcery.com>
1203
1204 * config/te-armeabi.h (EABI_DEFAULT): Use EF_ARM_EABI_VER5.
1205 * config/te-armlinuxeabi.h (EABI_DEFAULT): Likewise.
1206
1207 2009-01-16 Andrew Stubbs <ams@codesourcery.com>
1208 Daniel Jacobowitz <dan@codesourcery.com>
1209
1210 * config/tc-arm.c (arm_copy_symbol_attributes): New function.
1211 * config/tc-arm.h (arm_copy_symbol_attributes): New prototype.
1212 (CONVERT_SYMBOLIC_ATTRIBUTE): New define.
1213 * read.c (s_vendor_attribute): Add support for symbolic tag names.
1214 Improve string parser.
1215 * doc/c-arm.texi (ARM Machine Directives): Document
1216 .eabi_attribute symbolic tag names.
1217
1218 2009-01-16 Alan Modra <amodra@bigpond.net.au>
1219
1220 * configure.in (commonbfdlib): Delete.
1221 * configure: Regenerate.
1222 * po/POTFILES.in: Regenerate.
1223
1224 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
1225 Julian Brown <julian@codesourcery.com>
1226
1227 * config/tc-arm.c (cpu_arch): Change ARM_ARCH_V6M to 11.
1228
1229 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
1230
1231 * read.c (s_vendor_attribute): bfd_elf_add_obj_attr_compat ->
1232 bfd_elf_add_obj_attr_int_string.
1233
1234 2009-01-15 Douglas B Rupp <rupp@gnat.com>
1235
1236 * configure.tgt(ia64-*-*vms*): New target.
1237 * dwarf2dbg.h (dwarf2_loc_mark_labels): Make extern.
1238 * tc.h (md_number_to_chars): Declare iff undefined.
1239 * config/obj-elf.c (obj_elf_change_section): Change type of arg
1240 attr to bfd_vma.
1241 (obj_elf_parse_section_letters): Return a bfd_vma. Change type of
1242 variables attr, md_attr to bfd_vma.
1243 (obj_elf_section_word): Likewise.
1244 (obj_elf_section): Change type of variable attr to bfd_vma
1245 * config/obj-elf.h (obj_elf_change_section): Change type of arg
1246 attr to bfd_vma.
1247 * config/tc-ia64.c (bfdver.h,time.h): Include.
1248 (ia64_elf_section_letter): Now returns a bfd_vma.
1249 Handle VMS specific attributes.
1250 (ia64_elf_section_flags): Arg attr now a bfd_vma.
1251 (ia64_init): Don't turn on dependency checking for VMS.
1252 (ia64_target_format): Check for VMS flag bit.
1253 (do_alias): Hande decc$ functions.
1254 (get_vms_time): New function.
1255 (ia64_vms_note): New function.
1256 * config/tc-ia64.h (ia64_elf_section_letter): Now returns a bfd_vma.
1257 (ia64_elf_section_flags): Arg attr now a bfd_vma.
1258 (tc_init_after_args): Define for VMS.
1259 * config/tc-alpha.c (alpha_elf_section_letter): Return a bfd_vma.
1260 (alpha_elf_section_flags): Change type of arg attr to bfd_vma.
1261 * config/tc-alpha.h: Likewise.
1262 * config/tc-i386.c (x86_64_section_letter): Return a bfd_vma.
1263 (x86_64_section_word): Return a bfd_vma.
1264 * config/tc-i386.h: Likewise.
1265 * config/tc-ip2k.c (ip2k_elf_section_flags): Change type of arg
1266 attr to bfd_vma.
1267 * config/tc-ip2k.h: Likewise.
1268 * config/tc-mep.c (mep_elf_section_letter): Return a bfd_vma.
1269 (mep_elf_section_flags): Change type of arg attr to bfd_vma.
1270 * config/tc-mep.h: Likewise.
1271 * config/tc-ppc.c (ppc_section_letter): Return a bfd_vma.
1272 (ppc_section_word): Return a bfd_vma.
1273 (ppc_section_flags): Change type of arg attr to bfd_vma.
1274 * config/tc-ppc.h: Likewise.
1275 * config/tc-frv.h: Provide a prototype for frv_md_number_to_chars.
1276 * config/te-vms.h (DWARF2_DIR_SHOULD_END_WITH_SEPARATOR,
1277 DWAR2_FILE_TIME_NAME, DWARF2_FILE_SIZE_NAME, DWARF2_FILEN_NAME):
1278 New file with new macros
1279 * dwarf2dbg.c (get_filenum, out_file_list): Default and call new
1280 macros.
1281
1282 2009-01-15 Nick Clifton <nickc@redhat.com>
1283
1284 PR 9722
1285 * config/tc-arm.c (do_t_nop): Check for availability of Thumb2
1286 instructions before generating a Thumb2 nop.
1287
1288 2009-01-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1289
1290 * config/tc-s390.h: Define LOCAL_LABEL_PREFIX.
1291
1292 2009-01-12 Alan Modra <amodra@bigpond.net.au>
1293
1294 * config/tc-spu.c (md_pseudo_table): Add "brinfo".
1295 (brinfo): New var.
1296 (md_assemble): Poke brinfo into branch instructions.
1297 (spu_brinfo): New function.
1298 (md_apply_fix): Don't assume insn fields start off at zero, mask
1299 them to remove possible brinfo.
1300
1301 2009-01-10 H.J. Lu <hongjiu.lu@intel.com>
1302
1303 * doc/c-i386.texi: Reformat.
1304
1305 2009-01-10 H.J. Lu <hongjiu.lu@intel.com>
1306
1307 * config/tc-i386.c (cpu_arch): Add corei7, .clflush and
1308 .syscall.
1309 (i386_align_code): Handle PROCESSOR_COREI7.
1310 (md_show_usage): Add corei7, clflush and syscall.
1311 (i386_target_format): Replace cpup4 with cpuclflush.
1312
1313 * config/tc-i386.h (processor_type): Add PROCESSOR_COREI7.
1314
1315 * doc/c-i386.texi: Document corei7, clflush and syscall.
1316
1317 2009-01-09 H.J. Lu <hongjiu.lu@intel.com>
1318
1319 * config/tc-i386.c (cpu_arch): Add .rdtscp.
1320 (md_show_usage): Display rdtscp.
1321
1322 * doc/c-i386.texi: Document rdtscp.
1323
1324 2009-01-09 Peter Bergner <bergner@vnet.ibm.com>
1325
1326 * config/tc-ppc.c (ppc_setup_opcodes): Remove PPC_OPCODE_NOPOWER4 test.
1327 Test the new "deprecated" opcode field.
1328
1329 2009-01-07 Sterling Augustine <sterling@tensilica.com>
1330
1331 * config/tc-xtensa.c (produce_flix): New.
1332 (option_flix, optoin_no_generate_flix, option_no_flix) Define.
1333 (md_longopts): Add support for them.
1334 (md_parse_option): Likewise.
1335 (md_show_usage): Add help message.
1336 (finish_vinsn): Don't allow multi-slot flix when produce_flix
1337 option is set to FLIX_NONE.
1338 * config/xtensa-relax.c (transition_applies): Only relax to
1339 flix branches when produce_flix equals FLIX_ALL.
1340 * config/xtensa-relax.h (flix_level, FLIX_ALL, FLIX_NO_GENERATE
1341 FLIX_NONE): New.
1342 (produce_flix): Declare.
1343
1344 2009-01-06 Chao-ying Fu <fu@mips.com>
1345
1346 * config/tc-mips.c (mips_ip): Set lastregno to 0xffffffff.
1347 Use strncmp to match jalr and jalr.hb.
1348 Fix a typo.
1349
1350 2009-01-05 H.J. Lu <hongjiu.lu@intel.com>
1351
1352 AVX Programming Reference (December, 2008)
1353 * config/tc-i386.c (build_modrm_byte): Remove 5 operand instruction
1354 support. Don't swap REG and NDS for FMA.
1355
1356 2009-01-02 Matthias Klose <doko@ubuntu.com>
1357
1358 * itbl-ops.c (itbl_disassemble): Don't rely on undefined sprintf
1359 behaviour.
1360
1361 For older changes see ChangeLog-2008
1362 \f
1363 Local Variables:
1364 mode: change-log
1365 left-margin: 8
1366 fill-column: 74
1367 version-control: never
1368 End: