2009-10-27 Tristan Gingold <gingold@adacore.com>
[external/binutils.git] / gas / ChangeLog
1 2009-10-27  Tristan Gingold  <gingold@adacore.com>
2
3         * config/tc-avr.c (md_pseudo_table): Add dwarf2 debug pseudo.
4         * config/tc-avr.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5         (DWARF2_ADDR_SIZE): Define.
6
7 2009-10-27  Alan Modra  <amodra@bigpond.net.au>
8
9         PR gas/10850
10         * listing.c (listing_flags): Delete.
11         * listing.h: Likewise.
12         * read.c (potable <lflags>): Call s_ignore.
13
14 2009-10-26  Nick Clifton  <nickc@redhat.com>
15
16         * doc/as.texinfo: Add mention of RX port and inclusion of RX
17         documentation.
18
19 2009-10-25  Arnold Metselaar  <arnold.metselaar@planet.nl>
20
21         * config/tc-z80.c (z80_start_line_hook): Fix parsing of 'equ' or
22         'defl' in cases where the space between the keyword and the
23         expression has been scrubbed away.
24         Do not check whether a symbol is redefined with 'equ' here;
25         the function equals takes an argument indicating whether
26         redefinitions are allowed.
27         Only call LISTING_NEWLINE if needed, and then after the call to
28         bump_line_counters.
29
30 2009-10-25  Maciej W. Rozycki  <macro@linux-mips.org>
31
32         * doc/as.texinfo (Overview): Move -mfix7000/-mno-fix7000 to
33         match the order elsewhere.  Add -mfix-vr4120/-mno-fix-vr4120 and
34         -mfix-vr4130/-mno-fix-vr4130.
35         * doc/c-mips.texi (MIPS Opts): Correct -no-mfix-vr4120 to
36         -mno-fix-vr4120 and -no-mfix-vr4130 to -mno-fix-vr4130.
37
38 2009-10-20  H.J. Lu  <hongjiu.lu@intel.com>
39
40         PR gas/10775
41         * doc/c-i386.texi: Mention movabs.
42
43 2009-10-19  H.J. Lu  <hongjiu.lu@intel.com>
44
45         * doc/c-i386.texi: Don't mention the 8 extra control registers
46         for x86-64.
47
48 2009-10-19  Doug Evans  <dje@sebabeach.org>
49
50         * config/tc-lm32.c (md_begin): Add missing call to bfd_set_arch_mach.
51
52         * config/tc-xc16x.c (md_cgen_lookup_reloc): Ensure fix_size is set
53         correctly for all 16 bit relocs.  Return BFD_RELOC_NONE if reloc
54         isn't recognized, not BFD_RELOC_XC16X_SOF.
55
56 2009-10-18  Alan Modra  <amodra@bigpond.net.au>
57
58         * as.h (know): Don't define as empty.
59         * config/tc-arm.c (make_mapping_symbol): Revert last patch.
60
61 2009-10-18  Matthias Klose  <doko@ubuntu.com>
62
63         * config/tc-arm.c (make_mapping_symbol): Add braces to avoid empty body
64         in release builds.
65
66 2009-10-16  H.J. Lu  <hongjiu.lu@intel.com>
67
68         PR gas/10775
69         * doc/c-i386.texi: Mention the 8 extra control registers for
70         x86-64.
71         Mention .code64 directive.
72
73 2009-10-15  Alan Modra  <amodra@bigpond.net.au>
74
75         PR gas/1491
76         * macro.c: Delete unnecessary function declarations.
77         (buffer_and_nest): Support multiple labels per line for
78         LABELS_WITHOUT_COLONS targets if the labels do have colons.
79         (free_macro): Move so that we don't need forward declaration.
80         * read.c (read_a_source_file): Take a copy of macro expansion line
81         before we trim labels.
82         * listing.c (listing_newline): Adjust stdin line save for
83         input_line_pointer still at start of line.
84
85 2009-10-13  H.J. Lu  <hongjiu.lu@intel.com>
86
87         PR gas/10766
88         * config/tc-i386.c (build_modrm_byte): Declare exp earlier.
89
90 2009-10-13  H.J. Lu  <hongjiu.lu@intel.com>
91
92         PR gas/10740
93         * config/tc-i386-intel.c (i386_intel_operand): Handle call
94         and jump with 2 immediate operands.
95
96         * config/tc-i386.c (i386_finalize_immediate): Don't generate
97         error message if operand string is NULL.
98
99 2009-10-013  Vincent Riviere  <vincent.riviere@freesbee.fr>
100
101         PR gas/3041
102         * config/tc-m68k.c (tc_gen_reloc): Fix addend for relocations
103         located in data section an referencing a weak symbol.
104
105 2009-10-07  Nathan Sidwell  <nathan@codesourcery.com>
106
107         * config/tc-arm.c (mapping_state, mapping_state_2): Make dummy
108         versions slightly more than nothing.
109
110         * doc/c-arm.texi (ARM Options): Correctly name the two mapcs options.
111
112 2009-10-07  Alan Modra  <amodra@bigpond.net.au>
113             H.J. Lu  <hongjiu.lu@intel.com>
114
115         PR gas/2117
116         * config/tc-ia64.c (parse_operand): Use expression rather than
117         expression_and_evalute.
118         (parse_operand_and_eval): New function.  Replace all uses of
119         parse_operand outside of parse_operands with this function.
120         (parse_operans_maybe_eval): New function.  Replace uses of
121         parse_operand in parse_operands, except for the dummy, with
122         this function.
123
124 2009-10-06  Alan Modra  <amodra@bigpond.net.au>
125
126         PR gas/10704
127         * symbols.c (snapshot_symbol): Revert 2006-01-09 patch for PR2117.
128
129 2009-10-06  Alan Modra  <amodra@bigpond.net.au>
130
131         * read.c (s_reloc): Don't use expression_and_evaluate.
132
133 2009-10-02  Peter Bergner  <bergner@vnet.ibm.com>
134
135         * config/tc-ppc.c (md_show_usage): Document -m476.
136         * doc/c-ppc.texi (PowerPC-Opts): Document -m476.
137
138 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
139
140         * dw2gencfi.c: Include dwarf2dbg.h.
141         (DWARF2_FORMAT): Define if not defined.
142         (dot_cfi_sections): New function.
143         (cfi_pseudo_table): Handle .cfi_sections.
144         (CFI_EMIT_eh_frame, CFI_EMIT_debug_frame): Define.
145         (cfi_sections): New variable.
146         (output_cie, output_fde, select_cie_for_fde): Add eh_frame
147         argument, add supporting for outputting .debug_frame
148         section.
149         (cfi_change_reg_numbers): New function or macro.
150         (cfi_finish): Only emit .eh_frame if
151         cfi_sections & CFI_EMIT_eh_frame.  Emit .debug_frame if
152         cfi_sections & CFI_EMIT_debug_frame.
153         * config/tc-ppc.h (md_reg_eh_frame_to_debug_frame): Define.
154         * doc/as.texinfo (CFI directives): Document .cfi_sections.
155
156 2009-10-01  Peter Bergner  <bergner@vnet.ibm.com>
157
158         * config/tc-ppc.c (md_show_usage): Rename "ppca2" to "a2".
159         * doc/c-ppc.texi (PowerPC-Opts): Likewise.
160
161 2009-10-01  H.J. Lu  <hongjiu.lu@intel.com>
162
163         * config/tc-i386.c (x86_cons): Reformat.
164
165 2009-09-29  DJ Delorie  <dj@redhat.com>
166
167         * Makefile.am: Add RX target.
168         * configure.in: Likewise.
169         * configure.tgt: Likewise.
170         * read.c (do_repeat_with_expander): New function.
171         * read.h: Provide a prototype for do_repeat_with_expander.
172         * doc/Makefile.am: Add RX target documentation.
173         * doc/all.texi: Likewise.
174         * doc/as.texinfo: Likewise.
175         * Makefile.in: Regenerate.
176         * NEWS: Mention support for RX architecture.
177         * configure: Regenerate.
178         * doc/Makefile.in: Regenerate.
179         * config/rx-defs.h: New file.
180         * config/rx-parse.y: New file.
181         * config/tc-rx.h: New file.
182         * config/tc-rx.c: New file.
183         * doc/c-rx.texi: New file.
184
185 2009-09-25  Martin Thuresson  <martint@google.com>
186
187         Update sources to make alpha, arc and arm targets compile cleanly
188         with -Wc++-compat:
189         * config/tc-alpha.c: Add casts.
190         (extended_bfd_reloc_code_real_type): New type. Used to avoid
191         enumeration conversion warnings.
192         (struct alpha_fixup, void assemble_insn, assemble_insn)
193         (assemble_tokens): Use new type.
194         * ecoff.c: Add casts. (mark_stabs): Use enumeration names.
195         * config/obj-elf.c: Add cast
196         * config/tc-arc.c: Add casts.
197         * config/obj-aout.h (text_section,data_section,bss_section):
198         Make extern.
199         * config/obj-elf.c: Add cast.
200         * config/tc-arm.c: Add casts.
201         (X, TxCE, TxCE, TxC3, TxC3w, TxCM_, TxCM, TUE, TUF, CE, CL, cCE)
202         (cCL, C3E, xCM_, nUF, nCE_tag): Change input format to avoid the
203         need for keywords as arguments.
204
205 2009-09-25  Nick Hudson  <nick.hudson@gmx.co.uk>
206
207         * doc/c-mips.texi: Fix the singlefloat and doublefloat kindex
208         entries
209
210 2009-09-24  H.J. Lu  <hongjiu.lu@intel.com>
211
212         * config/tc-i386.c (build_vex_prefix): Check vex == 2 instead
213         of vex256.
214
215 2009-09-24  H.J. Lu  <hongjiu.lu@intel.com>
216
217         PR gas/10677
218         * config/tc-i386.h (TC_FORCE_RELOCATION_LOCAL): Return true
219         for BFD_RELOC_X86_64_GOTPCREL.
220
221 2009-09-23  H.J. Lu  <hongjiu.lu@intel.com>
222
223         * config/tc-i386.h (TC_FORCE_RELOCATION_LOCAL): Don't check
224         BFD_RELOC_386_GOT32.
225
226 2009-09-23  Sterling Augustine  <sterling@jaw.hq.tensilica.com>
227
228         * config/tc-xtensa.c (md_apply_fix): Remove check for constant with
229         difference of of two symbols.
230         (xtensa_fix_adjustable): Likewise.
231
232 2009-09-23  Tim E. Sneddon  <tsneddon@kednos.com>
233
234         * configure.com: Fix a typo.
235
236 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
237
238         * symbols.c (define_sym_at_dot): New function, extracted from..
239         (colon): ..here.  Define error case cloned symbol.
240
241 2009-09-21  H.J. Lu  <hongjiu.lu@intel.com>
242
243         * config/tc-i386.c: Remove white spaces.
244
245 2009-09-21  Ben Elliston  <bje@au.ibm.com>
246             Peter Bergner  <bergner@vnet.ibm.com>
247
248         * config/tc-ppc.c (md_show_usage): Document -mpcca2.
249         * doc/c-ppc.texi (PowerPC-Opts): Document -mppca2.
250
251 2009-09-18  Nick Clifton  <nickc@redhat.com>
252
253         * po/es.po: Updated Spanish translation.
254
255 2009-09-15  H.J. Lu  <hongjiu.lu@intel.com>
256
257         * config/tc-i386.c (offset_in_range): Sign extend offset only
258         if BFD64 is defined.
259
260 2009-09-15  H.J. Lu  <hongjiu.lu@intel.com>
261
262         * config/tc-i386-intel.c (i386_intel_operand): Initialize
263         intel_state.has_offset to 0.
264
265 2009-09-15  H.J. Lu  <hongjiu.lu@intel.com>
266
267         * config/tc-i386.c (offset_in_range): Sign extend offset only
268         for 32bit address mode.
269
270 2009-09-15  Tristan Gingold  <gingold@adacore.com>
271
272         * makefile.vms (OBJS): Compile te-vms.c only on Itanium.
273
274 2009-09-14  H.J. Lu  <hongjiu.lu@intel.com>
275
276         PR gas/10637
277         * config/tc-i386-intel.c (intel_state): Add has_offset.
278         (i386_intel_simplify): Set intel_state.has_offset to 1 for
279         O_offset.
280         (i386_intel_operand): Turn on intel_state.is_mem if
281         intel_state.has_offset is 0 and the last char is ']'.
282
283 2009-09-14  H.J. Lu  <hongjiu.lu@intel.com>
284
285         PR gas/10636
286         * config/tc-i386.c (optimize_disp): Set disp32 for 64bit only
287         if there is an ADDR_PREFIX.
288         (i386_finalize_displacement): Repor error if signed 32bit
289         displacement is out of range.
290
291 2009-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
292
293         * config/tc-mips.c (MIPS_JALR_HINT_P): Take an expr argument.
294         Require the target to be a bare symbol on targets with
295         in-place addends.
296         (macro_build_jalr): Update accordingly.
297         (mips_fix_adjustable): Don't reduce R_MIPS_JALRs on targets
298         with in-place addends.
299
300 2009-09-11  Nick Clifton  <nickc@redhat.com>
301
302         * po/gas.pot: Updated by the Translation project.
303
304 2009-09-11  Martin Thuresson  <martint@google.com>
305
306         * as.c (main): Call dwarf2_init.
307         * config/obj-elf.c (struct group_list): New field.
308         (build_group_lists): Use hash lookup.
309         (free_section_idx): New function.
310         (elf_frob_file): Adjust.
311         * dwarf2dbg.c (all_segs_hash, last_seg_ptr): New variables.
312         (get_line_subseg): Adjust.
313         (dwarf2_init): New function.
314         * dwarf2dbg.h (dwarf2_init): New declaration.
315
316 2009-09-11  Martin Thuresson  <martint@google.com>
317
318         Updated sources to compile cleanly with -Wc++-compat:
319         * app.c: Add casts.
320         * as.c: Add casts.
321         * config/obj-elf.c: Add casts.
322         (obj_elf_type): Rename variable typename to type_name.
323         * config/tc-i386-intel.c (i386_operators): Rename member operator to op.
324         * config/tc-i386.c: Add casts.
325         (check_cpu_arch_compatible): Rename argument new to new_flag.
326         (gotrel): Update variable to use enum name instead of integer value.
327         * dw2gencfi.c: Add casts.
328         (struct cfi_escape_data): Move to top level.
329         * dwarf2dbg.c: Add cast.
330         * dwarf2dbg.h (dwarf2_loc_directive_seen): Make variable extern.
331         * ehopt.c Add casts.
332         (enum frame_state): Move to top level.
333         * expr.c (operatorf): Rename function operator to operatorf.
334         (operand): Rename variable operator to op.
335         (expr_set_rank): Rename argument operator to op.
336         * frags.c: Add cast.
337         * hash.c: Add casts.
338         * input-scrub.c: Add cast.
339         * listing.c: Add casts.
340         (enum edict_enum): Move to top level.
341         * macro.c: Add casts.
342         * macro.h (enum formal_type): Move to top level.
343         * read.c: Add casts.
344         (s_include): Rename variable try to try_file.
345         * remap.c: Add cast.
346         * stabs.c: Add casts.
347         * subsegs.c: Add casts.
348         * symbols.c: Add casts.
349         * write.c: Add casts.
350
351 2009-09-11  Hans-Peter Nilsson  <hp@bitrange.com>
352
353         PR gas/10623
354         * config/tc-mmix.c (md_assemble) <case mmix_operands_xyz_opt>:
355         Allow register operands for SWYM as for TRIP and TRAP.  Correct
356         operand handling and error checking.  Never emit
357         BFD_RELOC_MMIX_REG_OR_BYTE for operands to these insns.
358
359 2009-09-10  Alan Modra  <amodra@bigpond.net.au>
360
361         * config/tc-d10v.c: Include dwarf2dbg.h.
362         (write_long, write_1_short, write_2_short): Call dwarf2_emit_insn.
363         (d10v_frob_label): New function.
364         * config/tc-d10v.h (d10v_frob_label): Declare.
365         (tc_frob_label): Define as d10v_frob_label.
366
367 2009-09-10  Alan Modra  <amodra@bigpond.net.au>
368
369         * config/tc-d30v.c (d30v_frob_label): Call dwarf2_emit_label.
370         * config/tc-frv.c (frv_frob_label): Likewise.
371
372 2009-09-09  Alan Modra  <amodra@bigpond.net.au>
373
374         * config/obj-coff.h (USE_UNIQUE): Don't define.
375         * config/obj-coff.c (weak_uniquify): Use an_external_name when TE_PE.
376         * symbols.c (an_external_name): Define when TE_PE.
377         (S_SET_EXTERNAL): Assign an_external_name when TE_PE.
378         * tc.h (an_external_name): Declare when TE_PE.
379
380         * config/tc-i386.c (i386_target_format): Avoid duplicate case label.
381
382 2009-09-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
383
384         * configure.tgt (sh*-*-netbsdelf*): Set endian according to cpu.
385
386 2009-09-08  Alan Modra  <amodra@bigpond.net.au>
387
388         * read.c (emit_expr_fix): Handle size 3.
389         * config/tc-avr.c (md_assemble): Call dwarf2_emit_insn.
390         * config/tc-d30v.c (write_long, write_1_short,
391         write_2_short, md_assemble): Likewise.
392         * config/tc-dlx.c (md_assemble): Likewise.
393         * config/tc-i860.c (md_assemble): Likewise.
394         * config/tc-mn10200.c (md_assemble): Likewise.
395         * config/tc-pj.c (md_assemble): Likewise.
396         * config/tc-vax.c (md_assemble): Likewise.
397
398 2009-09-07  Daniel Gutson  <dgutson@codesourcery.com>
399
400         * config/tc-arm.c (arm_cpus): cortex-r4f CPU added.
401         * doc/c-arm.texi: cortex-r4f CPU added.
402
403 2009-09-07  Tristan Gingold  <gingold@adacore.com>
404
405         * po/POTFILES.in: Regenerate.
406         * po/gas.pot: Regenerate.
407
408         * Makefile.am (TARG_ENV_CFILES): New variable.  Set to te-vms.c
409         (POTFILES): Add $(TARG_ENV_CFILES) in definition.
410         (EXTRA_as_new_SOURCES): Ditto.
411         * Makefile: Regenerate.
412         * acinclude.m4 (BFD_HAVE_TIME_TYPE_MEMBER,
413         BFD_HAVE_SYS_STAT_TYPE_MEMBER): New macro created from bfd/bfd.m4.
414         * configure.in: Add Tests for tm_gmtoff, st_mtim.tv_sec and
415         st_mtim.tv_nsec (from bfd/configure.in).  Check for time.h and
416         sys/stat.h headers.
417         Add te-vms.o in extra_objects if te_file is vms.
418         * configure: Regenerate.
419         * config.in: Regenerate.
420         * config/te-vms.c: New file, from bfd/vmsutil.c
421         (vms_dwarf2_file_time_name, vms_dwarf2_file_size_name)
422         (vms_dwarf2_file_name): New functions.
423         (vms_file_stats_name): Make it static, add a dirname parameter to
424         locally create the full pathname.
425         * config/te-vms.h: Add a copyright header.
426         Declare the above functions.
427         (DWARF2_FILE_TIME_NAME, DWARF2_FILE_SIZE_NAME, DWARF2_FILE_NAME): Use
428         the above functions in the definition.
429         * makefile.vms (OBJS): Add te-vms.obj.
430         (te-vms.obj): Create a specific target.
431         * configure.com: Create targ-env.h using a per target value.
432         Compile te-vms.c for ia64.
433
434 2009-09-05  Jie Zhang  <jie.zhang@analog.com>
435
436         * doc/as.texinfo: Document that Blackfin GAS does not
437         accept SYMBOL = VALUE.
438
439 2009-09-05  Martin Thuresson  <martin@mtme.org>
440
441         * config/tc-arc.c (struct syntax_classes): Rename member class
442         to s_class. (arc_extinst): Rename variable class to
443         s_class. Update code to use renamed members.
444         * config/tc-mips.c (insn_uses_reg): Rename argument class to
445         regclass.
446         * config/tc-ppc.c (ppc_csect, ppc_change_csect, ppc_function)
447         (ppc_tc, ppc_is_toc_sym, ppc_symbol_new_hook, ppc_frob_label)
448         (ppc_fix_adjustable, md_apply_fix): Update code to use renamed
449         members.
450         * config/tc-ppc.h (struct ppc_tc_sy): Change name of member
451         from class to symbol_class. (OBJ_COPY_SYMBOL_ATTRIBUTES): Update
452         code to use renamed members.
453         * config/tc-score.c (s3_adjust_paritybit): Rename argument
454         class to i_class.
455         * config/tc-score7.c (s7_adjust_paritybit): Rename argument
456         class to i_class.
457
458 2009-09-04  Tristan Gingold  <gingold@adacore.com>
459
460         * NEWS: Add marker for 2.20.
461
462 2009-09-04  Jie Zhang  <jie.zhang@analog.com>
463
464         * config/bfin-parse.y (asm_1): Implement HLT instruction.
465         Fix comments for DBGA, DBGAH and DBGAL.
466         * config/tc-bfin.c (bfin_gen_pseudodbg_assert): Change according
467         to the new encoding of DBGA, DBGAH, and DBGAL.
468
469 2009-09-04  Jie Zhang  <jie.zhang@analog.com>
470
471         * doc/all.texi: Replace BFIN with Blackfin.
472         * doc/as.texinfo: Likewise.
473         * doc/c-bfin.texi: Likewise.
474         * doc/asconfig.texi: Likewise.
475
476         * doc/c-bfin.texi: Update -mcpu= option with bf512, bf514,
477         bf516 and bf518.
478
479 2009-09-04  Jie Zhang  <jie.zhang@analog.com>
480
481         * Makefile.am (bfin-parse.o): Remove bfin-parse.h from
482         the prerequisite. Add $(srcdir)/config/bfin-aux.h to the
483         prerequisite.
484         (bfin-defs.h, $(srcdir)/config/bfin-defs.h): Rename to ...
485         (bfin-parse.h, $(srcdir)/config/bfin-parse.h): ... these.
486         (bfin-lex.o): Add bfin-parse.h and $(srcdir)/config/bfin-defs.h
487         to the prerequisite.
488         * Makefile.in: Regenerate.
489
490 2009-09-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
491
492         * Makefile.am (itbl-lex.o): Depend on itbl-parse.h.
493         (itbl-ops.o, itbl-tops.o): Likewise.
494         (itbl-parse.h): Use separate rule.
495         * Makefile.in: Regenerate.
496
497 2009-09-03  Jie Zhang  <jie.zhang@analog.com>
498
499         * config/tc-bfin.c (md_parse_option): Call as_fatal for bad
500         -mcpu= option.
501
502 2009-09-03  Jie Zhang  <jie.zhang@analog.com>
503
504         * config/bfin-lex.l: Remove V as STATUS_REG.
505
506 2009-09-03  Jie Zhang  <jie.zhang@analog.com>
507
508         * config/bfin-parse.y: Remove trailing whitespace.
509         (ccstat): Indent.
510         * config/tc-bfin.c (struct bfin_reg_entry): Remove.
511         (bfin_reg_info[]): Remove.
512
513 2009-09-03  Jie Zhang  <jie.zhang@analog.com>
514
515         * config/bfin-defs.h (F_REG_ALL): Remove macro.
516         (F_REG_HIGH): Redefine.
517         (F_REG_NONE): New macro.
518         (F_REG_LOW): New macro.
519         (REG_CLASS): Enclose macro argument in parentheses when used.
520         (REG_EVEN): Likewise.
521         (IS_H): Use flags.
522         (IS_HCOMPL): Use flags.
523         * config/bfin-lex.l (SP.L, SP.H, FP.L, FP.H): Set flags.
524         (parse_reg): Set flags.
525         (parse_halfreg): Set flags.
526
527 2009-09-03  Jie Zhang  <jie.zhang@analog.com>
528
529         * config/bfin-parse.y (gen_multi_instr_1): Check anomaly
530         05000074 only when both slot1 and slot2 are filled.
531
532 2009-09-03  Jie Zhang  <jie.zhang@analog.com>
533
534         * config/tc-bfin.c (md_assemble): Bump line counters if there is
535         EOL in the instruction.
536
537 2009-09-03  Jie Zhang  <jie.zhang@analog.com>
538
539         * config/bfin-defs.h (IS_GENREG): Define.
540         (IS_DAGREG): Define.
541         (IS_SYSREG): Define.
542         * config/bfin-parse.y (asm_1): Check illegal register move
543         instructions.
544
545 2009-09-03  Jie Zhang  <jie.zhang@analog.com>
546
547         * config/bfin-parse.y (asm_1): Fix a typo.
548
549 2009-09-03  Jie Zhang  <jie.zhang@analog.com>
550
551         * config/bfin-parse.y (asm_1): Add LOOP_BEGIN and LOOP_END.
552         * config/tc-bfin.c (bfin_start_line_hook): Remove.
553         (bfin_loop_beginend): New.
554         * config/tc-bfin.h (bfin_start_line_hook): Don't declare.
555         (md_start_line_hook): Don't define.
556         * config/bfin-aux.h (bfin_loop_beginend): Declare.
557
558 2009-09-03  Tristan Gingold  <gingold@adacore.com>
559
560         * config/tc-ia64.c (ia64_vms_note): Use lbasename instead of basename.
561         Call xstrdup on the result and free the buffer after use.
562
563 2009-09-03  Tristan Gingold  <gingold@adacore.com>
564
565         * as.h (__PRETTY_FUNCTION__): Use the same definition as bfd/libbfd.h.
566
567 2009-09-02  Jie Zhang  <jie.zhang@analog.com>
568
569         * config/bfin-parse.y (value_match): Use int instead of long.
570
571         From  Michael Frysinger  <michael.frysinger@analog.com>
572         * config/bfin-defs.h (Expr_Node_Value): Declare the i_value
573         member as long long.
574
575 2009-09-02  Jie Zhang  <jie.zhang@analog.com>
576
577         From  Bernd Schmidt  <bernd.schmidt@analog.com>
578         * config/bfin-parse.y (asm_1): Clean up and unify error handling
579         for load and store insns.
580         (neg_value): Delete function.
581
582 2009-09-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
583
584         * Makefile.am (m68k-parse.o, bfin-lex.o, itbl-lex.o, itbl-parse.o):
585         Supply correct source file name for generated files which may be
586         in $(srcdir).
587         * Makefile.in: Regenerate.
588
589 2009-09-01  H.J. Lu  <hongjiu.lu@intel.com>
590
591         * version.c (parse_args): Change to "Copyright 2009".
592
593 2009-09-01  Tristan Gingold  <gingold@adacore.com>
594
595         * makefile.vms: Adjust include pathes.  Remove useless vaxctrl
596         library.
597         * configure.com: Ported to Itanium VMS.  Create build.com DCL script.
598         Make edit silent.
599
600 2009-09-01  Jie Zhang  <jie.zhang@analog.com>
601
602         * config/bfin-parse.y (asm_1): Only PREG and DREG are allowed
603         in comparison.
604
605 2009-09-01  Jie Zhang  <jie.zhang@analog.com>
606
607         2007-09-28  Bernd Schmidt  <bernd.schmidt@analog.com>
608         * config/tc-bfin.c (bfin_fix_adjustable): Partially revert the
609         2007-08-23 change; BFD_RELOC_BFIN_GOT is not adjustable.
610
611         2007-08-23  Jie Zhang  <jie.zhang@analog.com>
612         * config/tc-bfin.c (bfin_fix_adjustable): Adjust
613         BFD_RELOC_BFIN_GOT, BFD_RELOC_BFIN_GOT17M4 and
614         BFD_RELOC_BFIN_FUNCDESC_GOT17M4.
615
616 2009-09-01  Jie Zhang  <jie.zhang@analog.com>
617
618         * read.c (TC_START_LABEL): Add a new argument.
619         (read_a_source_file): Pass the beginning of the symbol through
620         the new argument of TC_START_LABEL.
621         * config/tc-arm.h (TC_START_LABEL): Add a new argument.
622         * config/tc-bfin.c (bfin_start_label): Only search '(' and '['
623         from the beginning of the symbol.
624         * config/tc-bfin.h (TC_START_LABEL): Add the new argument.
625         * config/tc-d30v.h (TC_START_LABEL): Likewise.
626         * config/tc-fr30.h (TC_START_LABEL): Likewise.
627         * config/tc-m32c.h (TC_START_LABEL): Likewise.
628         * config/tc-m32r.h (TC_START_LABEL): Likewise.
629         * config/tc-mep.h (TC_START_LABEL): Likewise.
630
631 2009-08-31  H.J. Lu  <hongjiu.lu@intel.com>
632
633         PR gas/10570
634         * write.c (write_object_file): Revert the accidental change
635         made in revision 1.124 on 2009-08-17.
636
637 2009-08-31  Jan Beulich  <jbeulich@novell.com>
638
639         * config/obj-elf.c (obj_elf_change_section): Set default type
640         by calling bfd_elf_get_default_section_type.
641
642 2009-08-31  Jie Zhang  <jie.zhang@analog.com>
643
644         * config/bfin-aux.h: Change format from DOS to UNIX.
645
646 2009-08-29  Martin Thuresson  <martin@mtme.org>
647
648         * config/tc-arm.c (struct asm_cond, struct asm_psr, struct
649         asm_barrier_opt): Change member template to
650         template_name. (md_begin): Update code to reflect new member
651         names.
652         * config/tc-i386.c (struct templates, struct _i386_insn)
653         (match_template, cpu_flags_match, match_reg_size, match_mem_size)
654         (operand_size_match, md_begin, i386_print_statistics, pi)
655         (build_vex_prefix, md_assemble, parse_insn, optimize_imm)
656         (optimize_disp): Updated code to use new names. (parse_insn):
657         Added casts.
658         * config/tc-ia64.c (dot_template, emit_one_bundle): Updated
659         code to use new names.
660         * config/tc-score.c (struct s3_asm_opcode): Renamed member
661         template to template_name. (s3_parse_16_32_inst, s3_parse_48_inst,
662         s3_do_macro_ldst_label, s3_build_score_ops_hsh): Update code to
663         use new names.
664         * config/tc-score7.c (struct s7_asm_opcode): Renamed member
665         template to template_name. (s7_parse_16_32_inst,
666         s7_do_macro_ldst_label, s7_build_score_ops_hsh): Update code to
667         use new names.
668         * config/tc-tic30.c (md_begin, struct tic30_insn)
669         (md_assemble): Update code to use new names.
670         * config/tc-tic54x.c (struct _tic54x_insn, md_begin)
671         (optimize_insn, tic54x_parse_insn, next_line_shows_parallel):
672         Update code to use new names.
673         * config/tc-arm.c (insert_reg_alias): Rename variable new to
674         new_reg.
675         * config/tc-dlx.c (parse_operand): Rename variable new to
676         new_pos.
677         * config/tc-ia64.c (ia64_gen_real_reloc_type): Rename variable
678         new to newr.
679         * config/tc-mcore.c (parse_exp, parse_imm): Rename variable
680         new to new_pointer.
681         * config/tc-microblaze.c (parse_exp, parse_imm, check_got):
682         Change name from new to new_pointer.
683         * config/tc-or32.c (parse_operand): Rename variable new to
684         new_pointer.
685         * config/tc-pdp11.c (md_assemble): Rename variable new to
686         new_pointer.
687         * config/tc-pj.c (alias): Change argument new to new_name.
688         * config/tc-score.c (s3_build_score_ops_hsh): Rename variable
689         new to new_opcode. (s3_build_dependency_insn_hsh) Rename variable
690         new to new_i2n. (s3_convert): Rename variables old and new to
691         r_old and r_new.
692         * config/tc-score7.c (s7_build_score_ops_hsh): Rename variable
693         new to new_opcode. (s7_build_dependency_insn_hsh): Rename variable
694         new to new_i2d. (s7_b32_relax_to_b16, s7_convert_frag): Rename
695         variables old and new to r_old and r_new.
696         * config/tc-sh.c (parse_exp): Rename variable new to
697         new_pointer.
698         * config/tc-sh64.c (shmedia_parse_exp): Rename variable new to
699         new_pointer.
700         * config/tc-tic4x.c (tic4x_operand_parse): Rename variable new
701         to new_pointer.
702         * config/tc-z8k.c (parse_exp): Rename variable new to
703         new_pointer.
704         * listing.c (listing_newline): Rename variable new to new_i.
705
706 2009-08-29  Matt Fleming  <matt@console-pimps.org>
707
708         * config/tc-sh.c (md_apply_fix): Extend sign of the offset value
709         for 64-bit host.
710
711 2009-08-28  H.J. Lu  <hongjiu.lu@intel.com>
712
713         * config/tc-i386.c (cpu_arch): Use PROCESSOR_L1OM on "l1om".
714         (i386_align_code): Handle PROCESSOR_L1OM.
715         (check_cpu_arch_compatible): Fix a typo in comments.
716         (set_cpu_arch): Check cpu_arch_isa instead of
717         cpu_arch_isa_flags.bitfield.cpul1om.
718         (i386_mach): Likewise.
719         (i386_target_format): Likewise.
720
721         * config/tc-i386.h (processor_type): Add PROCESSOR_L1OM.
722
723 2009-08-26  DJ Delorie  <dj@redhat.com>
724
725         * config/tc-mep.c (md_pcrel_from_section): Handle any other
726         forced-relocation cases.
727
728 2009-08-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
729
730         * Makefile.am (TARGET_CPU_CFILES): Add config/tc-moxie.c.
731         * config/tc-moxie.c (md_assemble): Fix typos in strings.  Fix
732         syntax error.
733         * Makefile.in: Regenerate.
734         * po/POTFILES.in: Likewise.
735         * po/gas.pot: Likewise.
736
737 2009-08-26  Nick Clifton  <nickc@redhat.com>
738
739         * config/obj-coff-seh.c (seh_arm_write_pdata): Test for
740         seh_ctx_root being NULL.
741
742 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
743
744         * Makefile.am (am__skiplex, am__skipyacc): New.
745         * Makefile.in: Regenerate.
746
747 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
748
749         * Makefile.am (YFLAGS): Remove, not needed any more.
750         (AM_CPPFLAGS): Renamed from ...
751         (INCLUDES): ... this.
752         * Makefile.in: Regenerate.
753
754         * Makefile.am (AUTOMAKE_OPTIONS): Remove 1.8 cygnus, add 1.11,
755         foreign and no-dist.
756         (all): Remove now-unneeded dependency upon info.
757         (DIST_SUBDIRS, MKDEP, DEP_INCLUDES, DEP_FLAGS, CLEANFILES)
758         (DEP_FILE_DEPS): Remove variables.
759         (OBJ_FORMAT_CFILES): Add config/obj-multi.c.
760         (OBJ_FORMAT_HFILES): Add config/obj-multi.h.
761         ($(OBJS), ecoff.o): Remove now-unneeded manual dependencies.
762         ($(TARG_CPU_O), $(ATOF_TARG_O), obj-aout.o, obj-coff.o obj-ecoff.o)
763         (obj-elf.o obj-evax.o, obj-fdpicelf.o, obj-multi.o, obj-som.o)
764         (e-mipself.o, e-mipsecoff.o, e-i386aout.o, e-i386coff.o, e-i386elf.o)
765         (e-crisaout.o, e-criself.o, tc-i386.o, xtensa-relax.o): Remove
766         now-unneeded rules.
767         (EXTRA_as_new_SOURCES): Add $(CFILES), $(HFILES), $(TARGET_CPU_CFILES),
768         $(TARGET_CPU_HFILES), $(OBJ_FORMAT_CFILES), $(OBJ_FORMAT_HFILES),
769         $(CONFIG_ATOF_CFILES), $(MULTI_CFILES), so their dependency fragments
770         are picked up in the Makefile.
771         (itbl-lex.c, itbl-ops.o): Remove manual dependencies.
772         (m68k-parse.o, bfin-lex.o, itbl-lex.o, itbl-parse.o, itbl-tops.o)
773         (itbl-test.o): Rewrite using automake-style dependency
774         tracking rules; only list the dependency upon the primary source
775         file, but no included headers.
776         (DEP, DEP1, DEPTC, DEPOBJ, DEP2, dep.sed, dep, dep-in, dep-am):
777         Remove.
778         (mkdep section): Remove.
779         * Makefile.in: Regenerate.
780         * po/POTFILES.in, po/gas.pot: Regenerate.
781
782         * Makefile.am (install-pdf, install-pdf-recursive, install-html)
783         (install-html-recursive): Remove.
784         * Makefile.in: Regenerate.
785         * doc/Makefile.am (pdf__strip_dir, install-pdf, install-pdf-am)
786         (html__strip_dir, install-html, install-html-am): Remove.
787         * doc/Makefile.in: Regenerate.
788
789         * Makefile.in: Regenerate.
790         * aclocal.m4: Likewise.
791         * config.in: Likewise.
792         * configure: Likewise.
793         * doc/Makefile.in: Likewise.
794
795 2009-08-21  Sterling Augustine  <sterling@jaw.hq.tensilica.com>
796
797         * config/tc-xtensa.c (config_max_slots): New global variable.
798         (md_begin): Set config_max_slots.
799         (total_frag_text_expansion): Use config_max_slots instead of
800         MAX_SLOTS.
801         (xg_init_vinsn): Likewise.
802         (xg_clear_vinsn): Likewise.
803         (xg_free_vinsn): Likewise.
804
805 2009-08-20  Sterling Augustine  <sterling@jaw.hq.tensilica.com>
806
807         * config/tc-xtensa.c (xg_copy_vinsn): New function.
808         (finish_vinsn): Call xg_copy_vinsn.
809
810 2009-08-19  Sterling Augustine  <sterling@tensilica.com>
811
812         * config/tc-xtensa.h (xtensa_frag_data): Rename unused field fr_prev
813         to no_transform_end.
814         * config/tc-xtensa.c (xtensa_mark_difference_of_two_symbols): Set
815         and use no_transform_end.
816
817 2009-08-18  Kai Tietz  <kai.tietz@onevision.com>
818
819         * config/obj-coff-seh.c: Add copyright notice.
820         * config/obj-coff-seh.h: Add copyright notice.
821         Add x64 specific macros from coff/pe.h header.
822
823 2009-08-18  Sterling Augustine  <sterling@tensilica.com>
824
825         * config/tc-xtensa.c (xtensa_create_xproperty_segments): Use
826         sizeof instead of hard-coded value.
827         (add_xt_block_frags): Remove unused local variable.
828         (frag_flags_to_number): Change return type to flagword.  Remove
829         unused local variable.
830
831 2009-08-17  Sterling Augustine  <sterling@tensilica.com>
832
833         * config/tc-xtensa.c (xtensa_frob_label): move call to
834         do_align_targets to set frag_type only.
835
836 2009-08-17  Kai Tietz  <kai.tietz@onevision.com>
837
838         * config/obj-coff-seh.c: New file.
839         * config/obj-coff-seh.h: Likewise.
840         * config/obj-coff.c (obj-coff-seh.c): Add include.
841         (coff_pseudo_table): Add new .seh... commands.
842         * config/obj-coff.h (obj_coff_seh_do_final): Add new
843         function prototype.
844         (obj_coff_generate_pdata): New obj-coff hook.
845         * write.c (size_seg): Avoid sizing of already sized
846         sections.
847         (write_object_file): Call conditional hook
848         objc_coff_generate_pdata.
849         * Makefile.am: Add dependencies for new files.
850         * Makefile.in: Regenerated.
851
852 2009-08-17  Nick Clifton  <nickc@redhat.com>
853
854         * config/tc-microblaze.c: Include safe-ctype.h instad of ctype.h.
855         (parse_reg): Use safe-ctype.h macros.
856         (parse_exp): Likewise.
857         (md_assemble): Likewise.
858
859 2009-08-11  DJ Delorie  <dj@redhat.com>
860
861         * config/tc-mep.c (md_estimate_size_before_relax): Handle weak
862         symbols correctly.
863         (md_convert_frag): Likewise.
864         (md_pcrel_from_section): Likewise.
865         (mep_force_relocation): Likewise.
866
867 2009-08-11  Bernd Schmidt  <bernd.schmidt@analog.com>
868
869         * config/bfin-parse.y (gen_multi_instr_1): New function.
870         (asm): Use it instead of bfin_gen_multi_instr.
871         (error): Add a format string when calling as_bad.
872         * config/bfin-defs.h (insn_regmask): Declare.
873         * config/tc-bfin.c (DREG_MASK, DREGH_MASK, DREGL_MASK, IREG_MASK): New
874         macros.
875         (decode_ProgCtrl_0, decode_LDSTpmod_0, decode_dagMODim_0,
876         decode_dagMODik_0, decode_dspLDST_0, decode_LDST_0, decode_LDSTiiFP_0,
877         decode_LDSTii_0, decode_dsp32mac_0, decode_dsp32mult_0,
878         decode_dsp32alu_0, decode_dsp32shift_0, decode_dsp32shitimm_0,
879         insn_regmask): New functions.
880
881         From Jie Zhang  <jie.zhang@analog.com>
882         * config/tc-bfin.h (bfin_anomaly_checks): Declare.
883         (AC_05000074): Define.
884         (ENABLE_AC_05000074): Define.
885         * config/tc-bfin.c (enum bfin_cpu_type): New.
886         (bfin_cpu_t): Typedef.
887         (bfin_cpu_type): Define.
888         (bfin_si_revision): Define.
889         (bfin_anomaly_checks): Define.
890         (struct bfin_cpu): New.
891         (bfin_cpus[]): New. (struct bfin_cpu_isa): Define.
892         (bfin_isa): New global variable.
893         (OPTION_MCPU): Define.
894         (md_longopts[]): Add -mcpu option.
895         (md_parse_option): Deal with -mcpu option and initialize
896         bfin_anomaly_checks.
897         * doc/c-bfin.texi: Rename BFIN to Blackfin throughout.  Document
898         -mcpu option.
899         * config/bfin-parse.y (gen_multi_instr_1): Check anomaly
900         05000074.
901
902 2009-08-11  Mike Frysinger  <vapier@gentoo.org>
903
904         * config/bfin-parse.y (binary): Change "compiler" to "assembler".
905         (unary): Likewise.
906
907 2009-08-11  Nick Clifton  <nickc@redhat.com>
908
909         PR 10443
910         * config/tc-arm.c (do_t_mov_cmp): Do not silently ignore shifted
911         operands.
912
913 2009-08-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
914
915         Fix compilation of i386-*-go32.
916         * config/tc-i386.c (i386_target_format <TE_GO32>): New.
917         (i386_target_format <OBJ_MAYBE_COFF>): Compile only if !TE_GO32.
918         * config/te-go32.h (TARGET_FORMAT): Move the definition ...
919         * config/tc-i386.h <!i386_target_format>: ... here.
920
921 2009-08-10  Daniel Gutson  <dgutson@codesourcery.com>
922
923         PR gas/10479
924         * config/tc-arm.c (do_t_add_sub_w): Fixed constraints.
925
926 2009-08-07  Daniel Jacobowitz  <dan@codesourcery.com>
927
928         * config/tc-arm.c (marked_pr_dependency, mapstate): Delete global
929         variables.
930         (mapping_state): Use the section's mapstate.
931         (mapping_state_2): Likewise.  Skip special sections.
932         (s_arm_unwind_fnend): Use the section's marked_pr_dependency.
933         (arm_elf_change_section): Do not set deleted globals.
934         * config/tc-arm.h (struct arm_segment_info_type): Document
935         marked_pr_dependency.
936
937 2009-08-07  Michael Eager <eager@eagercon.com>
938
939         * NEWS: Mention MicroBlaze support.
940
941 2009-08-06  Michael Eager <eager@eagercon.com>
942
943         * Makefile.am: add microblaze to CPU_TYPES, config/tc-microblaze.c to
944         TARGET_CPU_CFILES, config/tc-microblaze.h to TARGET_CPU_HFILES, add
945         DEP_microblaze_elf target.
946         * Makefile.in: Regenerate.
947         * config/tc-microblaze.c: Add MicroBlaze assembler.
948         * config/tc-microblaze.h: Add header for tc-microblaze.c.
949         * configure.in: Add microblaze target.
950         * configure: Regenerate.
951         * configure.tgt: Same.
952         * doc/Makefile.am: Add c-microblaze.texi to CPU_DOCS.
953         * doc/Makefile.in: Same.
954         * doc/all.texi: Set MICROBLAZE.
955         * doc/as.texinfo: Add MicroBlaze doc links.
956         * doc/c-microblaze.texi: New MicroBlaze docs.
957
958 2009-08-06  Nick Clifton  <nickc@redhat.com>
959
960         * config/tc-arm.c (md_assemble): Call mapping_state from inside a
961         block in case it is a null macro.
962
963 2009-08-05  Chao-ying Fu  <fu@mips.com>
964
965         * config/tc-mips.c (MIPS_JALR_HINT_P): New define. For IRIX, it is
966         true for new abi.  For non-IRIX targets, it is always true.
967         (macro_build_jalr): If MIPS_JALR_HINT_P, emit BFD_RELOC_MIPS_JALR.
968
969 2009-08-05  Eric B. Weddington  <eric.weddington@atmel.com>
970
971         * config/tc-avr.c (mcu_types): Add attiny2313a, attiny4313, attiny261a,
972         attiny861a, atmega644pa, attiny24a, attiny44a.
973         * doc/c-avr.texi: Likewise.
974
975 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
976
977         * doc/c-mips.texi (MIPS Opts): List 1004K options for -march.
978         * config/tc-mips.c (mips_cpu_info_table): Add 1004K cores.
979
980 2009-08-04  Nathan Sidwell  <nathan@codesourcery.com>
981
982         * config/tc-arm.c (my_get_expression): Detect missing expressions.
983
984 2009-08-02  Eric B. Weddington  <eric.weddington@atmel.com>
985
986         * config/tc-avr.c (mcu_types): Add atmega8m1, atmega8c1, atmega16c1.
987         * doc/c-avr.texi: Likewise.
988
989 2009-08-01  Eric B. Weddington  <eric.weddington@atmel.com>
990
991         * config/tc-avr.c (mcu_types): Add atmega8u2, atmega16u2, atmega32u2.
992         * doc/c-avr.texi: Likewise.
993
994 2009-07-31  Daniel Gutson  <dgutson@codesourcery.com>
995             Daniel Jacobowitz  <dan@codesourcery.com>
996
997         * config/obj-elf.c (obj_elf_ident): Notify section change to the hook.
998         * config/tc-arm.c (make_mapping_symbol): New function, from
999         mapping_state.  Save mapping symbols in the frag.
1000         (insert_data_mapping_symbol): New.
1001         (mapping_state): Use make_mapping_symbol, improve state transitions.
1002         (mapping_state_2): New.  Provide dummy definition.
1003         (opcode_select): Do not call mapping_state.
1004         (s_bss): Call md_elf_section_change_hook instead of mapping_state.
1005         (output_inst): Update use of tc_frag_data.
1006         (new_automatic_it_block): Call mapping_state before emitting the
1007         IT instruction.
1008         (md_assemble): Move mapping_state to just before outputting the
1009         new instruction.
1010         (arm_handle_align): Update use of tc_frag_data.
1011         Call insert_data_mapping_symbol.
1012         (arm_init_frag): Update use of tc_frag_data.  Call
1013         mapping_state_2.
1014         (arm_elf_change_section): Always update the mapping symbol FSM state.
1015         (check_mapping_symbols): New function.
1016         (arm_adjust_symtab): Use check_mapping_symbols.
1017         * config/tc-arm.h (struct arm_frag_type): New.
1018         (TC_FRAG_TYPE): Change to struct arm_frag_type.
1019         (TC_FRAG_INIT): Pass max_chars.
1020         (arm_init_frag): Update prototype.
1021
1022 2009-07-31  Anthony Green  <green@moxielogic.com>
1023
1024         * configure.tgt (generic_target): Add moxie-uclinux support.
1025
1026 2009-07-30  Nick Clifton  <nickc@redhat.com>
1027
1028         * doc/c-arm.texi (ARM-Instruction-Set): New node.  Documents the
1029         different syntaxes support by the ARM port.
1030         (ARM Directives): Add entry for .syntax.
1031
1032         * doc/c-mips.texi (MIPS insn): Fix typo.
1033
1034 2009-07-29  Alan Modra  <amodra@bigpond.net.au>
1035
1036         PR ld/10269
1037         * symbols.c (S_FORCE_RELOC): True for BSF_GNU_INDIRECT_FUNCTION.
1038         * config/tc-i386.c: Revert 2009-06-13 change.
1039         * config/tc-i386.h: Likewise.
1040
1041 2009-07-28  Jan Beulich  <jbeulich@novell.com>
1042
1043         * expr.c (op_rank): Specify size. Remove O_md* initializers.
1044
1045 2009-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1046
1047         * config/tc-m68k.c (mcf5221x_ctrl): New.
1048         (m68k_cpu): Add line for MCF5221x.
1049
1050 2009-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1051
1052         * config/tc-m68k.c (mcf52235_ctrl): Remove non-existent CACR, ACR[01].
1053         (mcf53017_ctrl): Fix RAMBAR.
1054
1055 2009-07-27  Jan Beulich  <jbeulich@novell.com>
1056
1057         * obj-elf.c (elf_file_symbol): Replace symbol name set up by
1058         symbol_new() with the passed in, unmodified one.
1059
1060 2009-07-27  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
1061
1062         * config/tc-cr16.c (md_apply_fix): Put the addend value alone in to
1063         object file without symbol values.
1064         (tc_gen_reloc): For local symbols resolved or its absolute symbol,
1065         then set the relocation type as NULL.
1066
1067 2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>
1068
1069         * config/tc-i386.c (cpu_arch): Add l1om.
1070         (check_cpu_arch_compatible): New.
1071         (set_cpu_arch): Use it.
1072         (i386_arch): New.
1073         (i386_mach): Return bfd_mach_l1om for Intel L1OM.
1074         (md_show_usage): Display l1om.
1075         (i386_target_format): Return ELF_TARGET_L1OM_FORMAT if
1076         cpu_arch_isa_flags.bitfield.cpul1om is set.
1077
1078         * config/tc-i386.h (TARGET_ARCH): Use (i386_arch ()).
1079         (i386_arch): New.
1080         (ELF_TARGET_L1OM_FORMAT): Likewise.
1081
1082         * doc/c-i386.texi: Document l1om.
1083
1084 2009-07-24  Roland McGrath  <roland@redhat.com>
1085             Mark Wielaard  <mjw@redhat.com>
1086
1087         * config/obj-elf.c (obj_elf_ident): Set SEC_MERGE | SEC_STRINGS
1088         flags on .comment section.
1089
1090 2009-07-24  Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
1091             Alan Modra  <amodra@bigpond.net.au>
1092
1093         * config/tc-spu.c (md_apply_fix): Handle SPU_ADD_PIC.
1094         * config/tc-spu.h (tc_fix_adjustable): Don't adjust for SPU_ADD_PIC.
1095         (TC_FORCE_RELOCATION): Emit relocs for SPU_ADD_PIC.
1096
1097 2009-07-24  Jan Beulich  <jbeulich@novell.com>
1098
1099         * tc-i386.c (cpu_arch): Add .8087, .287, .387, .no87, .nommx,
1100         .nosse, and .noavx.
1101         (cpu_flags_and_not): New.
1102         (set_cpu_arch): Check whether sub-architecture specified is a
1103         feature disable.
1104         (md_parse_option): Likewise.
1105         (parse_real_register): Don't return floating point register
1106         when x87 functionality is disabled.
1107         (md_show_usage): Add new sub-options.
1108         * doc/c-i386.texi: Update with new command line sub-options.
1109
1110 2009-07-24  Nick Clifton  <nickc@redhat.com>
1111
1112         PR 10437
1113         * config/tc-alpha.c: Fix up uses of gas printf like functions so
1114         that the format string is a constant string.  Add translation
1115         support to message strings.
1116         * config/tc-arc.c: Likewise.
1117         * config/tc-arm.c: Likewise.
1118         * config/tc-cris.c: Likewise.
1119         * config/tc-fr30.c: Likewise.
1120         * config/tc-frv.c: Likewise.
1121         * config/tc-h8300.c: Likewise.
1122         * config/tc-hppa.c: Likewise.
1123         * config/tc-i370.c: Likewise.
1124         * config/tc-i960.c: Likewise.
1125         * config/tc-ia64.c: Likewise.
1126         * config/tc-m32r.c: Likewise.
1127         * config/tc-mep.c: Likewise.
1128         * config/tc-mips.c: Likewise.
1129         * config/tc-moxie.c: Likewise.
1130         * config/tc-msp430.c: Likewise.
1131         * config/tc-openrisc.c: Likewise.
1132         * config/tc-pdp11.c: Likewise.
1133         * config/tc-pj.c: Likewise.
1134         * config/tc-s390.c: Likewise.
1135         * config/tc-sh.c: Likewise.
1136         * config/tc-sh64.c: Likewise.
1137         * config/tc-sparc.c: Likewise.
1138         * config/tc-spu.c: Likewise.
1139         * config/tc-tic30.c: Likewise.
1140         * config/tc-tic4x.c: Likewise.
1141         * config/tc-tic54x.c: Likewise.
1142         * config/tc-v850.c: Likewise.
1143         * config/tc-xc16x.c: Likewise.
1144         * config/tc-xstormy16.c: Likewise.
1145         * config/tc-z80.c: Likewise.
1146         * config/tc-z8k.c: Likewise.
1147         * config/atof-ieee.c: Add translation support to as_warn
1148         messages.
1149         * config/obj-coff.c: Likewise.
1150
1151 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
1152
1153         * config/obj-elf.c (obj_elf_type): Add code to support a type of
1154         gnu_unique_object.
1155         * doc/as.texinfo: Document new feature of .type directive.
1156         * NEWS: Mention support for gnu_unique_object symbol type.
1157
1158 2009-07-23  Nick Clifton  <nickc@redhat.com>
1159
1160         PR binutils/10379
1161         * doc/c-mips.texi (MIPS insn): Document the special behaviour of
1162         the .global directive for MIPS ports.
1163
1164 2009-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1165
1166         PR gas/10420
1167         * config/tc-i386.c (i386_align_code): Tune for 32bit nops in
1168         64bit.
1169         (i386_target_format): Set cpu_arch_isa_flags.bitfield.cpulm
1170         for 64bit.
1171
1172 2009-07-17  H.J. Lu  <hongjiu.lu@intel.com>
1173
1174         * config/tc-i386.c (md_assemble): Update operand types.
1175         (update_imm): Updated.
1176         (finalize_imm): Update the first 2 immediate operands only
1177         for instructions with 2 operands or more.
1178
1179 2009-07-17  H.J. Lu  <hongjiu.lu@intel.com>
1180
1181         * config/tc-i386.c (md_assemble): Check implicit registers
1182         only for instructions with 3 operands or less.
1183
1184 2009-07-17  Nick Clifton  <nickc@redhat.com>
1185
1186         * config/tc-avr.c (md_apply_fix): Cast fixup reloc type to avoid
1187         compile time warning.
1188
1189 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
1190
1191         * config/tc-i386.c (md_assemble): Only check i.operands for AX.
1192         (md_estimate_size_before_relax): Don't relax IFUNC symbols.
1193
1194 2009-07-16  Nathan Sidwell  <nathan@codesourcery.com>
1195
1196         * config/tc-arm.c (md_apply_fix <BFD_RELOC_ARM_TARGET2>): Write
1197         the offset for REL targets here.
1198
1199 2009-07-15  Kai Tietz  <kai.tietz@onevision.com>
1200
1201         * listing.c (print_source): Initialize cache by NULL.
1202
1203 2009-07-15  Daniel Gutson  <dgutson@codesourcery.com>
1204
1205         * doc/c-arm.texi (mauto-it): Removed old option.
1206         (mimplicit-it): Added right option.
1207
1208 2009-07-14  Daniel Gutson  <dgutson@codesourcery.com>
1209
1210         * config/tc-arm.h (MAX_MEM_ALIGNMENT_BYTES): Define.
1211         (MAX_MEM_FOR_RS_ALIGN_CODE): Define in terms of
1212         MAX_MEM_ALIGNMENT_BYTES.
1213         * config/tc-arm.c (arm_frag_align_code): Replace hard coded
1214         constant with MAX_MEM_FOR_RS_ALIGN_CODE.
1215
1216 2009-07-14  Nick Clifton  <nickc@redhat.com>
1217
1218         PR 10387
1219         * config/tc-arm.h (THUMB_IS_FUNC): Handle a NULL pointer.
1220         (ARM_IS_FUNC): Likewise.
1221
1222 2009-07-14  Daniel Gutson  <dgutson@codesourcery.com>
1223
1224         * config/tc-arm.c (md_assemble): Added validation.
1225
1226 2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>
1227
1228         * Makefile.am: Run "make dep-am".
1229         * Makefile.in: Regenerated.
1230
1231 2009-07-10  Tom Tromey  <tromey@redhat.com>
1232
1233         * Makefile.am (DEPTC_alpha_ecoff): Refer to dwarf2.h, not
1234         elf/dwarf2.h.
1235         (DEPTC_alpha_elf): Likewise.
1236         (DEPTC_alpha_evax): Likewise.
1237         (DEPTC_arm_elf): Likewise.
1238         (DEPTC_hppa_elf): Likewise.
1239         (DEPTC_i386_aout): Likewise.
1240         (DEPTC_i386_coff): Likewise.
1241         (DEPTC_i386_elf): Likewise.
1242         (DEPTC_m68k_aout): Likewise.
1243         (DEPTC_m68k_coff): Likewise.
1244         (DEPTC_m68k_elf): Likewise.
1245         (DEPTC_mips_coff): Likewise.
1246         (DEPTC_mips_ecoff): Likewise.
1247         (DEPTC_mips_elf): Likewise.
1248         (DEPTC_ppc_coff): Likewise.
1249         (DEPTC_ppc_elf): Likewise.
1250         (DEPTC_s390_elf): Likewise.
1251         (DEPTC_sh_coff): Likewise.
1252         (DEPTC_sh_elf): Likewise.
1253         (DEPTC_sh64_elf): Likewise.
1254         (DEPTC_sparc_aout): Likewise.
1255         (DEPTC_sparc_coff): Likewise.
1256         (DEPTC_sparc_elf): Likewise.
1257         (as.o): Likewise.
1258         (dwarf2dbg.o): Likewise.
1259         (dw2gencfi.o): Likewise.
1260         (ehopt.o): Likewise.
1261         (read.o): Likewise.
1262         * Makefile.in: Rebuild.
1263         * dw2gencfi.h: Include dwarf2.h, not elf/dwarf2.h.
1264         * dwarf2dbg.c: Likewise.
1265         * ehopt.c: Likewise.
1266
1267 2009-07-09  Daniel Gutson  <dgutson@codesourcery.com>
1268
1269         * config/tc-arm.c (it_fsm_post_encode): New forward declaration.
1270         (set_it_insn_type_nonvoid): New macro.
1271         (emit_thumb32_expr): New function.
1272         (thumb_insn_size): New function.
1273         (emit_insn): New function.
1274         (s_arm_elf_inst): New function.
1275         (md_pseudo_table): New pseudo-opcode entries added.
1276         * doc/c-arm.texi: New directive added.
1277
1278 2009-07-07  DJ Delorie  <dj@redhat.com>
1279
1280         * config/tc-mep.c (md_begin): Don't reset the coprocessor options
1281         when enabling other options without a specific configuration.
1282
1283 2009-07-07  Chung-Lin Tang  <cltang@pllab.cs.nthu.edu.tw>
1284
1285         * config/tc-arm.c (insns): Fix encoding for torvsc.
1286
1287 2009-07-06  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1288
1289         * config/tc-i386.c (cpu_arch): Add .fma4 and CPU_FMA4_FLAGS.
1290         (build_modrm_byte): Add support to handle FMA4 instructions.
1291         (md_show_usage): Add fma4.
1292
1293 2009-07-04  Alan Modra  <amodra@bigpond.net.au>
1294
1295         * config/tc-cr16.h (TC_LINKRELAX_FIXUP): Set only for code sections.
1296
1297 2009-07-02  Tristan Gingold  <gingold@adacore.com>
1298
1299         * Makefile.am (OBJ_FORMATS): Add macho.
1300         (CPU_OBJ_VALID): Ditto.
1301         (OBJ_FORMAT_CFILES): Add config/obj-macho.c
1302         (OBJ_FORMAT_HFILES): Add config/obj-macho.h
1303         (obj-macho.o): New rule.
1304         * Makefile.in: Regenerated.
1305         * configure.tgt (generic_target): Add i386-*-darwin*.
1306         * config/tc-i386.h: Use i386_target_format for Mach-O.
1307         * config/tc-i386.c (i386_target_format): Define it for Mach-O.
1308         (i386_target_format): Add a case for bfd_target_mach_o_flavour.
1309         * config/obj-macho.h: New file.
1310         * config/obj-macho.c: New file.
1311
1312 2009-07-01  Nick Clifton  <nickc@redhat.com>
1313
1314         PR 10168
1315         * config/tc-arm.c (do_t_pkhtb): Swap Rm and Rn when encoding as
1316         PKHBT.
1317
1318 2009-07-01  Paul Brook <paul@codesourcery.com>
1319
1320         * config/tc-arm.c (MISSING_FNSTART): Define.
1321         (s_arm_unwind_fnstart): Diagnose duplicate directive.
1322         (s_arm_unwind_handlerdata, s_arm_unwind_fnend, s_arm_unwind_fnend,
1323         s_arm_unwind_cantunwind, s_arm_unwind_personalityindex,
1324         s_arm_unwind_personality, s_arm_unwind_save, s_arm_unwind_movsp,
1325         s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): Error if
1326         not inside function unwinding region.
1327
1328 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
1329
1330         * config/tc-i386.c: Reformat.
1331
1332 2009-06-23  DJ Delorie  <dj@redhat.com>
1333
1334         * config/tc-mep.c (mep_check_ivc2_scheduling): For IVC2, allocate
1335         32 bits for relaxable branches so that we can relax them later.
1336         (md_estimate_size_before_relax): Assume IVC2 branches will be relaxed.
1337         (mep_relax_frag): New.
1338         (md_convert_frag): Relax IVC2 branches in-place.
1339         * config/tc-mep.h ((mep_relax_frag): New.
1340
1341 2009-06-22  Martin Thuresson  <martin@mtme.org>
1342
1343         * app, as.c, as.h, atof-generic.c, cgen.c,
1344         config/atof-ieee.c, config/obj-aout.c,
1345         config/obj-coff.c, config/obj-ecoff.c,
1346         config/obj-elf.c, config/obj-som.c, config/tc-alpha.c,
1347         config/tc-arc.c, config/tc-arm.c, config/tc-cr16.c,
1348         config/tc-cris.c, config/tc-crx.c, config/tc-d30v.c,
1349         config/tc-dlx.c, config/tc-hppa.c, config/tc-i370.c,
1350         config/tc-i386-intel.c, config/tc-i386.c,
1351         config/tc-i860.c, config/tc-i960.c, config/tc-ia64.c,
1352         config/tc-iq2000.c, config/tc-m32c.c,
1353         config/tc-m32r.c, config/tc-m68hc11.c,
1354         config/tc-m68k.c, config/tc-maxq.c, config/tc-mcore.c,
1355         config/tc-mep.c, config/tc-mips.c, config/tc-mmix.c,
1356         config/tc-mn10300.c, config/tc-moxie.c,
1357         config/tc-ns32k.c, config/tc-pj.c, config/tc-ppc.c,
1358         config/tc-s390.c, config/tc-score.c,
1359         config/tc-score7.c, config/tc-sh.c, config/tc-sparc.c,
1360         config/tc-spu.c, config/tc-tic30.c, config/tc-vax.c,
1361         config/tc-xtensa.c, config/xtensa-relax.c,
1362         dw2gencfi.c, dwarf2dbg.c, ehopt.c, expr.c,
1363         frags.c, input-file.c, read.c, sb.c,
1364         subsegs.c, symbols.c, write.c: Change the name of the
1365         gas macro `assert' to `gas_assert'.
1366
1367 2009-06-22  Daniel Gutson <dgutson@codesourcery.com>
1368
1369         * config/tc-arm.c (implicit_it_mode): New enum.
1370         (implicit_it_mode): New global.
1371         (it_instruction_type): New enum.
1372         (arm_parse_it_mode): New function.
1373         (arm_long_opts): New option added.
1374         (arm_it): New field.
1375         (it_state): New enum.
1376         (now_it): New macro.
1377         (check_it_blocks_finished): New function.
1378         (insns[]): Use the IT Thumb opcodes for ARM too.
1379         (arm_cleanup): Call check_it_blocks_finished.
1380         (now_it_compatible): New function.
1381         (conditional_insn): New function.
1382         (set_it_insn_type): New macro.
1383         (set_it_insn_type_last): New macro.
1384         (do_it): Call automatic IT machinery functions.
1385         (do_t_add_sub): Likewise
1386         (do_t_arit3): Likewise.
1387         (do_t_arit3c): Likewise.
1388         (do_t_blx): Likewise.
1389         (do_t_branch): Likewise.
1390         (do_t_bkpt): Likewise.
1391         (do_t_branch23): Likewise.
1392         (do_t_bx): Likewise.
1393         (do_t_bxj): Likewise.
1394         (do_t_cps): Likewise.
1395         (do_t_cpsi): Likewise.
1396         (do_t_cbz): Likewise.
1397         (do_t_it): Likewise.
1398         (encode_thumb2_ldmstm): Likewise.
1399         (do_t_ldst): Likewise.
1400         (do_t_mov_cmp): Likewise.
1401         (do_t_mvn_tst): Likewise.
1402         (do_t_mul): Likewise.
1403         (do_t_neg): Likewise.
1404         (do_t_setend): Likewise.
1405         (do_t_shift): Likewise.
1406         (do_t_tb): Likewise.
1407         (output_it_inst): New function.
1408         (new_automatic_it_block): New function.
1409         (close_automatic_it_block): New function.
1410         (now_it_add_mask): New function.
1411         (it_fsm_pre_encode): New function.
1412         (handle_it_state): New function.
1413         (it_fsm_post_encode): New function.
1414         (force_automatic_it_block_close): New function.
1415         (in_it_block): New function.
1416         (md_assemble): Call automatic IT block machinery functions.
1417         (arm_frob_label): Likewise.
1418         (arm_opts): New element.
1419         * config/tc-arm.h (it_state): New enum.
1420         (current_it): New struct.
1421         (arm_segment_info_type): New member added.
1422         * doc/c-arm.texi: New option -mimplicit-it documented.
1423
1424 2009-06-20  Alan Modra  <amodra@bigpond.net.au>
1425
1426         PR 10302
1427         * doc/as.texinfo (Section <ELF "M,S" flag>): Clarify tail merge.
1428
1429 2009-06-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1430
1431         * config/tc-s390.c (md_gather_operands): Accept an instruction
1432         without operands if all operands are tagged as optional.
1433
1434 2009-06-18  Nick Clifton  <nickc@redhat.com>
1435
1436         PR 10169
1437         * tc-arm.c (do_t_ssat): Move common code from here...
1438         (do_t_usat): ... and here to...
1439         (do_t_ssat_usat): New function: ... here.  Add code to check that
1440         the shift value, if present, is in range.
1441
1442 2009-06-18  Dave Korn  <dave.korn.cygwin@gmail.com>
1443
1444         Merge cegcc and mingw32ce target name changes
1445         from CeGCC project:
1446
1447         2007-12-25  Pedro Alves  <pedro_alves@portugalmail.pt>
1448
1449         * configure.tgt: Add arm*-*-cegcc* target.
1450
1451         2007-12-17  Pedro Alves  <pedro_alves@portugalmail.pt>
1452
1453         * configure.tgt: Add arm-*-mingw32ce* target.
1454
1455 2009-06-16  Maciej W. Rozycki  <macro@linux-mips.org>
1456
1457         * config/tc-vax.c (md_estimate_size_before_relax): Accept
1458         indirect symbol references in the PIC mode and emit a
1459         PC-relative relocation instead of a GOT/PLT one.  Likewise
1460         for symbols known to be hidden at this point.
1461
1462 2009-06-15  Nick Clifton  <nickc@redhat.com>
1463
1464         PR 10186
1465         * config/tc-arm.c (T16_32_TAB): Fix binary value of SEV.W
1466         instruction.
1467
1468 2009-06-13  H.J. Lu  <hongjiu.lu@intel.com>
1469
1470         PR ld/10269
1471         * config/tc-i386.c (md_apply_fix): Use TC_FORCE_RELOCATION
1472         instead of generic_force_reloc.
1473
1474         * config/tc-i386.h (TC_FORCE_RELOCATION): New.
1475
1476 2009-06-11  Anthony Green  <green@moxielogic.com>
1477
1478         * config/tc-moxie.c (md_chars_to_number): Define.
1479         (md_begin): Populate opcode hashtable with more form 3 opcodes.
1480         (md_assemble): Assemble MOXIE_F3_PCREL encoded instructions.
1481         (md_apply_fix): Handle BFD_RELOC_MOXIE_10_PCREL relocations.
1482         (tc_gen_reloc): Ditto.
1483         (md_pcrel_from): Ditto.
1484         (md_chars_to_number): New function.
1485
1486 2009-06-10  Anthony Green  <green@moxielogic.com>
1487
1488         * config/tc-moxie.c (md_assemble): Handle MOXIE_F1_M encoded
1489         opcodes.
1490
1491 2009-06-09  Jakub Jelinek  <jakub@redhat.com>
1492
1493         PR gas/10255
1494         * dw2gencfi.c (output_cfi_insn): Initialize fragment before rs_cfa
1495         to DW_CFA_advance_loc4.
1496
1497 2009-06-08  Dave Korn  <dave.korn.cygwin@gmail.com>
1498
1499         PR gas/977
1500         * config/tc-i386.c (md_estimate_size_before_relax):  Don't relax
1501         branches to weak symbols.
1502         (md_apply_fix):  Don't convert fixes against weak symbols to
1503         section-relative offsets, but save addend for later reloc emission.
1504         (tc_gen_reloc):  When emitting reloc against weak symbol, adjust
1505         addend to pre-compensate for bfd_install_relocation.
1506
1507 2009-06-04  Alan Modra  <amodra@bigpond.net.au>
1508
1509         * dep-in.sed: Don't use \n in replacement part of s command.
1510         * Makefile.am (DEP1, DEPTC, DEPOBJ, DEP2): LC_ALL for uniq.
1511         * Makefile.in: Regenerate.
1512
1513 2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>
1514
1515         PR gas/10198
1516         * config/tc-i386-intel.c (i386_intel_operand): Check '$' as '.'.
1517
1518 2009-05-26  Catherine Moore  <clm@codesourcery.com>
1519
1520         * config/tc-mips.c (check_for_24k_errata): Remove.
1521         (md_mips_end): Remove call to check_for_24k_errata.
1522         (start_noreorder): Likewise.
1523         (s_change_sec): Likewise.
1524         (s_change_section): Likewise.
1525         (insns_between): Add 24k errata checks.
1526         (append_insn): Remove declaration and references to nhdx_24k.
1527         Remove calls to check_for_24k_errata.
1528
1529 2009-05-26  Nick Clifton  <nickc@redhat.com>
1530
1531         * po/id.po: Updated Indonesian translation.
1532         * po/gas.pot: Updated template file.
1533
1534 2009-05-26  Nick Clifton  <nickc@redhat.com>
1535
1536         PR 10143
1537         * config/bfin-parse.y (error): Use "%s" as format string for error
1538         message.
1539
1540 2009-05-26  Alan Modra  <amodra@bigpond.net.au>
1541
1542         * dep-in.sed: Output one filename per line with all lines having
1543         continuation backslash.  Prefix first line with "A", following
1544         lines with "B".
1545         * Makefile.am (DEP): Don't use dep.sed here.
1546         (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
1547         sort and uniq.
1548         (DEPTC, DEPOBJ, DEP2): Use dep.sed on dependencies, sort and uniq.
1549         Emit multi dependencies on one line.
1550         * Makefile.in: Regenerate.
1551
1552 2009-05-25  Tristan Gingold  <gingold@adacore.com>
1553
1554         * makefile.vms: New file to compile gas on VMS.
1555
1556         * configure.com: New file to do configuration on VMS with DCL.
1557
1558 2009-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
1559
1560         * config/tc-mips.c (nops_for_vr4130): Don't check noreorder_p.
1561         (nops_for_insn): Likewise.
1562
1563 2009-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1564
1565         * symbols.c (COPIED_SYMFLAGS): Add BSF_GNU_INDIRECT_FUNCTION.
1566
1567 2009-05-22  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1568
1569         * config/tc-i386.c (process_drex): Delete. Remove SSE5 support.
1570         (build_modrm_byte): Remove DREX handling support.
1571         (DREX_*): Delete.
1572         (drex_byte): Delete.
1573         (md_assemble): Remove DREX handling support.
1574         (process_operands): Remove DREX, SSE5 support.
1575         (i386_insn): Remove DREX.
1576
1577 2009-05-22  Alan Modra  <amodra@bigpond.net.au>
1578
1579         * Makefile.am: Run "make dep-am".
1580         * Makefile.in: Regenerate.
1581
1582 2009-05-20  Kai Tietz  <kai.tietz@onevision.com>
1583             H.J. Lu  <hongjiu.lu@intel.com>
1584
1585         * config/obj-coff.h: Include "coff/x86_64.h" for x86 pe-coff.
1586         (TARGET_FORMAT): Removed for x86 pe-coff.
1587         (COFF_TARGET_FORMAT): Likewise.
1588
1589         * config/tc-i386.c (md_longopts): Allow --64 for x86 pe-coff.
1590         (md_parse_option): Likewise.
1591         (md_show_usage): Show option --32/--64 for x86 pe-coff.
1592         (i386_target_format): Use also for x86 pe-coff.
1593
1594         * config/tc-i386.h (TARGET_FORMAT): Defined as i386_target_format
1595         for x86 pe-coff.
1596
1597 2009-05-19  DJ Delorie  <dj@redhat.com>
1598
1599         * config/tc-mep.c (mep_machine): Only check CPU flags, not COP flags.
1600         (mep_process_saved_insns): Remove debugging printfs.
1601
1602 2009-05-19  Dave Korn  <dave.korn.cygwin@gmail.com>
1603
1604         * NEWS:  Mention new feature.
1605         * config/obj-coff.c (obj_coff_common_parse):  New function.
1606         (obj_coff_comm):  Likewise.
1607         (coff_pseudo_table):  Override default ".comm" definition on PE.
1608         * doc/as.texinfo:  Document new feature.
1609
1610 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
1611
1612         * config/obj-coff.c (obj_coff_section): Add 'y' as
1613         specifier for SEC_COFF_NOREAD section flag.
1614         * doc/as.texinfo: Add documentation about .section flag 'y'.
1615
1616 2009-05-13  DJ Delorie  <dj@redhat.com>
1617
1618         * cgen.c (gas_cgen_parse_operand): Guard against NULL pointers.
1619
1620 2009-05-13  Andrew Jenner  <andrew@codesourcery.com>
1621
1622         * config/tc-arm.c: Move as.h to start of file.
1623
1624 2009-05-05 Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1625
1626         * config/tc-arm.h: Fix typo in comment.
1627         (ARM_IS_FUNC): New macro.
1628         (MD_APPLY_SYM_VALUE): Define.
1629
1630         * config/tc-arm.c (do_blx): Retain BFD_RELOC_ARM_PCREL_BLX for
1631         all versions of EABI.
1632         (relax_branch): Do not relax for branches to ARM functions.
1633         (md_pcrel_from_section): Set up base correctly for
1634         BFD_RELOC_THUMB_PCREL_BLX, BFD_RELOC_THUMB_PCREL_CALL,
1635         BFD_RELOC_THUMB_PCREL_BRANCH23, BFD_RELOC_ARM_PCREL_BLX
1636         BFD_RELOC_ARM_PCREL_CALL.
1637         (md_apply_fix): Flip bl to blx where possible.
1638         Flip blx to bl where possible.
1639         (arm_force_relocation): Force relocations for
1640         BFD_RELOC_ARM_PCREL_JUMP, BFD_RELOC_ARM_PCREL_JUMP,
1641         BFD_RELOC_ARM_PCREL_BLX, BFD_RELOC_THUMB_PCREL_BLX,
1642         BFD_RELOC_THUMB_PCREL_BRANCH20, BFD_RELOC_THUMB_PCREL_BRANCH23,
1643         BFD_RELOC_THUMB_PCREL_BRANCH25.
1644         (arm_apply_sym_value): New function.
1645
1646 2009-05-04  Tristan Gingold  <gingold@adacore.com>
1647
1648         * config/tc-alpha.c: Also declare alpha_prologue_label for OBJ_EVAX.
1649
1650 2009-05-01  Nathan Sidwell  <nathan@codesourcery.com>
1651
1652         * config/tc-armlinux-eabi.h (FPU_DEFAULT): Default to plain VFP.
1653         * config/tc-armeabi.h (FPU_DEFAULT): Likewise.
1654         * config/tc-arm.c (md_begin): If FPU_DEFAULT is set, don't infer
1655         the default FPU from the processor.
1656
1657 2009-05-01  Julian Brown  <julian@codesourcery.com>
1658
1659         * config/tc-arm.c (do_t_blx): Always use BFD_RELOC_THUMB_PCREL_BLX.
1660         (md_pcrel_from_section): Align address for BLX.
1661         (tc_gen_reloc): Change BFD_RELOC_THUMB_PCREL_BLX relocations to
1662         BFD_RELOC_THUMB_PCREL_BRANCH23 for EABI v4+.
1663
1664 2009-04-29  DJ Delorie  <dj@redhat.com>
1665
1666         * config/tc-mep.c (md_begin): Check coprocessor type.
1667         (md_check_parallel64_scheduling): Use memset to initialize the buffer.
1668         (md_check_parallel32_scheduling): Likewise.
1669         (slot_ok): New.
1670         (mep_check_ivc2_scheduling): New.
1671         (mep_check_parallel_scheduling): Call it.
1672         (mep_process_saved_insns): Add IVC2 slot support.
1673         (md_assemble): Likewise.
1674
1675 2009-04-30  Nick Clifton  <nickc@redhat.com>
1676
1677         * config/obj-elf.c (obj_elf_type): Add support for a
1678         gnu_indirect_function type.
1679         * config/tc-i386.c (tc_i386_fix_adjustable): Do not adjust fixups
1680         against indirect function symbols.
1681         * doc/as.texinfo (.type): Document the support for the
1682         gnu_indirect_function symbol type.
1683         * NEWS: Mention the new feature.
1684
1685 2009-04-24  Cary Coutant  <ccoutant@google.com>
1686
1687         * NEWS: Add item about discriminator support.
1688         * dwarf2dbg.h (struct dwarf2_line_info): Add discriminator field.
1689         * dwarf2dbg.c (current): Add discriminator field.
1690         (dwarf2_where): Copy discriminator value.
1691         (dwarf2_consume_line_info): Set discriminator to 0.
1692         (dwarf2_directive_loc): Process discriminator sub-op.
1693         (out_leb128): New function.
1694         (process_entries): Output DW_LNE_set_discriminator.
1695         * doc/as.texinfo: Add discriminator operand to .loc directive.
1696
1697 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
1698
1699         * config/tc-mips.c (macro_end, md_convert_frag): Use '%s' for
1700         as_bad calls to silence compiler warning.
1701
1702 2009-04-21  H.J. Lu  <hongjiu.lu@intel.com>
1703
1704         * config/tc-i386-intel.c (O_XXX): Reorder.
1705
1706 2009-04-20  Jan Beulich  <jbeulich@novell.com>
1707
1708         * Makefile.am: Add explicit dependency of tc-i386.o on
1709         tc-i386-intel.c.
1710         * Makefile.in: Likewise.
1711         * config/tc-i386.c (i386_finalize_immediate): Declare, broken
1712         out from i386_immediate.
1713         (i386_immediate): Slightly re-arrange, call
1714         i386_finalize_immediate.
1715         (i386_finalize_displacement): Declare, broken out from
1716         i386_displacement.
1717         (i386_displacement): Slightly re-arrange, call
1718         i386_finalize_displacement.
1719         (i386_intel_simplify, i386_intel_parse_name): Declare.
1720         (this_operand): Initialize to -1.
1721         (set_intel_syntax): Set expression rank for O_full_ptr.
1722         (md_assemble): Set this_operand back to -1 after parsing
1723         operands.
1724         (x86_cons): Negate intel_syntax to indicate state. Call
1725         i386_intel_simplify.
1726         (md_operand): Convert if to switch. Handle '[' for Intel
1727         syntax.
1728         (i386_intel_operand): Delete, including all helper functions
1729         and data.
1730         * config/tc-i386-intel.c: New file, all new code.
1731         * config/tc-i386.h (i386_operator): Declare.
1732         (md_operator): Define to i386_operator.
1733         (i386_need_index_operator): Declare.
1734         (md_need_index_operator): Define to i386_need_index_operator.
1735         (O_full_ptr): Define.
1736
1737 2009-04-20  Jan Beulich  <jbeulich@novell.com>
1738
1739         * expr.c (operand): Call md_need_index_operator() and
1740         md_operator() if defined. Add unary label.
1741         (operator): Call md_operator() if defined.
1742         (expr): Adjust assertions on range and rank of op_left and
1743         op_right. Don't abort on unhandled operators when reducing
1744         expressions with both operands being constant.
1745         (expr_set_rank): New.
1746         * expr.h (expr_set_rank): Declare.
1747
1748 2009-04-15  Anthony Green  <green@moxielogic.com>
1749
1750         * config/tc-moxie.h: New file.
1751         * config/tc-moxie.c: New file.
1752         * configure: Add support for moxie.
1753         * configure.tgt: Add support for moxie.
1754
1755 2009-04-16  Jan Beulich  <jbeulich@novell.com>
1756
1757         * expr.c: Include limits.h if available, and #define CHAR_BITS
1758         otherwise.
1759         (expr): Check range of shift count when evaluating a constant
1760         expression.
1761
1762 2009-04-15  Jan Beulich  <jbeulich@novell.com>
1763
1764         * config/tc-i386.c (process_operands): Print operands in
1765         correct order depending on intel_syntax.
1766
1767 2009-04-09  Catherine Moore  <clm@codesourcery.com>
1768
1769         * config/tc-mips.c (mips_fix_24k): Declare.
1770         (check_for_24k_errata): New.
1771         (mips_cleanup): Call check_for_24k_errata.
1772         (start_noreorder): Likewise.
1773         (md_mips_end): Likewise.
1774         (s_change_sec): Likewise.
1775         (s_change_section): Likewise.
1776         (append_insn): Call check_for_24k_errata.  Prevent
1777         ERET/DERET instructions from being moved into delay
1778         slots.
1779         (OPTION_FIX_24K): New.
1780         (OPTION_NO_FIX_24k) New.
1781         (md_longopts): Add "mfix-24k" and "mno-fix-24k".
1782         (md_parse_option): Handle fix-24k options.
1783         (md_show_usage): Display fix-24k options.
1784         * doc/c-mips.texi: Document.
1785
1786 2009-04-09  Adam Nemet  <anemet@caviumnetworks.com>
1787
1788         * config/tc-mips.c (mips_dwarf2_addr_size): Use HAVE_64BIT_OBJECTS
1789         instead of HAVE_64BIT_SYMBOLS.
1790
1791 2009-04-07  DJ Delorie  <dj@redhat.com>
1792
1793         * config/tc-mep.c: Add UCI/DSP instruction support.  Add C5 support.
1794         (md_show_usage): Change default endian to little.
1795         * config/tc-mep.h (TARGET_BYTES_BIG_ENDIAN): Change default to little.
1796
1797 2009-04-06  DJ Delorie  <dj@redhat.com>
1798
1799         * tc-h8300.c (do_a_fix_imm): Pass the insn, force relocs for MOVA
1800         immediates.
1801         (build_bytes): Pass insn to do_a_fix_imm.
1802
1803 2009-04-02  Daniel Gutson <dgutson@codesourcery.com>
1804
1805         * config/tc-arm.c (arm_cpus): Add entry for ARM Cortex-M0.
1806         * doc/c-arm.texi: Added codes for processors ARM Cortex-M0 and
1807         Cortex-M1.
1808
1809 2009-04-01  Matt Thomas <matt@netbsd.org>
1810
1811         * config/tc-vax.c (synthetic_votstrs): add "jbbcci" and "jbbssi"
1812         (md_assemble): emit symbol name when used as immediate in PIC mode.
1813         (md_assemble): fix LP64 bug (use sizeof (valueT) instead 4).
1814
1815 2009-04-01  Sterling Augustine  <sterling@jaw.hq.tensilica.com>
1816
1817         * config/tc-xtensa.c (parse_arguments): call demand_empty_rest_of_line
1818
1819 2009-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1820
1821         * config/tc-arm.c (arm_validate_fix): Define only for OBJ_COFF.
1822         (find_real_start): Likewise.
1823         * config/tc-arm.h (TC_VALIDATE_FIX): Likewise
1824
1825 2009-04-01  Nathan Sidwell  <nathan@codesourcery.com>
1826
1827         * config/tc-arm.c (do_nop): Generate v6k nops whenever possible.
1828         (arm_handle_align): Generate v6k ARM, thumb2 wide & narrow nops
1829         whenever possible.
1830
1831 2009-03-31  Peter Bergner  <bergner@vnet.ibm.com>
1832
1833         * config/tc-ppc.c (ppc_handle_align): Handle power7's group ending nop.
1834
1835 2009-03-31  Dave Korn  <dave.korn.cygwin@gmail.com>
1836
1837         * doc/internals.texi:  Fix trivial syntax errors.
1838
1839 2009-03-26  Alan Modra  <amodra@bigpond.net.au>
1840
1841         PR 10005
1842         * config/tc-i386.c (reloc): Don't abort on lack of required
1843         reloc type.
1844
1845 2009-03-25  H.J. Lu  <hongjiu.lu@intel.com>
1846
1847         * config/tc-i386.c (parse_insn): Use default_arch on unsupported
1848         arch.
1849
1850 2009-03-23  H.J. Lu  <hongjiu.lu@intel.com>
1851
1852         PR gas/9966
1853         * listing.c (listing_newline): Properly handle `\\"' and ';'.
1854
1855         * read.c (is_end_of_line): Update comments for line separator.
1856         (read_begin): Set line separator in is_end_of_line to 2.
1857
1858 2009-03-19  David S. Miller  <davem@davemloft.net>
1859
1860         * config/tc-sparc.c (md_parse_option): If the user gives
1861         us '--64' make sure max_architecture is at least V9.
1862
1863 2009-03-18  Andrew Stubbs  <ams@codesourcery.com>
1864
1865         * config/tc-arm.c (md_apply_fix): Check BFD_RELOC_ARM_IMMEDIATE and
1866         BFD_RELOC_ARM_ADRL_IMMEDIATE value is in the correct section.
1867         Check BFD_RELOC_ARM_ADRL_IMMEDIATE has a defined symbol.
1868
1869 2009-03-18  Alan Modra  <amodra@bigpond.net.au>
1870
1871         * as.h: Include alloca-conf.h instead of config.h and remove
1872         existing #if's handling alloca.
1873         * Makefile.am: Run "make dep-am".
1874         * Makefile.in: Regenerate.
1875
1876 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
1877
1878         * config/tc-ppc.c (ppc_frob_symbol): Add csect information for
1879         C_AIX_WEAKEXT too.
1880
1881 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
1882
1883         * config/tc-ppc.c (md_apply_fix): On COFF targets, always reread
1884         "value" from fx_offset.  Manually resubtract md_pcrel_from_section
1885         where necessary.
1886
1887 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
1888
1889         * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
1890         * configure.in: Likewise.
1891         * configure: Regenerate.
1892
1893 2009-03-11  Hans-Peter Nilsson  <hp@axis.com>
1894
1895         * config/tc-cris.c (cris_create_short_jump): Remove prototype.
1896         Rename, changing all callers, to...
1897         (md_create_short_jump): Adjust head comment.  Assert
1898         word-sized-branch distance for v32.  Bail out calling as_fatal for
1899         compatibility mode here.
1900         (md_create_long_jump): ...not here.
1901         * config/tc-cris.h (md_create_short_jump): Do not define.
1902
1903 2009-03-10  Hans-Peter Nilsson  <hp@axis.com>
1904
1905         * write.c (write_object_file) [!WORKING_DOT_WORD]: When patching
1906         the jump table for multiple overflowing entries with the same
1907         target, handle base symbols being different.
1908         (relax_segment) <case rs_broken_word, second loop>: Whenever a
1909         single entry overflows, arrange to redirect all entries with the
1910         same target.
1911
1912 2009-03-10  Alan Modra  <amodra@bigpond.net.au>
1913
1914         * config/tc-ppc.c (parse_cpu): Delete.
1915         (md_parse_option, ppc_machine): Use ppc_parse_cpu.
1916
1917 2009-03-09  H.J. Lu  <hongjiu.lu@intel.com>
1918
1919         PR gas/9915
1920         * config/tc-i386.h (LOCAL_LABELS_DOLLAR): New.  Defined as 0.
1921         (LOCAL_LABELS_FB): Undefine befoe define.
1922
1923 2009-03-06  Nick Clifton  <nickc@redhat.com>
1924
1925         * po/es.po: Updated Spanish translation.
1926
1927 2009-03-05  Joseph Myers  <joseph@codesourcery.com>
1928
1929         * read.c (s_fill, s_space, s_float_space, float_cons, stringer,
1930         s_incbin): Call md_cons_align (1).
1931
1932 2009-03-04  Nick Clifton  <nickc@redhat.com>
1933
1934         * config/tc-alpha.c (alpha_prologue_label): Only define for ELF
1935         based targets.
1936         (s_alpha_comm): Only define "temp" and "log_align" local variables
1937         for EVAX targets.
1938
1939 2009-03-04  Alan Modra  <amodra@bigpond.net.au>
1940
1941         * config/tc-ppc.c (ppc_elf_suffix): Error if ppc32 tls got relocs
1942         have non-zero addend.
1943         (md_assemble): Parse args of __tls_get_addr calls.
1944         (md_apply_fix): Handle BFD_RELOC_PPC_TLSGD and BFD_RELOC_PPC_TLSLD.
1945
1946 2009-03-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1947
1948         binutils/3807
1949         * config/tc-hppa.h (tc_frob_symbol): Don't frob absolute symbols with
1950         local scope for ELF targets.
1951
1952 2009-03-04  Alan Modra  <amodra@bigpond.net.au>
1953
1954         * config/tc-ppc.c (md_assemble): APUinfo only for e500.
1955
1956 2009-03-03  Tristan Gingold  <gingold@adacore.com>
1957             Eric Botcazou  <ebotcazou@adacore.com>
1958             Douglas B Rupp  <rupp@gnat.com>
1959
1960         * doc/as.texinfo (Overview): Mention -replace/-noreplace options
1961         for Alpha.
1962         * doc/c-alpha.texi (Alpha Options): Document -replace/-noreplace.
1963         * config/tc-alpha.h (TC_VALIDATE_FIX_SUB): Define to 1 (evax).
1964         (OBJ_SYMFIELD_TYPE): Remove.
1965         (tc_canonicalize_symbol_name): Define to evax_shorten_name.
1966         (TC_IMPLICIT_LCOMM_ALIGNMENT): For alignment to 3 on evax.
1967         (tc_frob_file_before_fix): Do not defined on evax.
1968         * config/tc-alpha.c: Always includes dwarf2dbg.h.
1969         Include vms.h if OBJ_EVAX.
1970         (struct alpha_fixup): Add xtrasym and procsym (evax only).
1971         (enum alpha_macro_arg): Remove trailing comma.
1972         (md_longopts): Add replace and noreplace arguments (evax only).
1973         (alpha_evax_proc_hash): New variable.
1974         (alpha_link_section): Make it global.
1975         (alpha_ctors_section, alpha_dtors_section): Removed.
1976         (alpha_ctors_symbol, alpha_dtors_symbol): Ditto.
1977         (alpha_lit8_section): Ifndef'ed on evax.
1978         (alpha_lit8_symbol): Ditto.
1979         (alpha_prologue_label): New variable.
1980         (alpha_linkage_symbol): New variable (evax only).
1981         (alpha_flag_replace): Ditto.
1982         (struct alpha_evax_procs): Add handler and handler_data field.
1983         (alpha_evax_proc): Now of type pointer.
1984         (alpha_linkage_fixup_root, alpha_linkage_fixup_tail): New variables.
1985         (struct alpha_reloc_tag): Add sym and psym fields (evax only).
1986         (get_alpha_reloc_tag): Initialize sym and psym fields (evax only).
1987         (alpha_adjust_relocs): Ifndef'ed on evax.
1988         (load_expression): Add opname argument.
1989         Implement LDA/BSR optimization for evax.
1990         (emit_lda): Adjust for new prototype of load_expression.
1991         (emit_ir_load): Ditto. Do not nothing for GP if ..lk symbols.
1992         (emit_loadstore): Likewise.
1993         (emit_ldXu): Likewise.
1994         (emit_stX): Likewise.
1995         (emit_jsrjmp): Likewise.  Implement LDA/BSR optimization for evax.
1996         (emit_ldgp): Avoid warning in evax case.
1997         (add_to_link_pool): Make it static.  Return symbolic expression rather
1998         than number expression for the offset.
1999         (s_alpha_text): Create .text symbol for evax if not already created.
2000         (s_alpha_comm): Do not create specific section for common symbol.
2001         Fill common area with zeros for evax.
2002         (s_alpha_prologue): Create alpha_prologue_label.
2003         (s_alpha_section_name): New function (evax).
2004         (s_alpha_section_word): Likewise.
2005         (section_name): New static variabke moved out from ...
2006         (s_alpha_section): ... here.  Create new sections on demand.
2007         (s_alpha_literals): New function (evax).
2008         (s_alpha_ent): Create alpha_evax_proc instance and insert it in the
2009         alpha_evax_proc_hash table.
2010         (s_alpha_handler): New function (evax).
2011         (s_alpha_frame): Adjust for new type of alpha_evax_proc.
2012         (s_alpha_prologue): New function (evax).
2013         (s_alpha_pdesc): Adjust for new type of alpha_evax_proc and new
2014         handling of procedures with hash table.
2015         Add support for condition handlers.
2016         (s_alpha_linkage): Create linkage_fixup instance and chain it.
2017         (s_alpha_fp_save): Adjust for new type of alpha_evax_proc.
2018         (s_alpha_mask): Likewise.
2019         (s_alpha_fmask): Likewise.
2020         (s_alpha_end): Clear alpha_evax_proc.
2021         (s_alpha_align): Increase max_alignment to 16.
2022         (alpha_print_token): Call print_expr_1 instead of print_expr.
2023         (md_pseudo_table): Add "section", "literals", "handler" and
2024         "handler_data" (evax).  Do not ignore "prologue" on evax.
2025         Fix indentation.
2026         (md_begin): Create hash table for alpha_evax_proc_hash.
2027         (md_parse_option): Handle OPTION_REPLACE and OPTION_NOREPLACE.
2028         (md_show_usage): Mention -replace/-noreplace for evax.
2029         (md_apply_fix): Handle evax relocs (_NOP, _LDA, _BSR and _BOH).
2030         (alpha_force_relocation): Likewise.
2031         (alpha_fix_adjustable): Likewise. Add BFD_RELOC_16 case.
2032         (tc_gen_reloc): Likewise.  Add BFD_RELOC_ALPHA_LINKAGE for evax.
2033         (emit_insn): New cases for evax specific relocs.
2034         (assemble_insn): Fix indentation.
2035         Take care of -MDISP in operand table.
2036         * config/obj-evax.h (struct alpha_linkage_fixups): New struct.
2037         (OBJ_SYMFIELD_TYPE): New macro.
2038         (obj_symbol_new_hook): Define.
2039         (obj_frob_symbol, obj_frob_file_before_adjust): Ditto.
2040         (obj_frob_file_before_fix): Ditto.
2041         (PDSC_S_M_HANDLER_VALID): New macro.
2042         (PDSC_S_M_HANDLER_DATA_VALID): Ditto.
2043         (TC_IMPLICIT_LCOMM_ALIGNMENT): Remove.
2044         Add prototypes for functions declared in obj-evax.c
2045         * config/obj-evax.c: Include subsegs.h, struc-symbol.h, safe-ctype.h.
2046         (s_evax_weak): Convert to ansi-C.
2047         (evax_symbol_new_hook): New function.
2048         (evax_frob_symbol): Ditto.
2049         (evax_frob_file_before_adjust): Ditto.
2050         (evax_frob_file_before_fix): Ditto.
2051         (evax_shorten_name): Ditto.
2052         (crc32): Ditto.
2053         (encode_32): Ditto.
2054         (encode_16): Ditto.
2055         (decode_16): Ditto.
2056         (shorten_identifier): Ditto.
2057         (is_truncated_identifier): Ditto.
2058         * dwarf2dbg.c (out_debug_info): Do not append trailing slash on VMS.
2059         * as.c (close_output_file): Remove #ifndef OBJ_VMS.
2060         (main): Ditto.
2061
2062 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
2063
2064         * Makefile.am: Run "make dep-am".
2065         * Makefile.in: Regenerate.
2066
2067 2009-03-02  Nick Clifton  <nickc@redhat.com>
2068
2069         PR 9874
2070         * config/tc-ia64.c (fix_insn): Fix warning reported by
2071         -Wformat-security.
2072
2073 2009-03-02  Qinwei  <qinwei@sunnorth.com.cn>
2074
2075         * config/tc-score7.c: New file.
2076         * doc/c-score.texi: New file.
2077         * Makefile.am: Update dependencies for tc-score.c.
2078         * Makefile.in: Regenerate.
2079         * NEWS: Mention support for Score7 architecture.
2080         * config/tc-score.c: Add support for Score7 architecture.
2081         * config/tc-score.h: Likewise.
2082         * doc/Makefile.am: Add c-score.texi.
2083         * doc/Makefile.in: Regenerate.
2084         * doc/all.texi: Add Score7.
2085         * doc/as.texinfo: Add Score7.
2086
2087 2009-03-01  Mark Mitchell  <mark@codesourcery.com>
2088
2089         * config/tc-arm.c (md_assemble): Allow barrier instructions on
2090         ARMv6-M cores.
2091
2092 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2093
2094         * configure: Regenerate.
2095
2096 2009-02-26  Peter Bergner  <bergner@vnet.ibm.com>
2097
2098         * config/tc-ppc.c (pre_defined_registers): Add "f32" to "f63",
2099         "f.32" to "f.63", "vs0" to "vs63" and "vs.0" to "vs.63".
2100         (parse_cpu): Extend -mpower7 to accept power7 and isel instructions.
2101
2102 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
2103
2104         * config/tc-i386.c (fits_in_imm4): Removed.
2105
2106 2009-02-24  Helge Deller <deller@gmx.de>
2107
2108         * config/tc-hppa.c (pa_ip): Add check of immediate values.
2109         (SAVE_IMMEDIATE): New define.
2110
2111 2009-02-23  Mark Mitchell  <mark@codesourcery.com>
2112
2113         * config/tc-arm.c (warn_deprecated_sp): New macro.
2114         (do_t_mov_cmp): Permit R13 as the second
2115         argument to "cmp.n".
2116
2117 2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>
2118
2119         * config/tc-i386.c (type_names): Add OPERAND_TYPE_REGYMM.
2120         (pt): Replace UINTS_ALL_ZERO with operand_type_all_zero.
2121
2122 2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>
2123
2124         * config/tc-i386.c (type_names): Remove OPERAND_TYPE_VEX_IMM4.
2125
2126 2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>
2127
2128         * config/tc-i386.c (vex_imm4): Removed.
2129         (VEX_check_operands): Likewise.
2130         (match_template): Updated.
2131
2132 2009-02-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2133
2134         * doc/all.texi: Set S390.
2135         * doc/as.texinfo: Add S390 support and pull in c-s390.texi.
2136         * doc/Makefile.am (CPU_DOCS): Add c-s390.texi.
2137         * doc/Makefile.in: Likewise.
2138         * doc/c-s390.texi: New.
2139
2140 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
2141
2142         * config/tc-m68k.c (mcf51qe_ctrl): Add CPUCR.
2143         (mcf52259_ctrl, mcf52277_ctrl, mcf53017_ctrl): New.
2144         (mcf5307_ctrl): Add VBR.
2145         (no_mac): New variable.
2146         (m68k_extensions): Refer to no_mac mask.
2147         (m68k_cpus): Add 51, 51ac, 51cn, 51em, 51jm, 52274, 52277,
2148         52252..52259, 53011..53017.
2149         (m68k_ip): Process CPUCR.
2150         (init_table): Add cpucr entry.
2151         (m68k_set_extension): Allow negated mask to refer to a variable.
2152         (md_show_usage): Use '%s' to silence fprintf warning.
2153         * config/m68k-parse.h (CPUCR): New control register.
2154
2155 2009-02-10  Nathan Sidwell  <nathan@codesourcery.com>
2156
2157         * config/tc-ppc.c (ppc_insert_operand, md_assemble): Use '%s' for
2158         as_bad calls to silence compiler warning.
2159
2160 2009-02-06  Nick Clifton  <nickc@redhat.com>
2161
2162         PR 9814
2163         * config/tc-arm.c (MODE_RECORDED): New define.
2164         (output_inst): Record the thumb_mode in the current frag.
2165         (arm_handle_align): Ignore the MODE_RECORDED bit in tc_frag_data.
2166         (arm_init_frag): Only set the tc_frag_data field if it has not
2167         already been set.
2168
2169 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
2170
2171         AVX Programming Reference (January, 2009)
2172         * config/tc-i386.c (CPU_FLAGS_PCLMUL_MATCH): New.
2173         (CPU_FLAGS_AVX_MATCH): Updated.
2174         (CPU_FLAGS_32BIT_MATCH): Likewise.
2175         (cpu_flags_match): Likewise.
2176
2177 2009-02-03  Sandip Matte  <sandip@rmicorp.com>
2178
2179         * config/tc-mips.c (macro): Handle M_MSGSND, M_MSGLD, M_MSGLD_T,
2180         M_MSGWAIT and M_MSGWAIT_T.
2181         (mips_cpu_info_table): Add XLR entry.
2182         * doc/c-mips.texi (-march): Document xlr.
2183
2184 2009-02-03  Eric B. Weddington  <eric.weddington@atmel.com>
2185
2186         * config/tc-avr.c (mcu_types): Add ata6289.
2187         * doc/c-avr.texi: Likewise.
2188
2189 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
2190
2191         * configure.in: AC_SUBST pdfdir.
2192         * Makefile.am: Add install-pdf, install-pdf-am,
2193         and install-pdf-recursive targets.
2194         * doc/Makefile.am: Define pdf__strip_dir. Add
2195         install-pdf and install-pdf-am targets.
2196         * po/Make-in: Add install-pdf target.
2197         * configure: Regenerate.
2198         * Makefile.in: Regenerate.
2199         * doc/Makefile.in: Regenerate.
2200
2201 2009-02-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
2202
2203         * config/m68k-parse.h (enum pic_relocation): Add values for TLS
2204         relocations.
2205         * config/m68k-parse.y (yylex): Parse TLS relocations.
2206         * config/tc-m68k.c (m68k_elf_cons): New static function.
2207         (md_pseudo_table): Use it.
2208         (get_reloc_code, tc_m68k_fix_adjustable, tc_gen_reloc): Handle TLS
2209         relocations.
2210         (md_apply_fix): Fix to set thread local flag.
2211         (m68k_elf_suffix): New static function; helper for m68k_elf_cons.
2212
2213 2009-02-03  Vince Weaver <vince@csl.cornell.edu>
2214
2215         PR 9779
2216         * config/tc-pdp11.c (parse_op_no_deferred): Fix handling of
2217         indexed addressing for symbolic expressions.
2218
2219 2009-01-29  Mark Mitchell  <mark@codesourcery.com>
2220
2221         * config/tc-arm.c (BAD_SP): Define.
2222         (s_arm_unwind_fnstart): Use REG_SP.
2223         (s_arm_unwind_setfp): Likewise.
2224         (reject_bad_reg): New macro.
2225         (do_co_reg): Check for bad registers.
2226         (do_co_reg2c): Likewise.
2227         (do_srs): Use REG_SP.
2228         (do_t_add_sub): Check for bad registers.
2229         (do_t_adr): Likewise.
2230         (do_t_arit3): Likewise.
2231         (do_t_arit3c): Likewise.
2232         (do_t_bfc): Likewise.
2233         (do_t_bfi): Likewise.
2234         (do_t_bfx): Likewise.
2235         (do_t_blx): Likewise.
2236         (do_t_bx): Likewise.
2237         (do_t_bxj): Likewise.
2238         (do_t_clz): Likewise.
2239         (do_t_div): Likewise.
2240         (do_t_mla): Likewise.
2241         (do_t_mlal): Likewise.
2242         (do_t_mov_cmp): Likewise.
2243         (do_t_mov16): Likewise.
2244         (do_t_mvn_tst): Likewise.
2245         (do_t_mrs): Likewise.
2246         (do_t_msr): Likewise.
2247         (do_t_mul): Likewise.
2248         (do_t_mull): Likewise.
2249         (do_t_orn): Likewise.
2250         (do_t_pkhbt): Likewise.
2251         (do_t_pld): Likewise.
2252         (do_t_rbit): Likewise.
2253         (do_t_rev): Likewise.
2254         (do_t_rrx): Likewise.
2255         (do_t_rsb): Likewise.
2256         (do_t_shift): Likewise.
2257         (do_t_simd): Likewise.
2258         (do_t_ssat): Likewise.
2259         (do_t_ssat16): Likewise.
2260         (do_t_sxtah): Likewise.
2261         (do_t_sxth): Likewise.
2262         (do_t_tb): Likewise.
2263         (do_t_usat): Likewise.
2264         (do_t_usat16): Likewise.
2265         (nysn_insert_sp): Use REG_SP.
2266
2267 2009-01-29  Mark Mitchell  <mark@codesourcery.com>
2268
2269         * config/tc-arm.c (do_t_orn): New function.
2270         (do_t_rrx): Likewise.
2271         (insns): Add orn and rrx.
2272
2273 2009-01-29  Mark Mitchell  <mark@codesourcery.com>
2274
2275         * config/tc-arm.c (insns): Add qasx, qsax, shasx, shsax, ssax,
2276         uasx, uhasx, uhsx, uqasx, uqsax, usax.
2277
2278 2009-01-29  Mark Mitchell  <mark@codesourcery.com>
2279
2280         * config/tc-arm.c (insns): Correct encoding of qadd, qdadd, qsub,
2281         qdsub in Thumb-2 mode.
2282
2283 2009-01-29  Paul Brook  <paul@codesourcery.com>
2284             Mark Mitchell  <mark@codesourcery.com>
2285
2286         * config/tc-arm.c (do_t_mul): In Thumb-2 mode, use 16-bit encoding
2287         of MUL when possible.
2288
2289 2009-01-29  Nick Clifton  <nickc@redhat.com>
2290
2291         * config/tc-mep.h (DIFF_EXPR_OK): Do not define.
2292
2293 2009-01-29  Nathan Sidwell  <nathan@codesourcery.com>
2294             Catherine Moore <clm@codesourcery.com?
2295
2296         * doc/c-arm.texi (ARM Directives): Alphabetize. Document .2byte,
2297         .4byte, .8byte, .bss, .even, .extend, .ldouble, .packed, .secrel32
2298         directives.
2299
2300 2009-01-27  Nick Clifton  <nickc@redhat.com>
2301
2302         * config/tc-mips.c (append_insn): Cope with a complex reloc
2303         sequence containing an unsupported reloc type.
2304         (enum options): Replace computed #define's constants for option
2305         numbers with this enum.
2306         (struct md_longopts): Use the enum.  Allow OPTION_32 in a non-ELF
2307         environment.
2308         (md_parse_option): Allow -32 in a non-ELF environment.
2309
2310 2009-01-26  Andrew Stubbs  <ams@codesourcery.com>
2311
2312         * config/tc-arm.c (attributes_set_explicitly): New array.
2313         (s_arm_eabi_attribute): Check return value from s_vendor_attribute.
2314         (cpu_arch): Add ARM_ARCH_V5T.
2315         (aeabi_set_attribute_int): New function.
2316         (aeabi_set_attribute_string): New function.
2317         (aeabi_set_public_attributes): Set attributes according to the user's
2318         intentions, rather than the actual state of the binary.
2319         Use aeabi_set_attribute_int and aeabi_set_attribute_string instead of
2320         bfd_elf_add_proc_attr_int and bfd_elf_add_proc_attr_string.
2321         Support WMMXv2. Use attribute names instead of numbers.
2322         * read.c (s_vendor_attribute): Change return type to int.
2323         Return the tag number that was set.
2324         * read.h (s_vendor_attribute): Change return type to int.
2325
2326 2009-01-26  Eric B. Weddington  <eric.weddington@atmel.com>
2327
2328         PR 9789
2329         * config/tc-avr.c (mcu_types): Fix typo in atmega128rfa1 name.
2330         * doc/c-avr.texi: Likewise.
2331
2332 2009-01-23  Nathan Sidwell  <nathan@codesourcery.com>
2333
2334         * doc/c-arm.texi (): Document -mwarn-deprecated.
2335         * config/tc-arm.c (WARN_DEPRECATED): Remove.  Replace with ...
2336         (warn_on_deprecated): ... this.
2337         (opcode_lookup, md_assemble): Check it before warning.
2338         (arm_opts): Add m[no-]warn-deprecated.
2339         (md_parse_option): Replace WARN_DEPRECATED with
2340         warn_on_deprecated.
2341
2342 2009-01-23  Andreas Schwab  <schwab@suse.de>
2343
2344         * config/tc-mips.c (macro) [M_DINS, M_SEQ_I, M_SNE_I]: Cast
2345         arguments to macro_build to match format.
2346
2347         * config/obj-elf.h (LOCAL_LABEL_PREFIX): Conditionally define.
2348         * config/tc-s390.h (LOCAL_LABEL_PREFIX): Don't define.
2349
2350 2009-01-19  Nick Clifton  <nickc@redhat.com>
2351
2352         * config/tc-arm.h (CONVERT_SYMBOLIC_ATTRIBUTE): Only define for
2353         ELF format ARM targets.
2354         * config/tc-arm.c (arm_convert_symbolic_attribute): Likewise.
2355
2356 2009-01-19  Nick Clifton  <nickc@redhat.com>
2357
2358         * configure.tgt: Restore alpha sorting to object format switch
2359         statement.
2360
2361 2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
2362
2363         * read.c (s_vendor_attribute): Allow for unknown flag bits in type.
2364
2365 2009-01-16  Mark Shinwell  <shinwell@codesourcery.com>
2366
2367         * config/te-armeabi.h (EABI_DEFAULT): Use EF_ARM_EABI_VER5.
2368         * config/te-armlinuxeabi.h (EABI_DEFAULT): Likewise.
2369
2370 2009-01-16  Andrew Stubbs  <ams@codesourcery.com>
2371             Daniel Jacobowitz  <dan@codesourcery.com>
2372
2373         * config/tc-arm.c (arm_copy_symbol_attributes): New function.
2374         * config/tc-arm.h (arm_copy_symbol_attributes): New prototype.
2375         (CONVERT_SYMBOLIC_ATTRIBUTE): New define.
2376         * read.c (s_vendor_attribute): Add support for symbolic tag names.
2377         Improve string parser.
2378         * doc/c-arm.texi (ARM Machine Directives): Document
2379         .eabi_attribute symbolic tag names.
2380
2381 2009-01-16  Alan Modra  <amodra@bigpond.net.au>
2382
2383         * configure.in (commonbfdlib): Delete.
2384         * configure: Regenerate.
2385         * po/POTFILES.in: Regenerate.
2386
2387 2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
2388             Julian Brown   <julian@codesourcery.com>
2389
2390         * config/tc-arm.c (cpu_arch): Change ARM_ARCH_V6M to 11.
2391
2392 2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
2393
2394         * read.c (s_vendor_attribute): bfd_elf_add_obj_attr_compat ->
2395         bfd_elf_add_obj_attr_int_string.
2396
2397 2009-01-15  Douglas B Rupp  <rupp@gnat.com>
2398
2399         * configure.tgt(ia64-*-*vms*): New target.
2400         * dwarf2dbg.h (dwarf2_loc_mark_labels): Make extern.
2401         * tc.h (md_number_to_chars): Declare iff undefined.
2402         * config/obj-elf.c (obj_elf_change_section): Change type of arg
2403         attr to bfd_vma.
2404         (obj_elf_parse_section_letters): Return a bfd_vma. Change type of
2405         variables attr, md_attr to bfd_vma.
2406         (obj_elf_section_word): Likewise.
2407         (obj_elf_section): Change type of variable attr to bfd_vma
2408         * config/obj-elf.h (obj_elf_change_section): Change type of arg
2409         attr to bfd_vma.
2410         * config/tc-ia64.c (bfdver.h,time.h): Include.
2411         (ia64_elf_section_letter): Now returns a bfd_vma.
2412         Handle VMS specific attributes.
2413         (ia64_elf_section_flags): Arg attr now a bfd_vma.
2414         (ia64_init): Don't turn on dependency checking for VMS.
2415         (ia64_target_format): Check for VMS flag bit.
2416         (do_alias): Hande decc$ functions.
2417         (get_vms_time): New function.
2418         (ia64_vms_note): New function.
2419         * config/tc-ia64.h (ia64_elf_section_letter): Now returns a bfd_vma.
2420         (ia64_elf_section_flags): Arg attr now a bfd_vma.
2421         (tc_init_after_args): Define for VMS.
2422         * config/tc-alpha.c (alpha_elf_section_letter): Return a bfd_vma.
2423         (alpha_elf_section_flags): Change type of arg attr to bfd_vma.
2424         * config/tc-alpha.h: Likewise.
2425         * config/tc-i386.c (x86_64_section_letter): Return a bfd_vma.
2426         (x86_64_section_word): Return a bfd_vma.
2427         * config/tc-i386.h: Likewise.
2428         * config/tc-ip2k.c (ip2k_elf_section_flags): Change type of arg
2429         attr to bfd_vma.
2430         * config/tc-ip2k.h: Likewise.
2431         * config/tc-mep.c (mep_elf_section_letter): Return a bfd_vma.
2432         (mep_elf_section_flags): Change type of arg attr to bfd_vma.
2433         * config/tc-mep.h: Likewise.
2434         * config/tc-ppc.c  (ppc_section_letter): Return a bfd_vma.
2435         (ppc_section_word): Return a bfd_vma.
2436         (ppc_section_flags): Change type of arg attr to bfd_vma.
2437         * config/tc-ppc.h: Likewise.
2438         * config/tc-frv.h: Provide a prototype for frv_md_number_to_chars.
2439         * config/te-vms.h (DWARF2_DIR_SHOULD_END_WITH_SEPARATOR,
2440         DWAR2_FILE_TIME_NAME, DWARF2_FILE_SIZE_NAME, DWARF2_FILEN_NAME):
2441         New file with new macros
2442         * dwarf2dbg.c (get_filenum, out_file_list): Default and call new
2443         macros.
2444
2445 2009-01-15  Nick Clifton  <nickc@redhat.com>
2446
2447         PR 9722
2448         * config/tc-arm.c (do_t_nop): Check for availability of Thumb2
2449         instructions before generating a Thumb2 nop.
2450
2451 2009-01-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2452
2453         * config/tc-s390.h: Define LOCAL_LABEL_PREFIX.
2454
2455 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
2456
2457         * config/tc-spu.c (md_pseudo_table): Add "brinfo".
2458         (brinfo): New var.
2459         (md_assemble): Poke brinfo into branch instructions.
2460         (spu_brinfo): New function.
2461         (md_apply_fix): Don't assume insn fields start off at zero, mask
2462         them to remove possible brinfo.
2463
2464 2009-01-10  H.J. Lu  <hongjiu.lu@intel.com>
2465
2466         * doc/c-i386.texi: Reformat.
2467
2468 2009-01-10  H.J. Lu  <hongjiu.lu@intel.com>
2469
2470         * config/tc-i386.c (cpu_arch): Add corei7, .clflush and
2471         .syscall.
2472         (i386_align_code): Handle PROCESSOR_COREI7.
2473         (md_show_usage): Add corei7, clflush and syscall.
2474         (i386_target_format): Replace cpup4 with cpuclflush.
2475
2476         * config/tc-i386.h (processor_type): Add PROCESSOR_COREI7.
2477
2478         * doc/c-i386.texi: Document corei7, clflush and syscall.
2479
2480 2009-01-09  H.J. Lu  <hongjiu.lu@intel.com>
2481
2482         * config/tc-i386.c (cpu_arch): Add .rdtscp.
2483         (md_show_usage): Display rdtscp.
2484
2485         * doc/c-i386.texi: Document rdtscp.
2486
2487 2009-01-09  Peter Bergner  <bergner@vnet.ibm.com>
2488
2489         * config/tc-ppc.c (ppc_setup_opcodes): Remove PPC_OPCODE_NOPOWER4 test.
2490         Test the new "deprecated" opcode field.
2491
2492 2009-01-07  Sterling Augustine  <sterling@tensilica.com>
2493
2494         * config/tc-xtensa.c (produce_flix): New.
2495         (option_flix, optoin_no_generate_flix, option_no_flix) Define.
2496         (md_longopts): Add support for them.
2497         (md_parse_option): Likewise.
2498         (md_show_usage): Add help message.
2499         (finish_vinsn): Don't allow multi-slot flix when produce_flix
2500         option is set to FLIX_NONE.
2501         * config/xtensa-relax.c (transition_applies): Only relax to
2502         flix branches when produce_flix equals FLIX_ALL.
2503         * config/xtensa-relax.h (flix_level, FLIX_ALL, FLIX_NO_GENERATE
2504         FLIX_NONE): New.
2505         (produce_flix): Declare.
2506
2507 2009-01-06  Chao-ying Fu  <fu@mips.com>
2508
2509         * config/tc-mips.c (mips_ip): Set lastregno to 0xffffffff.
2510         Use strncmp to match jalr and jalr.hb.
2511         Fix a typo.
2512
2513 2009-01-05  H.J. Lu  <hongjiu.lu@intel.com>
2514
2515         AVX Programming Reference (December, 2008)
2516         * config/tc-i386.c (build_modrm_byte): Remove 5 operand instruction
2517         support.  Don't swap REG and NDS for FMA.
2518
2519 2009-01-02  Matthias Klose  <doko@ubuntu.com>
2520
2521         * itbl-ops.c (itbl_disassemble): Don't rely on undefined sprintf
2522         behaviour.
2523
2524 For older changes see ChangeLog-2008
2525 \f
2526 Local Variables:
2527 mode: change-log
2528 left-margin: 8
2529 fill-column: 74
2530 version-control: never
2531 End: