3 * config/tc-bfin.c (md_begin): Let the lex_type of '(' be
5 (bfin_start_line_hook): Remove the workaround for LSETUP(.
6 (bfin_name_is_register): Remove the workarounds for LSETUP(
8 (bfin_start_label): Ditto.
12 * config/tc-xtensa.c (xtensa_end_directive): Restore
13 default_lit_sections regardless of use_literal_section.
17 * Makefile.am (bfin-lex.c): Update ylwrap invocation.
18 * Makefile.in: Regenerated.
22 * doc/as.texinfo (.loc) Fix placement of '@end table'.
26 * config/xtensa-istack.h (TInsn): Replace dwarf2_line_info with an
27 unsigned line number. Do not include "dwarf2dbg.h".
28 * config/tc-xtensa.c (md_pseudo_table): Remove entry for "loc".
29 (xtensa_dwarf2_directive_loc, xtensa_dwarf2_emit_insn): Delete.
30 (xg_build_to_insn, xg_build_token_insn): Update TInsn uses.
31 (md_assemble): Use as_where instead of dwarf2_where.
32 (xg_assemble_vliw_tokens): Use unsigned line numbers instead of
33 dwarf2_line_infos. Change to call new_logical_line followed by
38 * doc/as.texinfo (Section): Add missing ']' to .section example.
43 * config/tc-hppa.c (pa_ip): Use as_bad instead of as_fatal when an
44 unknown opcode is found.
48 * NEWS: Mention @file.
52 * config/tc-avr.c: Convert to ISO C90 format. Fix formatting and
53 generally tidy up the code.
54 * config/tc-avr.h: Likewise.
58 * config/tc-ia64.c (dot_reg_val): Use expression_and_evaluate.
59 (dot_pred_rel): Likewise.
60 (parse_operand): Likewise.
61 (ia64_unrecognized_line): Likewise.
62 (md_operand): Likewise.
66 * expr.h (enum expr_mode): New.
67 (expression): Pass third argument to expr.
68 (expression_and_evaluate): New.
69 (deferred_expression): New.
70 (expr): Add third parameter.
71 (resolve_expression): New.
72 * struc-symbol.h (struct symbol): New members sy_volatile and
74 * symbols.c, symbols.h (symbol_clone): New.
75 (symbol_clone_if_forward_ref): New.
76 (snapshot_symbol): New.
78 (S_IS_FORWARD_REF): New.
79 (S_SET_VOLATILE): New.
80 (S_SET_FORWARD_REF): New.
81 * as.c (macro_expr): Use expression_and_evaluate.
82 * cond.c (s_if): Likewise.
84 * dw2gencfi.c (cfi_parse_reg): Likewise.
85 * expr.c (operand): Add second parameter. Optionally call
86 deferred_expression. Pass mode argument to itself and md_parse_name.
87 Check mode before trying to evaluate symbol. Call
88 symbol_clone_if_forward_ref for both operands.
89 (expr): Add third parameter. Pass mode to operand and itself.
90 Optionally call resolve_expression.
91 (resolve_expression): New.
92 (get_single_number): Pass second argument to operand.
93 * read.c (potable): New entry for .eqv.
94 (read_a_source_file): Handle new == operator.
95 (get_absolute_expr): Use expression_and_evaluate.
97 (assign_symbol): Rename second parameter. Call symbol_clone on
98 legal and illegal redefinition. Call S_SET_VOLATILE and
99 S_SET_FORWARD_REF depending on mode.
100 (s_set): Update description.
101 (s_space): Call resolve_expression.
102 (pseudo_set): Optionally call deferred_expression. Check
103 S_IS_FORWARD_REF before trying to simplify/resolve an expression.
105 * config/tc-ia64.h (md_parse_name): Add mode parameter.
106 * config/tc-arc.c (arc_parse_cons_expression): Likewise.
107 * config/tc-m32r.h (md_parse_name): Likewise.
108 (m32r_parse_name): Likewise.
109 * config/tc-mmix.h (md_parse_name): Likewise.
110 * config/tc-mn10300.h (md_parse_name): Likewise.
111 (mn10300_parse_name): Likewise.
112 * config/tc-ppc.h (md_parse_name): Likewise.
113 * config/tc-sh.h (md_parse_name): Likewise.
114 (sh_parse_name): Likewise.
115 * config/tc-sh64.h (md_parse_name): Likewise.
116 (sh64_consume_datalabel): Likewise.
117 * config/tc-tic54x.h (md_parse_name): Likewise.
118 * config/tc-m32r.c (m32r_parse_name): Add mode parameter. Check it
119 before trying to evaluate symbol.
120 * config/tc-mn10300.c (mn10300_parse_name): Likewise.
121 * config/tc-sh.c (sh_parse_name): Likewise.
122 * config/tc-sh64.c (sh64_consume_datalabel): Add mode parameter. Pass
123 second argument to operandf. Pass mode parameter to sh_parse_name.
124 * doc/as.texinfo: Document .eqv and the == assignment operator.
128 * Makefile.am (EXTRA_DIST): Remove bfin-lex.l and bfin-defs.h.
129 * Makefile.in: Regenerate.
133 * expr.c (operator): Allow "!=" as a synonym for "<>".
134 * doc/as.texinfo (Infix Op): Mention "!=".
138 * config/tc-hppa.c (strict): Don't initialize. Update comment.
139 (pa_ip): Promote from PA 1.0 to 1.1 immediately when 1.1 match is
140 found. Simplify handling of "ma" and "mb" completers.
144 * config/tc-arm.c: Don't provide fallback default for CPU_DEFAULT.
145 (arm_arch_used, thumb_arch_used, selected_cpu, selected_cpu_name):
147 (arm_cpu_option_table): Add canonical_name.
148 (arm_cpus): Populate canonical_name field.
149 (s_arm_eabi_attribute, s_arm_arch, s_arm_cpu, s_arm_fpu,
150 aeabi_set_public_attributes, arm_md_end): New functions.
151 (md_pseudo_table): Add "cpu", "arch", "fpu" and "eabi_attribute".
152 (md_assemble): Set thumb_arch_used and arm_arch_used.
153 (md_begin): Set defaut cpu if CPU_DEFAULT not defined.
154 * config/tc-arm.h (md_end): Define.
155 * doc/c-arm.texi: Document .cpu, .arch, .fpu and .eabi_attribute.
160 * config/tc-sh.c (allow_dollar_register_prefix): New variable.
161 (parse_reg_without_prefix): New function.
162 (parse_reg): Check for '$' register prefix if --allow-reg-prefix is
164 (option md_longopts): Add allow-reg-prefix option.
165 * doc/c-sh.texi: Document --allow-reg-prefix option.
166 * NEWS: Mention the new switch.
170 * doc/as.texinfo (Infix Ops): '<' and '>' are not shift
176 * config/tc-xtensa.c (xtensa_frob_label): Disallow labels in bundles.
180 * Makefile.am: Run "make dep-am".
181 * Makefile.in: Regenerated.
182 * aclocal.m4: Likewise.
186 * as.c (main): Use expandargv.
190 * config/tc-tic4x.c (tic4x_set): Advance input_line_pointer past
195 * Makefile.am: Bfin support.
196 * Makefile.in: Regenerated.
197 * aclocal.m4: Regenerated.
198 * configure: Regenerated.
199 * configure.in: Bfin support.
200 * configure.tgt: Bfin support.
201 * config/bfin-aux.h: New file.
202 * config/bfin-defs.h: New file.
203 * config/bfin-lex.l: New file.
204 * config/bfin-parse.y: New file.
205 * config/tc-bfin.c: New file.
206 * config/tc-bfin.h: New file.
207 * doc/Makefile.am: Recognize c-bfin.texi.
208 * doc/Makefile.in: Regenerated.
209 * doc/all.texi: Bfin support.
210 * doc/as.texinfo: Likewise.
211 * doc/c-bfin.texi: Document bfin-specific syntax and
216 * config/tc-arm.c (opcode_tag): Add OT_cinfix3_legacy.
217 (opcode_lookup): Handle OT_cinfix3_legacy. Revert earlier change for
218 normal infix conditions.
219 (C3E): Include Thumb-2 definition.
221 (insns): Use them for legacy mnemonics.
225 * asintl.h: Prevent the inclusion of <libintl.h> from the Solaris
226 version of <locale.h> when ENABLE_NLS is not defined.
230 * config/tc-ia64.c (parse_operands): Always parse first operand of
236 * app.c (do_scrub_chars): Match open and close quote of strings.
237 Remove redundant EOF test in case 7.
241 * config/tc-i386.c (reloc): Disable signedness check for 4-byte
242 relocations in 16- and 32-bit modes.
243 (i386_displacement): Make pc-relative branch handling dependent
244 upon operand (rather than address) size.
248 * dw2gencfi.c (dot_cfi): Call ignore_rest_of_line when not fully
250 (dot_cfi_startproc): Likewise.
251 (dot_cfi_endproc): Likewise. Also check no extra input was given.
252 (dot_cfi_escape): Likewise.
256 * config/tc-i386.h (x86_cons_fix_new): Declare unconditionally.
257 (TC_CONS_FIX_NEW): Define unconditionally.
258 (x86_pe_cons_fix_new): Remove.
259 * config/tc-i386.c (signed_cons): New.
260 (md_pseudo_table): Add slong.
261 (x86_cons_fix_new): Declare unconditionally.
262 (x86_pe_cons_fix_new): Merge into x86_cons_fix_new.
263 (tc_gen_reloc): Also consider BFD_RELOC_X86_64_32S for gotpc
268 * app.c (do_scrub_chars <LEX_IS_SYMBOL_COMPONENT>): Check for full
269 buffer after copying string.
273 * config/arm.c (arm_cpus): Add more cpu names.
274 * doc/c-arm.texi: Document them.
278 * read.c (pseudo_set): Don't set undefined symbols to expr_section.
282 * dwarf2dbg.c (process_entries): Fix uninitialized variable warning.
286 * dwarf2dbg.c (struct line_entry): Replace frag and frag_ofs
288 (dwarf2_loc_mark_labels): New.
289 (dwarf2_gen_line_info_1): Split out of ...
290 (dwarf2_gen_line_info): ... here. Create the temp symbol here.
291 (dwarf2_emit_label): New.
292 (dwarf2_directive_loc_mark_labels): New.
293 (out_set_addr): Take a symbol instead of frag+ofs.
294 (relax_inc_line_addr): Likewise.
295 (emit_inc_line_addr): Assert delta non-negative.
296 (process_entries): Remove dead code. Update to work with temp
297 symbols instead of frag+ofs.
298 * dwarf2dbg.h (dwarf2_directive_loc_mark_labels): Declare.
299 (dwarf2_emit_label, dwarf2_loc_mark_labels): Declare.
300 * config/obj-elf.c (elf_pseudo_tab): Add loc_mark_labels.
301 * config/obj-elf.h (obj_frob_label): New.
302 * config/tc-alpha.c (alpha_define_label): Call dwarf2_emit_label.
303 * config/tc-arm.c, config/tc-hppa.c, config/tc-m68k.c,
304 config/tc-mips.c, config/tc-ppc.c, config/tc-sh.c, config/tc-xtensa.c:
305 Similarly in the respective tc_frob_label implementation functions.
306 * config/tc-i386.c (md_pseudo_table): Move file and loc to
307 non-elf section; add loc_mark_labels.
308 * config/tc-ia64.c (struct label_fix): Add dw2_mark_labels.
309 (ia64_flush_insns): Check for marked labels; emit line entry if so.
310 (emit_one_bundle): Similarly.
311 (ia64_frob_label): Record marked labels.
312 * config/tc-m68hc11.h (tc_frob_label): Remove.
313 * config/tc-ms1.c (md_pseudo_table): Remove file and loc.
314 * config/tc-sh.h (tc_frob_label): Pass sym to sh_frob_label.
315 * config/tc-sh64.h (tc_frob_label): Likewise.
316 * doc/as.texinfo (LNS directives): Docuement .loc_mark_blocks.
320 * read.c (pseudo_set): Set segment of expression syms to expr_section.
324 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Add selector
325 registers, floating point control and status words, and mxcsr as
326 well as (for 64-bit code) segment base registers and rflags.
330 * config/tc-msp430.c (msp430_operands): Undo last changes. Instead...
331 (msp430_relax_frag): add a guard check to ensure that final fr_subtype
336 * doc/as.texinfo: Document -mdsp and -mno-dsp options.
337 * doc/c-mips.texi: Likewise, and document ".set dsp" and ".set nodsp"
342 * config/tc-arm.c (do_smi, do_t_smi): Rename ...
343 (do_smc, do_t_smc): ... to this.
344 (insns): Remane smi to smc.
345 (md_apply_fix, tc_gen_reloc): Rename BFD_RELOC_ARM_SMI to
350 * dwarf2dbg.c (dwarf2_where): Set line->isa.
351 (dwarf2_set_isa): New.
352 (dwarf2_directive_loc): Rearrange to allow all options on one line.
353 * dwarf2dbg.h (dwarf2_set_isa): Declare.
354 * doc/as.texinfo: Update .loc documentation.
358 * dwarf2dbg.c: Include safe-ctype.h.
359 (DWARF2_LINE_OPCODE_BASE): Bump to 13.
360 (current): Initialize.
361 (dwarf2_emit_insn): Clear DWARF2_FLAG_BASIC_BLOCK,
362 DWARF2_FLAG_PROLOGUE_END, DWARF2_FLAG_EPILOGUE_BEGIN.
363 (dwarf2_directive_file): Cope with invalid filename.
364 (dwarf2_directive_loc): Add handling for basic_block, prologue_end,
365 epilogue_begin, is_stmt, isa.
366 (emit_inc_line_addr): Move line_delta == 0, addr_delta == 0 special
368 (process_entries): Handle isa, DWARF2_FLAG_PROLOGUE_END,
369 and DWARF2_FLAG_EPILOGUE_BEGIN.
370 (out_debug_line): Emit sizes for DW_LNS_set_prologue_end,
371 DW_LNS_set_epilogue_begin, DW_LNS_set_isa.
372 * dwarf2dbg.h (DWARF2_FLAG_IS_STMT): Rename from DWARF2_FLAG_BEGIN_STMT.
373 (DWARF2_FLAG_BASIC_BLOCK): Rename from DWARF2_FLAG_BEGIN_BLOCK.
374 (DWARF2_FLAG_PROLOGUE_END, DWARF2_FLAG_EPILOGUE_BEGIN): New.
375 (struct dwarf2_line_info): Add isa member.
376 * doc/as.texinfo (LNS directives): New node.
380 * config/tc-mips.c (append_insn): Undo last change. Instead add
381 guard to suppress calling frag_grow if the current instruction is
382 one that allows a delay slot.
386 * config/tc-mips.c (mips_set_options): Add ase_mt for MT instructions.
387 (mips_opts): Add -1 to initialize ase_mt.
388 (file_ase_mt): New variable for -mmt.
389 (CPU_HAS_MT): New define.
390 (validate_mips_insn): Add supports for +t, +T, !, $, *, &, g operand
392 (mips_ip): Check ase_mt to enable MT instructions.
393 Handle !, $, *, &, +T, +t, g operand formats.
394 For "mftc1", "mfthc1", "cftc1", "mttc1", "mtthc1", "cttc1", we allow
396 (OPTION_MT, OPTION_NO_MT): New define.
397 (OPTION_COMPAT_ARCH_BASE): Change because of inserting MT define.
398 (md_parse_option): Parse OPTION_MT and OPTION_NO_MT.
399 (mips_after_parse_args): Set ase_mt based on CPU.
400 (s_mipsset): Handle ".set mt" and ".set nomt".
401 (mips_elf_final_processing): Remind of adding new flag for MT ASE.
402 (md_show_usage): Show usage of -mmt and -mno-mt.
403 * doc/as.texinfo: Document -mmt and -mno-mt options.
404 * doc/c-mips.texi: Likewise, and document ".set mt" and ".set nomt"
409 * config/tc-arm.c (arm_it): Add relax field.
410 (T16_32_TAB): Add addi, addis, add_pc, add_sp, dec_sp, inc_sp,
411 b, bcond, ldr_pc, ldr_pc2, ldr_sp, str_sp, subi, subis.
412 (do_t_add_sub, do_t_addr, do_t_branch, do_t_ldst,
413 do_t_mov_cmp): Allow relaxation.
414 (output_relax_insn): New function.
415 (put_thumb32_insn): New function.
416 (output_inst): Use new functions.
417 (md_assemble): Don't throw error on relaxable instructions.
418 (insns): Change "b" entry from TCE(...) to tCE(...).
419 (md_estimate_size_before_relax): Return 2.
420 (md_convert_frag, relax_immediate, relax_adr, relax_addsub,
421 relax_branch, arm_relax_frag): New functions.
422 (arm_force_relocation): Return 0 for Thumb-2 immediate operand
424 * config/tc-arm.h (md_convert_frag): Remove definition.
425 (md_relax_frag): Define.
426 (arm_relax_frag): Add prototype.
430 * config/tc-arm.c (do_rn_rd): Enforce SWP operand constraints.
434 * config/tc-arm.c (encode_arm_cp_address): Use
435 BFD_RELOC_ARM_T32_CP_OFF_IMM in thumb mode.
436 (do_iwmmxt_wldstbh): Use BFD_RELOC_ARM_T32_CP_OFF_IMM_S2 in thumb
438 (md_assemble): Only allow coprocessor instructions when Thumb-2 is
441 (insns): Use them for coprocessor instructions.
442 (md_pcrel_from_section): Handle BFD_RELOC_ARM_T32_CP_OFF_IMM.
443 (get_thumb32_insn): New function.
444 (put_thumb32_insn): New function.
445 (md_apply_fix): Handle BFD_RELOC_ARM_T32_CP_OFF_IMM and
446 BFD_RELOC_ARM_T32_CP_OFF_IMM_S2.
450 * config/tc-arm.c (opcode_lookup): Look for infix opcode when
451 incorrect suffix matches.
455 * config/tc-mips.c (append_insn): Correctly handle mips16 case
456 when the frags are different for the 2 instructions we want to
457 swap. If the lengths of the 2 instructions are not the same, we
458 won't do the swap but emit an nop.
462 * config/tc-msp430.c (msp430_operands): Emit dwarf2_emit_insn()
463 as appropriate. Change frag_variant() to frag_var() for relaxes.
467 * write.c (generic_force_reloc): Do not call S_FORCE_RELOC if
472 * config/tc-i386.c (intel_e09): Set JumpAbsolute when seeing a PTR-
473 qualified operand of a branch.
474 (intel_bracket_expr): Set JumpAbsolute here...
475 (intel_e11): ... rather than here.
479 * configure.tgt: Set bfd_gas also for z8k cpu.
480 * config/tc-z8k.c (s_segm): Use bfd_set_arch_mach to set machine
482 (newfix): Adapt to bfd reloc types.
483 (build_bytes): Adapt to bfd reloc types. Ensure that enough space
484 is available in the current frag.
485 (md_convert_frag): Adapt function parameters.
486 (tc_gen_reloc): New function.
487 (md_section_align): Use bfd_get_section_alignment.
488 (md_apply_fix): Adapt to bfd reloc types. Fix handling of
489 BFD_RELOC_Z8K_IMM4L, BFD_RELOC_8, BFD_RELOC_16, and BFD_RELOC_32
491 * config/tc-z8k.h (TARGET_ARCH): Define.
492 (tc_fix_adjustable): Define.
496 * config/tc-mips.c (mips_set_options): Add ase_dsp for DSP instructions.
497 (mips_opts): Add -1 to initialize ase_dsp.
498 (file_ase_dsp): New variable for -mdsp.
499 (CPU_HAS_DSP): New define.
500 (validate_mips_insn): Add supports for 3, 4, 5, 6, 7, 8, 9, 0, ', :, @
502 (mips_ip): Add min_range and max_range for checking singed numbers.
503 Check ase_dsp to enable DSP instructions.
504 Handle 3, 4, 5, 6, 7, 8, 9, 0, ', :, @ operand formats.
505 (OPTION_DSP, OPTION_NO_DSP): New define.
506 (OPTION_COMPAT_ARCH_BASE): Change because of inserting DSP define.
507 (md_parse_option): Parse OPTION_DSP and OPTION_NO_DSP.
508 (mips_after_parse_args): Set ase_dsp based on CPU.
509 (s_mipsset): Handle ".set dsp" and ".set nodsp".
510 (mips_elf_final_processing): Remind of adding new flag for DSP ASE.
511 (md_show_usage): Show usage of -mdsp and -mno-dsp.
515 * config/tc-mips.c (mips_cpu_info_table): Add 5kf to the table of
521 * config/tc-ppc.c (ppc_symbol_chars): Add '%' and '['.
525 * configure.tgt (*-*-vxworks): Match vxworks* instead.
529 * config/tc-i386.c (object_64bit): New.
530 (i386_target_format): Initialize it.
531 (output_disp): Use object_64bit for relocation type determination.
532 (output_imm): Likewise.
533 (i386_validate_fix): Likewise.
534 (tc_gen_reloc): Likewise.
535 (lex_got): Likewise. Remove static mode_name. Change array size
536 of gotrel's rel field, and adjust its initializer. Adjust diagnostic.
537 (x86_cons): Use object_64bit for deciding whether quad fields can
542 * config/tc-h8300.h: Remove TC_RELOC_MANGLE/tc_reloc_mangle.
543 * config/tc-mcore.h: Likewise.
544 * config/tc-z8k.h: Likewise.
545 * config/tc-z8k.c: Likewise.
546 * config/tc-sh.h: Remove TC_RELOC_MANGLE and
547 sh_coff_reloc_mangle declaration.
548 * config/tc-sh.c: (md_apply_fix): Fix comment for case
553 * config/tc-sh64.c (sh64_target_format): Check preset_target_arch
554 to confirm that no ISA is specified.
558 * write.c (relax_segment): Count the number of frags being
559 processed and use this to compute a maximum limit on the number of
560 iterations that will be allowed when attempting to relax the
565 * config/obj-coff.c (obj_coff_weak): Set auxiliary record
566 of NT weak externals to IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY.
570 * config/tc-ppc.c (ppc_set_cpu): Don't select 64-bit based on
575 * config/tc-arm.c (do_t_mov_cmp): Fix encoding of i16-bit conditional
577 (do_t_mvn_tst, do_t_neg, do_t_shift): Ditto.
581 * config/tc-ppc.c (parse_cpu): Add -me300 support.
582 (md_show_usage): Likewise.
583 * doc/c-ppc.texi (PowerPC-Opts): Document it.
587 * config/tc-s390.c (md_parse_option): Add cpu type z9-109.
588 (md_gather_operands): Add support for optional operands.
591 * config/tc-msp430.c (msp430_enable_relax): New flag.
592 (msp430_enable_polys): Likewise.
593 (OPTION_RELAX): New option.
594 (OPTION_POLYMORPHS): Likewise.
595 (md_longopts): New long options.
596 (md_show_usage): Updated.
597 (md_parse_option): Add new options handler.
598 (msp430_operands): Add check if polymorph insns are enabled.
599 (msp430_force_relocation_local): New function.
600 (md_apply_fix): Now delete relocs according to new flags combination.
601 (msp430_relax_frag): Convert long branches to short branches only if
602 flag msp430_enable_relax is set.
603 * config/tc-msp430.h (TC_FORCE_RELOCATION_LOCAL): Defined.
604 (msp430_force_relocation_local): Likewise.
605 * doc/c-msp430.texi: Describe new options.
609 * Makefile.am ($(srcdir)/make-gas.com): Remove target.
610 (stamp-mk.com): Likewise.
611 (EXTRA_DIST): Remove make-gas.com from list.
612 (MOSTLYCLEANFILES): Remove stamp-mk.com from list.
613 * Makefile.in: Regenerate.
617 * subsegs.c (subseg_change): Move declaration of seginfo to before
622 * README-vms: Delete.
623 * config-gas.com: Delete.
624 * makefile.vms: Delete.
625 * vmsconf.sh: Delete.
626 * config/atof-tahoe.c: Delete.
627 * config/m88k-opcode.h: Delete.
628 * config/obj-bout.c: Delete.
629 * config/obj-bout.h: Delete.
630 * config/obj-hp300.c: Delete.
631 * config/obj-hp300.h: Delete.
632 * config/tc-a29k.c: Delete.
633 * config/tc-a29k.h: Delete.
634 * config/tc-h8500.c: Delete.
635 * config/tc-h8500.h: Delete.
636 * config/tc-m88k.c: Delete.
637 * config/tc-m88k.h: Delete.
638 * config/tc-tahoe.c: Delete.
639 * config/tc-tahoe.h: Delete.
640 * config/tc-tic80.c: Delete.
641 * config/tc-tic80.h: Delete.
642 * config/tc-w65.c: Delete.
643 * config/tc-w65.h: Delete.
644 * config/te-aux.h: Delete.
645 * config/te-delt88.h: Delete.
646 * config/te-delta.h: Delete.
647 * config/te-dpx2.h: Delete.
648 * config/te-hp300.h: Delete.
649 * config/te-ic960.h: Delete.
650 * config/vms-a-conf.h: Delete.
651 * doc/c-a29k.texi: Delete.
652 * doc/c-h8500.texi: Delete.
653 * doc/c-m88k.texi: Delete.
654 * README: Remove obsolete examples, and list of supported targets.
655 * Makefile.am: Remove a29k, h8500, m88k, tahoe, tic80, w65,
656 bout and hp300 support.
657 (DEP_FLAGS): Don't define BFD_ASSEMBLER.
658 * configure.in: Remove --enable-bfd-assembler, need_bfd,
660 * configure.tgt: Remove a29k, h8300-coff, h8500-*, i960 non-elf,
661 m68k non bfd, m88k, or32-coff, tic80-*, vax non-bfd, w65k-*, *-nindy.
662 * as.c: Remove all non-BFD_ASSEMBLER code, support for above targets.
664 * dw2gencfi.c: Likewise.
665 * dwarf2dbg.c: Likewise.
667 * input-file.c: Likewise.
668 * listing.c: Likewise.
669 * literal.c: Likewise.
670 * messages.c: Likewise.
672 * output-file.c: Likewise.
675 * struc-symbol.h: Likewise.
676 * subsegs.c: Likewise.
677 * subsegs.h: Likewise.
678 * symbols.c: Likewise.
679 * symbols.h: Likewise.
683 * config/aout_gnu.h: Likewise.
684 * config/obj-aout.c: Likewise.
685 * config/obj-aout.h: Likewise.
686 * config/obj-coff.c: Likewise.
687 * config/obj-coff.h: Likewise.
688 * config/obj-evax.h: Likewise.
689 * config/obj-ieee.h: Likewise.
690 * config/tc-arm.c: Likewise.
691 * config/tc-arm.h: Likewise.
692 * config/tc-avr.c: Likewise.
693 * config/tc-avr.h: Likewise.
694 * config/tc-crx.h: Likewise.
695 * config/tc-d10v.h: Likewise.
696 * config/tc-d30v.h: Likewise.
697 * config/tc-dlx.h: Likewise.
698 * config/tc-fr30.h: Likewise.
699 * config/tc-frv.h: Likewise.
700 * config/tc-h8300.c: Likewise.
701 * config/tc-h8300.h: Likewise.
702 * config/tc-hppa.h: Likewise.
703 * config/tc-i370.h: Likewise.
704 * config/tc-i386.c: Likewise.
705 * config/tc-i386.h: Likewise.
706 * config/tc-i860.h: Likewise.
707 * config/tc-i960.c: Likewise.
708 * config/tc-i960.h: Likewise.
709 * config/tc-ip2k.h: Likewise.
710 * config/tc-iq2000.h: Likewise.
711 * config/tc-m32c.h: Likewise.
712 * config/tc-m32r.h: Likewise.
713 * config/tc-m68hc11.h: Likewise.
714 * config/tc-m68k.c: Likewise.
715 * config/tc-m68k.h: Likewise.
716 * config/tc-maxq.c: Likewise.
717 * config/tc-maxq.h: Likewise.
718 * config/tc-mcore.c: Likewise.
719 * config/tc-mcore.h: Likewise.
720 * config/tc-mn10200.h: Likewise.
721 * config/tc-mn10300.c: Likewise.
722 * config/tc-mn10300.h: Likewise.
723 * config/tc-ms1.h: Likewise.
724 * config/tc-msp430.c: Likewise.
725 * config/tc-msp430.h: Likewise.
726 * config/tc-ns32k.c: Likewise.
727 * config/tc-ns32k.h: Likewise.
728 * config/tc-openrisc.h: Likewise.
729 * config/tc-or32.c: Likewise.
730 * config/tc-or32.h: Likewise.
731 * config/tc-ppc.c: Likewise.
732 * config/tc-ppc.h: Likewise.
733 * config/tc-s390.h: Likewise.
734 * config/tc-sh.c: Likewise.
735 * config/tc-sh.h: Likewise.
736 * config/tc-sparc.c: Likewise.
737 * config/tc-tic30.c: Likewise.
738 * config/tc-tic30.h: Likewise.
739 * config/tc-tic4x.c: Likewise.
740 * config/tc-tic4x.h: Likewise.
741 * config/tc-tic54x.c: Likewise.
742 * config/tc-tic54x.h: Likewise.
743 * config/tc-v850.h: Likewise.
744 * config/tc-vax.c: Likewise.
745 * config/tc-vax.h: Likewise.
746 * config/tc-xstormy16.h: Likewise.
747 * config/tc-xtensa.h: Likewise.
748 * config/tc-z8k.c: Likewise.
749 * config/tc-z8k.h: Likewise.
750 * config/vms-a-conf.h
751 * doc/Makefile.am: Likewise.
752 * doc/all.texi: Likewise.
753 * doc/as.texinfo: Likewise.
754 * doc/internals.texi: Likewise.
755 * doc/Makefile.in: Regenerate.
756 * Makefile.in: Regenerate.
757 * configure: Regenerate.
758 * config.in: Regenerate.
759 * po/POTFILES.in: Regenerate.
764 * macro.c (getstring): Do not treat round parentheses exactly the
765 same as angle brackets - the parentheses need to be preserved and
766 passed on to the macro processing code.
770 * config/tc-msp430.c (MSP430_ISA_21): Define.
771 (mcu_types): Add entries for msp430x21xx variants.
776 * macro.c (getstring): Treat round parentheses in the same way as
778 (get_any_string): Likewise.
783 * as.c (parse_args): Handle -al=<FILE>.
787 * read.c (s_app_line): Accept a line number of 0 for compatibility
788 with gcc's output for assembler-with-cpp files.
792 * config/tc-arm.c (current_it_mask, current_cc): New variables.
793 (do_t_add_sub): Use correct encodings inside IT block.
794 (do_t_arit3c): Ditto.
795 (do_t_it): Simplify logic. Set current_it_mask and current_cc.
796 (md_assemble): Verify conditional suffixes agains IT blocks.
800 * config/tc-arm.c (encode_thumb32_immediate): Only accept shifted
802 (encode_thumb32_shifted_operand): Prohibit register shifts.
803 (encode_thumb32_addr_mode): Fix typo.
804 (insns): Correct thumb2 ldm and stm opcodes.
808 * config/tc-arm.c (do_iwmmxt_wldstd): Correct the offset range for
809 WLDRD/WSTRD instruction.
813 * config/tc-ppc.c (md_apply_fix <ELF>): Don't warn on overflow
818 * config/tc-mips.c (s_mips_globl): Allow multiple symbols per .globl.
822 * config/tc-arm.c (T16_32_TAB): Add "addr". Fix encoding of push and
824 (do_t_addr): Implement 32-bit variant.
825 (do_t_push_pop): Make some errors warnings. Handle single register
827 (insns): Use tCE for adr.
828 (md_pcrel_from_section): Handle BFD_RELOC_ARM_T32_ADD_PC12.
829 (md_apply_fix): Ditto.
833 * config/tc-arm.c (parse_tb): New function.
834 (enum operand_parse_code): Add OP_TB.
835 (parse_operands): Handle OP_TB.
836 (do_t_add_sub_w, do_t_tb): New functions.
837 (insns): Add entries for addw, subw, tbb and tbh.
838 (md_apply_fix): Handle BFD_RELOC_ARM_T32_IMM12.
842 * config/tc-m32r.c (m32r_check_fixup): Fixed X_op check.
846 * config/tc-i386.c (handle_large_common): Declare only for ELF.
850 * config/tc-ia64.h (unw_r_record): Change type of fr_mem to unsigned
852 (unw_p_record): Remove unused/redundant fields imask and rmask.
853 Combine spoff and pspoff into a union. Combine gr and br into a
854 union. Change type of grmask and brmask to unsigned char. Change type
855 of frmask to unsigned int.
856 (unw_x_record): Combine spoff, pspoff, and treg into a union.
857 * config/tc-ia64.c (unwind): New field 'pending_saves'.
858 (check_pending_save): New.
859 (alloc_record): Clear out entire record.
860 (output_psp_gr): Use renamed structure fields.
861 (output_psp_sprel): Likewise.
862 (output_rp_gr): Likewise.
863 (output_rp_br): Likewise.
864 (output_rp_psprel): Likewise.
865 (output_rp_sprel): Likewise.
866 (output_pfs_gr): Likewise.
867 (output_pfs_psprel): Likewise.
868 (output_pfs_sprel): Likewise.
869 (output_preds_gr): Likewise.
870 (output_preds_psprel): Likewise.
871 (output_preds_sprel): Likewise.
872 (output_spill_base): Likewise.
873 (output_unat_gr): Likewise.
874 (output_unat_psprel): Likewise.
875 (output_unat_sprel): Likewise.
876 (output_lc_gr): Likewise.
877 (output_lc_psprel): Likewise.
878 (output_lc_sprel): Likewise.
879 (output_fpsr_gr): Likewise.
880 (output_fpsr_psprel): Likewise.
881 (output_fpsr_sprel): Likewise.
882 (output_priunat_gr): Likewise.
883 (output_priunat_psprel): Likewise.
884 (output_priunat_sprel): Likewise.
885 (output_bsp_gr): Likewise.
886 (output_bsp_psprel): Likewise.
887 (output_bsp_sprel): Likewise.
888 (output_bspstore_gr): Likewise.
889 (output_bspstore_psprel): Likewise.
890 (output_bspstore_sprel): Likewise.
891 (output_rnat_gr): Likewise.
892 (output_rnat_psprel): Likewise.
893 (output_rnat_sprel): Likewise.
894 (output_spill_psprel): Likewise.
895 (output_spill_sprel): Likewise.
896 (output_spill_reg): Likewise.
897 (output_fr_mem): Likewise. Allocate one unwind record per set mask
899 (output_frgr_mem): Likewise.
900 (output_gr_mem): Likewise.
901 (output_br_mem): Likewise.
902 (output_gr_gr): Likewise.
903 (output_br_gr): Likewise.
904 (fixup_unw_records): Likewise.
905 (process_one_record): Use renamed structure fields. For gr_gr and
906 br_gr, collect mask from chain of records before output.
907 (in_prologue): Simplify and eliminate early returns. Call
909 (in_body): Simplify and eliminate early returns.
910 (dot_body): Call check_pending_save.
911 (md_assemble): Update comment. Deal with pending saves.
915 * config/tc-i386.c (optimize_imm): Calculate candidate immediates
916 mask from guessed suffix, but mask out other immediate types only
917 if at least on candidate is valid for the insn.
921 * config/tc-m32c.c (md_cgen_lookup_reloc): Add 8 bit operands.
922 Support %mod() modifiers from opcodes.
923 * doc/c-m32c.texi (M32C-Modifiers): New section.
928 * config/obj-elf.c: Include "elf/x86-64.h" if TC_I386 is
930 (elf_com_section_ptr): New.
931 (elf_begin): Set elf_com_section_ptr to bfd_com_section_ptr.
932 (elf_common_parse): Make it global. Use elf_com_section_ptr
933 instead of bfd_com_section_ptr.
934 (obj_elf_change_section): Handle x86-64 large bss sections.
936 * config/obj-elf.h (elf_com_section_ptr): New.
937 (elf_common_parse): New.
939 * config/tc-i386.c (handle_large_common): New.
940 (md_pseudo_table): Add "largecomm".
941 (x86_64_section_letter): New.
942 (x86_64_section_word): New.
944 * config/tc-i386.h (x86_64_section_word): New.
945 (x86_64_section_letter): New.
946 (md_elf_section_letter): New. Defined.
947 (md_elf_section_word): Likewise.
951 * configure.tgt: Remove i386-*-rtemself*.
952 Remove sparc-*-rtemself*.
956 * config/tc-m68k.h: Remove TE_LYNX conditional code.
960 * config/tc-arm.c (encode_thumb32_addr_mode): Don't set
965 * messages.c: Use vsnprintf instead of vsprintf.
969 * config/tc-m32r.c (tc_gen_reloc): Check BFD_RELOC_32_PCREL and
970 BFD_RELOC_16_PCREL to Support R_M32R_REL32.
974 * configure.tgt: Restore alpha ordering to list of arches.
978 * tc-hppa.c (pa_ip): Reject match for '#' immediate if not pa20.
982 * config/tc-i386.c (md_begin): Use IS_ELF.
983 (tc_i386_fix_adjustable): Likewise.
984 (md_estimate_size_before_relax): Likewise.
985 (md_apply_fix): Likewise.
986 (i386_target_format): Likewise.
987 (lex_got): Define to NULL when not ELF or when LEX_AT. Check IS_ELF.
988 (i386_immediate): Remove #ifdef LEX_AT.
989 (i386_displacement): Likewise.
990 * config/tc-i386.h (x86_cons): Prototype only when ELF and when not
995 * config/tc-i386.c (reloc): Convert to ISO C90. Change first
996 parameter to unsigned. Parameter sign now is tristate - zero/
997 positive mean unsigned/signed, negative means signedness doesn't
998 matter. Check field size,
999 signedness, and pcrel-ness are in agreement between relocated field
1000 and relocation type. Adjust diagnostics.
1001 (optimize_imm): And type mask of operand instead of overwriting it.
1002 (lex_got): Convert to ISO C90. Add third parameter. Add new field to
1003 local structure and initialize gotrel accordingly. Pass caller as
1004 mask of types that the operator can match.
1005 (x86_cons_fix_new): Let reloc know that signedness of relocation
1007 (x86_pe_cons_fix_new): Likewise.
1008 (x86_cons): Pass additional argument to lex_got.
1009 (i386_immediate): New local variable 'types'. Pass its address as
1010 additional argument to lex_got. Mask out operand types not supported
1012 (i386_displacement): Likewise. Set bigdisp to all types supported in
1013 64-bit mode, combining the previously split initialization.
1017 * config/tc-i386.c (parse_insn): Reject prefix if unavailable in
1022 * config/tc-hppa.c (pa_ip): Search entire mnemonic before considering
1027 * Makefile.am: Run "make dep-am".
1028 * Makefile.in: Regenerate.
1032 * gas/config/tc-i386.h (CpuVMX): New.
1033 (CpuUnknownFlags): Add CpuVMX.
1037 Add support for the Renesas M32C.
1038 * Makefile.am (CPU_TYPES): List m32c.
1039 (TARGET_CPU_CFILES): List config/tc-m32c.c.
1040 (TARGET_CPU_HFILES): List config/tc-m32c.h.
1041 * configure.in: Add case for m32c.
1042 * configure.tgt: Add cases for m32c and m32c-*-elf.
1043 * configure: Regenerated.
1044 * config/tc-m32c.c, config/tc-m32c.h: New files.
1045 * doc/Makefile.am (CPU_DOCS): Add c-m32c.texi.
1046 * doc/Makefile.in: Regenerated.
1047 * doc/all.texi: Set M32C.
1048 * doc/as.texinfo: Add text for the M32C-specific options and line
1049 comment characters, and refer to c-m32c.texi.
1050 * doc/c-m32c.texi: New file.
1055 * config/tc-crx.c (reset_vars): Use strncpy to prevent overflowing
1056 the ins_parse buffer.
1060 * configure.tgt: Remove a29k-*-rtems*, hppa*-*-rtems*,i386-go32-rtems*,
1061 i386-*-rtemscoff*, sparc-*-rtemsaout*.
1065 * config/tc-i386.c (optimize_disp): Optimize signed 32bit
1070 * frags.h: Remove ANSI_PROTOTYPES conditional code.
1071 * config/obj-elf.h: Likewise.
1072 * config/tc-h8300.h: Likewise.
1073 * config/tc-h8500.h: Likewise.
1074 * config/tc-i370.h: Likewise.
1075 * config/tc-i386.h: Likewise.
1076 * config/tc-m68hc11.h: Likewise.
1077 * config/tc-m68k.h: Likewise.
1078 * config/tc-ppc.h: Likewise.
1079 * config/tc-s390.h: Likewise.
1080 * config/tc-sh.h: Likewise.
1081 * config/tc-sparc.h: Likewise.
1082 * config/tc-tic30.c: Likewise.
1083 * config/tc-w65.h: Likewise.
1084 * config/tc-xtensa.h: Likewise.
1089 * config/tc-cris.h (MD_APPLY_SYM_VALUE): Define.
1093 * config/tc-tic30.c (debug): Add format attribute. Fix format
1098 * config/tc-i386.c (cpu_arch): Add sse3.
1100 * config/tc-i386.h (CpuSSE3): Renamed from ...
1101 (CpuPNI): This. Defined as CpuSSE3.
1103 * doc/c-i386.texi: Document .sse3.
1107 * config/tc-ia64.c (nop): Use zero for L-unit pseudo-nop.
1111 * config/tc-pdp11.c (md_apply_fix): Cast first argument to
1112 md_chars_to_numbers to an unsigned pointer in order to avoid a
1113 compile time warning.
1117 * config/tc-ppc.c (ppc_target_format): Add VxWorks.
1121 * config/tc-ms1.c: New.
1122 * config/tc-ms1.h: New.
1123 * testsuite/gas/ms1/allinsn.d: New.
1124 * testsuite/gas/ms1/allinsn.s: New.
1125 * testsuite/gas/ms1/badinsn.s: New.
1126 * testsuite/gas/ms1/badinsn1.s: New.
1127 * testsuite/gas/ms1/badoffsethigh.s: New.
1128 * testsuite/gas/ms1/badoffsetlow.s: New.
1129 * testsuite/gas/ms1/badorder.s: New.
1130 * testsuite/gas/ms1/badreg.s: New.
1131 * testsuite/gas/ms1/badsignedimmhigh.s: New.
1132 * testsuite/gas/ms1/badsignedimmlow.s: New.
1133 * testsuite/gas/ms1/badsyntax.s: New.
1134 * testsuite/gas/ms1/badsyntax1.s: New.
1135 * testsuite/gas/ms1/badunsignedimmhigh.s: New.
1136 * testsuite/gas/ms1/badunsignedimmlow.s: New.
1137 * testsuite/gas/ms1/errors.exp: New.
1138 * testsuite/gas/ms1/ldst.s: New.
1139 * testsuite/gas/ms1/misc.d: New.
1140 * testsuite/gas/ms1/misc.s: New.
1141 * testsuite/gas/ms1/ms1-16-003.d: New.
1142 * testsuite/gas/ms1/ms1-16-003.s: New.
1143 * testsuite/gas/ms1/ms1.exp: New.
1144 * testsuite/gas/ms1/msys.d: New.
1145 * testsuite/gas/ms1/msys.s: New.
1146 * testsuite/gas/ms1/relocs.d: New.
1147 * testsuite/gas/ms1/relocs.exp: New.
1148 * testsuite/gas/ms1/relocs1.s: New.
1149 * testsuite/gas/ms1/relocs2.s: New.
1153 * config/tc-i386.h (CpuSVME): New.
1154 (CpuUnknownFlags): Include CpuSVME.
1155 * config/tc-i386.c (cpu_arch): Add .pacifica and .svme. Add opteron
1156 as alias of sledgehammer.
1157 (md_assemble): Include invlpga in the check for insns with two source
1159 (process_operands): Include SVME insns in the check for ignored
1160 segment overrides. Adjust diagnostic.
1161 (i386_index_check): Special-case SVME insns with memory operands.
1166 * tc-arm.c (struct arm_it): Make operands.imm signed to match its
1167 use an immediate value.
1168 (parse_vfp_reg_list): Make the 2nd parameter an unsigned pointer
1169 since the register field of the operands structure is unsigned.
1170 (s_arm_unwind_save_vfp): Make "reg" unsigned.
1171 (parse_operands): Make the 2ns parameter an unsigned pointer to
1173 (do_ldrd): When using the imm field of the operands structure as a
1174 second register field, treat it as unsigned.
1179 * config/obj-elf.c (obj_elf_change_section): Use backend
1184 * config/tc-ia64.c (line_separator_chars): Add '{' and '}'.
1185 (output_spill_psprel, output_spill_psprel_p): Combine.
1186 (output_spill_sprel, output_spill_sprel_p): Combine.
1187 (output_spill_reg, output_spill_regp_p): Combine.
1188 (process_one_record): Handle psp_psprel.
1189 (parse_predicate_and_operand): New.
1190 (convert_expr_to_ab_reg): Two new parameters. Return void. Always
1191 initialize output values. Emit diagnostic case here.
1192 (convert_expr_to_xy_reg): Likewise. Don't allow r0, f0, and f1.
1193 (add_unwind_entry): New second parameter. Allow first parameter to
1194 be NULL. Parse optional tag, emit warning about further support for
1195 it otherwise being missing. Check end-of-line when requested.
1196 (dot_fframe): Clear operand when wrong. Allow tag.
1197 (dot_vframe): Likewise.
1198 (dot_vframesp): Likewise. Rename parameter, issue warning when psp
1200 (dot_vframepsp): Remove.
1201 (dot_altrp): Clear operand when wrong. Allow tag.
1202 (dot_save): Likewise. Let default case also go through
1204 (dot_savemem): Likewise.
1205 (dot_restore): Don't return when wrong operand. Allow tag.
1206 (dot_spillreg, dot_spillreg_p): Combine. Simplify by using
1207 parse_predicate_and_operand and the new arguments to
1208 convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
1209 when wrong operand. Allow tag.
1210 (dot_restorereg, dot_restorereg_p): Likewise.
1211 (dot_spillmem, dot_spillmem_p): Likewise.
1212 (dot_saveg): Clear operand when wrong. Perform tighter operand
1214 (dot_savef): Likewise.
1215 (dot_saveb): Likewise.
1216 (dot_savegf): Likewise.
1217 (dot_spill): Remove end-of-line check. Combine. Simplify by using
1218 parse_predicate_and_operand and the new arguments to
1219 convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
1220 when wrong operand. Allow tag.
1222 (dot_label_state): Don't return when wrong operand.
1223 (dot_copy_state): Likewise.
1224 (dot_unwabi): Likewise. Check if in prologue.
1225 (dot_body): Don't call demand_empty_rest_of_line.
1226 (dot_prologue): Type of mask and grsave is unsigned. Perform tighter
1228 (md_pseudo_table): Also use dot_restorereg for .restorereg.p. Also
1229 use dot_spillreg for .spillreg.p. Also use dot_spillmem for
1230 .spillpsp.p and .spillsp.p. Also use dot_vframesp for .vframepsp.
1231 (parse_operand): New second parameter. Don't deal with '}' here
1232 anymore. Don't advance past end-of-line.
1233 (parse_operands): Pass second argument to parse_operand.
1234 (ia64_start_line): Prevent out-of-bounds access through
1235 input_line_pointer. Deal with '}' here.
1236 (ia64_unrecognized_line): Don't deal with '}' here.
1237 (dot_alias): Use ignore_rest_of_line not its deprecated alias
1238 discard_rest_of_line.
1242 * config/tc-arm.c (T_OPCODE_BRANCH, encode_arm_addr_mode_2)
1243 (encode_arm_addr_mode_3, encode_arm_cp_address, do_blx, do_t_blx)
1244 (do_t_branch, insns [b, bl]): Don't encode pipeline offset.
1245 (do_branch): Always set inst.reloc.pc_rel.
1246 (s_arm_elf_cons): Disallow use of (plt) suffix.
1247 (do_adrl): Adjust X_add_number unconditionally.
1248 (md_pcrel_from): Rename md_pcrel_from_section, add second segT
1249 argument. Handle all adjustment for pipeline offset here.
1250 (md_apply_fix): No need to undo work of md_pcrel_from. No
1251 need to extract pre-encoded pipeline adjustments from various
1252 branch instructions. Generally, assume instructions are already
1253 all-bits-zero in the field being fixed up. Remove all OBJ_ELF
1254 special cases. Handle BFD_RELOC_ARM_PLT32 like
1255 BFD_RELOC_ARM_PCREL_BRANCH.
1256 (tc_gen_reloc): Remove OBJ_ELF special case.
1257 * config/tc-arm.c: Define MD_PCREL_FROM_SECTION.
1261 * Makefile.am (check-DEJAGNU): Don't search for expect.
1262 * Makefile.in: Regenerate.
1266 * Makefile.am (EXPECT): Set to expect.
1267 (RUNTEST): Likewise, set to runtest.
1268 * Makefile.in: Regenerate.
1272 * config/m68k-parse.h: Use ISO C90.
1273 * config/m68k-parse.y: Likewise.
1274 * config/tc-m68k.h: Likewise.
1279 * config/tc-i386.c (md_assemble): Don't call optimize_disp on
1281 (optimize_disp): Optimize only if possible. Don't use 64bit
1282 displacement on non-constants and do same on constants if
1287 * config/tc-i386.c (reloc): Also handle BFD_RELOC_64_PCREL.
1288 (tc_i386_fix_adjustable): Include BFD_RELOC_X86_64_GOTOFF64,
1289 BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64.
1290 (output_disp): Do GOTPC conversion also for BFD_RELOC_X86_64_32S
1291 and BFD_RELOC_32_PCREL. Use BFD_RELOC_X86_64_GOTPC32 instead of
1293 (output_imm): Do GOTPC conversion also for BFD_RELOC_X86_64_32S.
1294 Use BFD_RELOC_X86_64_GOTPC32 instead of aborting.
1295 (tc_gen_reloc): Do GOTPC conversion also for BFD_RELOC_32_PCREL.
1296 Use BFD_RELOC_X86_64_GOTPC32 instead of aborting. Also handle
1297 BFD_RELOC_X86_64_GOTOFF64, BFD_RELOC_X86_64_GOTPC32,
1298 BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64. Also
1299 convert 8-byte pc-relative relocations.
1300 (lex_got): Use BFD_RELOC_X86_64_GOTOFF64 for 64-bit @gotoff.
1301 (i386_validate_fix): Likewise.
1302 (x86_cons): Also handle quad values in 64-bit mode.
1303 (i386_displacement): Also handle BFD_RELOC_X86_64_GOTOFF64.
1304 (md_apply_fix): Include BFD_RELOC_X86_64_DTPOFF64 and
1305 BFD_RELOC_X86_64_TPOFF64 in the TLS check. Also convert BFD_RELOC_64
1306 to pc-relative variant. Also check for BFD_RELOC_64_PCREL.
1310 * config/tc-arm.c (find_real_start): Check S_IS_LOCAL on
1311 symbolP as well as for names with a leading dot. Use ACONCAT.
1312 (md_apply_fix): For branch relocations, only replace value
1313 with fixP->fx_offset (under #ifdef OBJ_ELF) when !fixP->fx_done.
1314 (arm_force_relocation): Remove #ifdef OBJ_ELF case.
1315 * config/tc-arm.h (LOCAL_LABEL): Remove unnecessary parentheses.
1316 (LOCAL_LABEL_PREFIX): Don't define.
1320 * config/tc-hppa.c (pa_block): Allocate just one byte for the
1326 * config/tc-ia64.c (slot_index): Revert last change. If first_frag
1327 is NULL, then emit a warning, and return the current index.
1332 * config/tc-m68k.c (m68k_ip): Test for insn compatiblity using a
1333 temporary copy of the operands array so that changes can be safely
1334 backed out if the insn does not match.
1335 (m68k_compare_opcode): Shortcut the test when the parameters are
1336 the same. Return 1 if the names match but the second opcode is
1337 further on in the array than the first.
1342 * config/tc-ia64.c (slot_index): Check for a NULL first_frag.
1346 * config/tc-m32r.c (use_parallel): Change default value from 1 to 0.
1352 * configure.in: Add ms1 case.
1354 * configure: Regenerate.
1356 * configure.tgt: Add ms1 case.
1360 * config/tc-xtensa.h (resource_table): Change units to unsigned chars.
1361 * config/tc-xtensa.c (new_resource_table): Likewise.
1362 (resize_resource_table): Likewise.
1363 (release_resources): Fix assertion for unsigned values.
1367 * cgen.c, cgen.h, tc.h, write.c, config/obj-coff.c
1368 * config/tc-a29k.c, config/tc-alpha.c, config/tc-alpha.h
1369 * config/tc-arc.c, config/tc-arc.h, config/tc-arm.c
1370 * config/tc-arm.h, config/tc-avr.c, config/tc-avr.h
1371 * config/tc-cris.c, config/tc-crx.c, config/tc-d10v.c
1372 * config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h
1373 * config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.h
1374 * config/tc-frv.c, config/tc-frv.h, config/tc-h8300.c
1375 * config/tc-h8500.c, config/tc-hppa.c, config/tc-hppa.h
1376 * config/tc-i370.c, config/tc-i370.h, config/tc-i386.c
1377 * config/tc-i386.h, config/tc-i860.c, config/tc-i860.h
1378 * config/tc-i960.c, config/tc-i960.h, config/tc-ia64.c
1379 * config/tc-ip2k.c, config/tc-ip2k.h, config/tc-iq2000.c
1380 * config/tc-iq2000.h, config/tc-m32r.c, config/tc-m32r.h
1381 * config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c
1382 * config/tc-m68k.h, config/tc-m88k.c, config/tc-maxq.c
1383 * config/tc-mcore.c, config/tc-mcore.h, config/tc-mips.c
1384 * config/tc-mips.h, config/tc-mmix.c, config/tc-mn10200.c
1385 * config/tc-mn10300.c, config/tc-msp430.c, config/tc-ns32k.c
1386 * config/tc-openrisc.h, config/tc-or32.c, config/tc-or32.h
1387 * config/tc-pdp11.c, config/tc-pj.c, config/tc-pj.h
1388 * config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c
1389 * config/tc-s390.h, config/tc-sh64.c, config/tc-sh.c
1390 * config/tc-sh.h, config/tc-sparc.c, config/tc-sparc.h
1391 * config/tc-tahoe.c, config/tc-tic30.c, config/tc-tic4x.c
1392 * config/tc-tic54x.c, config/tc-tic80.c, config/tc-v850.c
1393 * config/tc-v850.h, config/tc-vax.c, config/tc-vax.h
1394 * config/tc-w65.c, config/tc-xstormy16.c, config/tc-xstormy16.h
1395 * config/tc-xtensa.c, config/tc-z8k.c:
1396 Replace all instances of the string "_apply_fix3" with
1398 * po/POTFILES.in, po/gas.pot: Regenerate.
1402 * Makefile.am: Run "make dep-am".
1403 (POTFILES): Remove GAS_CFILES.
1404 * Makefile.in: Regenerate.
1408 * config/tc-mips.c (mips_cpu_info_table): Add cpu names m4k, 24k,
1409 24kc, 24kf and 24kfx under MIPS32 release 2.
1413 * config/tc-arm.c (CE, C3, CM, UE, UF): Redefine without reference
1414 to their Thumb-enabled equivalents.
1418 * config/tc-mips.c (load_register): Add leading "0x" to the
1419 output of sprintf_vma().
1424 * config/tc-arm.c (TxCE, TxC3, TxCM, TUE, TUF): Remove redundant
1425 test for the presence of thumb version of the parsing functions
1426 since they must always exist and the test generates a compile time
1431 * config/tc-alpha.c (O_lituse_jsrdirect): New.
1432 (alpha_reloc_op): Add it.
1433 (debug_exp): Handle it.
1434 (DUMMY_RELOC_LITUSE_JSRDIRECT): New.
1435 (emit_insn): Handle it.
1436 * doc/c-alpha.texi (Alpha-Relocs): Document lituse_jsrdirect.
1440 * write.c (dump_section_relocs): Convert to ISO-C.
1441 (write_relocs): Avoid signed/unsigned and fprintf argument
1442 warnings in debug code.
1446 * config/tc-arm.h (TC_FIX_TYPE): Change to int.
1447 (TC_INIT_FIX_DATA): Initialize to 0, not NULL.
1448 * config/tc-arm.c (fix_new_arm): Remove now-unnecessary cast.
1449 (md_apply_fix3): Delete fix_is_thumb variable; refer to
1450 fixP->tc_fix_data directly in the sole place it was used.
1451 Explicitly truncate value, *valP, fixP->fx_addnumber, and
1452 fixP->fx_offset to 32 bits, for consistent behavior between 32-
1457 * config/tc-ia64.c (struct proc_pending): New.
1458 (unwind): Replace proc_start with proc_pending.
1459 (unwind_diagnostic): Check unwind.proc_pending.sym.
1460 (dot_proc): Replace unwind.proc_start with unwind.proc_pending.sym.
1461 Check if previous proc not closed. Record all entry points.
1462 (dot_endp): Replace unwind.proc_start with unwind.proc_pending.sym.
1463 Set symbol sizes for entry points recorded in dot_proc. Check
1464 arguments for consistency with respective .proc's.
1465 (md_assemble): Replace unwind.proc_start with
1466 unwind.proc_pending.sym.
1470 * config/tc-ia64.c (emit_one_bundle): Restrict scope of ptr, end_ptr,
1471 and last_ptr. Check all in-use slots for first one with non-NULL
1472 unwind_record. Don't reload end_ptr before second update round.
1476 * config/tc-ia64.c (extra_goodness): Update comment.
1477 (md_begin): Add debugging code to print best_template table.
1481 * config/tc-ia64.c (md_begin): Don't try to match slot 2 of an MLX
1486 * config/tc-ia64.c (ia64_gen_real_reloc_type): Also handle
1487 BFD_RELOC_UNUSED when determining the width of the reloc.
1491 * config/tc-ia64.c (dot_endp): Clear out all three pointers in unwind
1496 * config/tc-ia64.c (dot_radix): Rewrite.
1500 * config/tc-ia64.c (struct unw_rec_list): Remove next_slot_number
1502 (alloc_record): Remove references to next_slot_number and
1504 (emit_one_bundle): Likewise.
1508 * config/tc-v850.c (md_apply_fix3): Pass the address of the
1509 message buffer when invoking the insert function.
1513 * config/tc-hppa.c (pa_ip): Promote architecture from PA 1.0 to 1.1
1514 only if an instruction match is found.
1518 * config/tc-xtensa.c (xg_assemble_vliw_tokens): Change subtraction
1519 to addition in argument to xtensa_dwarf2_emit_insn.
1523 * Makefile.am: Have 'all' depend on 'info'.
1524 * Makefile.in: Regenerate.
1528 * config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.
1532 * config/tc-ppc.c (parse_cpu): Handle "-mpower5".
1533 (md_show_usage): Document it.
1534 (ppc_setup_opcodes): Insert POWER5 mnemonics.
1535 * doc/c-ppc.texi (PowerPC-Opts): Document "-mpower5".
1539 * config/tc-ia64.c (dot_endp): Don't use global symbol for unwind
1540 relocations in unwind section.
1544 * config/tc-v850.c (md_apply_fix3): Only use the insertion routine
1545 if one exists. Ignore any error messages it may produce, just
1546 allow it to perform the insertion.
1550 * hash.c (hash_lookup): Add len parameter. All callers changed.
1551 (hash_find_n): New interface.
1552 * hash.h: Prototype hash_find_n.
1553 * sb.c: Include as.h.
1554 (scrub_from_sb, sb_to_scrub, scrub_position): New statics.
1555 (sb_scrub_and_add_sb): New interface.
1556 * sb.h: Prototype sb_scrub_and_add_sb.
1557 * input-scrub.c (input_scrub_include_sb): Use sb_scrub_and_add_sb.
1559 * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Remove
1560 reference to BFD_RELOC_ARM_GOT12 which is never generated.
1561 * config/tc-arm.c: Rewrite, adding Thumb-2 support.
1565 * doc/Makefile.am (gasver.texi): Don't use $<.
1566 * doc/Makefile.in: Regenerated.
1571 * symbols.c (resolve_symbol_value): Do not move symbols whose
1572 value expression has not been resolved or finalized into the
1573 absolute section as this will confuse other parts of the assembler
1574 into thinking that their value is zero.
1578 * read.c (_find_end_of_line): New.
1579 (find_end_of_line): New.
1580 (HANDLE_CONDITIONAL_ASSEMBLY): Use it.
1581 (read_a_source_file): Use it.
1584 (get_line_sb): Use it.
1585 (s_errwarn): Replace discard_rest_of_line by ignore_rest_of_line.
1586 (s_comm_internal): Likewise.
1588 (s_macro): Likewise.
1589 (s_ignore): Use ignore_rest_of_line.
1590 * read.h (find_end_of_line): Prototype.
1591 (discard_rest_of_line): Remove prototype. #define to
1592 ignore_rest_of_line.
1596 * config/tc-v850,h (TC_FIX_TYPE): Define.
1597 (TC_INIT_FIX_TYPE): Define.
1598 * config/tc-v850.c (md_assemble): When creating a fix record the
1599 operand in the tc_fix_data field.
1600 (md_apply_fix3): When applying a resolved fix use the operand's
1601 insertion procedure to store the value, if the operand has been
1606 * Makefile.am (m68k-parse.c, itbl-parse.c): Update ylwrap
1608 * Makefile.in: Regenerated.
1613 * config/tc-xtensa.c (xtensa_insnbuf_set_operand): Clarify error
1615 (xtensa_mark_zcl_first_insns): Fix incorrect nesting of conditional
1616 for handling RELAX_CHECK_ALIGN_NEXT_OPCODE.
1620 * config/tc-ppc.c (md_apply_fix3): Allow pcrel forms of BFD_RELOC_16,
1621 BFD_RELOC_LO16, BFD_RELOC_HI16 and BFD_RELOC_HI16_S.
1625 * frags.c (frag_grow): Don't be too greedy in allocating memory.
1627 * config/tc-hppa.c (pa_block): Check arguments to .block[z].
1632 * config/tc-mmix.c (mmix_handle_mmixal): Rearrange slightly.
1633 Handle label-without-colon before ordinary dot-pseudo as an
1634 ordinary label. Don't leak memory for label-without-colon alone
1635 on a line. Don't mmixal-munge operands for dot-pseudos.
1639 * macro.c (get_any_string): Remove the two last parameters. Replace
1640 references to the former expand parameter by using macro_alternate.
1641 Simplify loop condition for checking for end-of-string.
1642 (get_string): Remove redunant call to sb_skip_white.
1643 (do_formals): Remove two last arguments to get_any_string.
1644 (macro_expand): Likewise.
1645 (expand_irp): Likewise.
1649 * read.c (s_macro): Move local variable 'local' to smaller scope.
1650 Call sb_kill on it when done.
1654 * config/tc-i386.c (optimize_disp): Discard displacement entirely
1655 when zero and not required by encoding constraints.
1660 * config/tc-sh64.c (sh64_fake_label): New.
1662 * config/tc-sh64.h (TC_FAKE_LABEL): New.
1664 * doc/internals.texi (TC_FAKE_LABEL): Document.
1666 * write.c (TC_FAKE_LABEL): New.
1667 (adjust_reloc_syms): Use it.
1668 (write_object_file): Likewise.
1672 * config/tc-i386.c (parse_insn): Disallow use of prefix separator
1673 and comma in Intel mode.
1677 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Correct 64-bit mode
1678 names to match ABI. Add more registers for 32-bit and 64-bit modes.
1679 Make name array static and const. Adjust lookup to account for NULL
1680 entries (standing for unused register numbers).
1684 * config/tc-i386.c (parse_insn): Consider all matching instructions
1685 when checking for string instruction after string-only prefix.
1690 * config/tc-ia64.c (start_unwind_section): Properly check
1691 comdat group with SHF_GROUP.
1695 * doc/c-xtensa.texi (Literal Directive): Spelling correction.
1699 * config/tc-xtensa.c: Remove excess whitespace.
1700 * config/tc-xtensa.h: Likewise.
1701 * config/xtensa-istack.h: Likewise.
1702 * config/xtensa-relax.c: Likewise.
1703 * config/xtensa-relax.h: Likewise.
1707 * sb.h: Fix formatting of comments.
1708 * sb.c: Fix formatting of comments.
1712 * sb.h (sb_add_buffer): Reintroduce.
1713 * sb.c (sb_add_buffer): Likewise.
1717 * macro.c (new_formal, del_formal): New.
1718 (do_formals): Use new_formal. Check for and parse qualifier. Warn if
1719 required argument has default value. Stop looking for more formal
1720 when there was a vararg one.
1721 (macro_expand_body): Use new_formal and del_formal.
1722 (macro_expand): Likewise. Initialize local variable err. Don't
1723 return immediately when encountering an error. Warn when keyword
1724 argument already had a value assigned. Eliminate duplicate clearing
1725 of argument value. When current positional argument matches parameter
1726 of vararg type, assign to it all the remaining arguments. Issue error
1727 when required parameter does not have value.
1728 (free_macro): Use del_formal.
1729 (expand_irp): Initialize formal type. Free buffers associated with
1730 formal prior to returning.
1731 * macro.h (struct formal_struct): Add new field 'type' with new
1732 enumeration type 'formal_type'.
1733 * doc/as.texinfo: Document macro parameter qualifiers.
1734 * NEWS: Mention new functionality.
1738 * cond.c (s_ifb): New.
1739 * read.c (potable): Add s_ifb as handler for .ifb and .ifnb.
1740 * read.h (s_ifb): Prototype.
1741 * doc/as.texinfo: Document .ifb and .ifnb.
1745 * config/tc-ia64.c (MIN): Undef.
1749 * config/tc-i386.h (ELF_TARGET_FORMAT): Define for TE_VXWORKS.
1753 * config/tc-vax.c (md_assemble): Don't assume a valueT is 4
1758 * Update the address and phone number of the FSF organization in
1759 the GPL notices in the following files:
1760 COPYING, app.c, as.c, as.h, asintl.h, atof-generic.c, bignum.h,
1761 bit_fix.h, cgen.c, cgen.h, cond.c, debug.c, depend.c, dw2gencfi.c,
1762 dw2gencfi.h, dwarf2dbg.c, dwarf2dbg.h, ecoff.c, ecoff.h, ehopt.c,
1763 emul-target.h, emul.h, expr.c, expr.h, flonum-copy.c,
1764 flonum-konst.c, flonum.h, frags.c, frags.h, hash.c, hash.h,
1765 input-file.c, input-file.h, input-scrub.c, itbl-lex.h, itbl-lex.l,
1766 itbl-ops.c, itbl-ops.h, itbl-parse.y, listing.c, listing.h,
1767 literal.c, macro.c, macro.h, messages.c, obj.h, output-file.c,
1768 output-file.h, read.c, read.h, sb.c, sb.h, stabs.c,
1769 struc-symbol.h, subsegs.c, subsegs.h, symbols.c, symbols.h, tc.h,
1770 write.c, write.h, config/aout_gnu.h, config/atof-ieee.c,
1771 config/atof-vax.c, config/itbl-mips.h, config/m68k-parse.h,
1772 config/m68k-parse.y, config/m88k-opcode.h, config/obj-aout.c,
1773 config/obj-aout.h, config/obj-bout.c, config/obj-bout.h,
1774 config/obj-coff.c, config/obj-coff.h, config/obj-ecoff.c,
1775 config/obj-ecoff.h, config/obj-elf.c, config/obj-elf.h,
1776 config/obj-evax.c, config/obj-evax.h, config/obj-hp300.c,
1777 config/obj-hp300.h, config/obj-ieee.c, config/obj-ieee.h,
1778 config/obj-multi.h, config/obj-som.c, config/obj-som.h,
1779 config/tc-a29k.c, config/tc-a29k.h, config/tc-alpha.c,
1780 config/tc-alpha.h, config/tc-arc.c, config/tc-arc.h,
1781 config/tc-arm.h, config/tc-avr.c, config/tc-avr.h,
1782 config/tc-cris.c, config/tc-cris.h, config/tc-crx.c,
1783 config/tc-crx.h, config/tc-d10v.c, config/tc-d10v.h,
1784 config/tc-d30v.c, config/tc-d30v.h, config/tc-dlx.c,
1785 config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1786 config/tc-frv.c, config/tc-frv.h, config/tc-generic.c,
1787 config/tc-generic.h, config/tc-h8300.c, config/tc-h8300.h,
1788 config/tc-h8500.c, config/tc-h8500.h, config/tc-hppa.c,
1789 config/tc-hppa.h, config/tc-i370.c, config/tc-i370.h,
1790 config/tc-i386.c, config/tc-i386.h, config/tc-i860.c,
1791 config/tc-i860.h, config/tc-i960.c, config/tc-i960.h,
1792 config/tc-ia64.c, config/tc-ia64.h, config/tc-ip2k.c,
1793 config/tc-ip2k.h, config/tc-iq2000.c, config/tc-iq2000.h,
1794 config/tc-m32r.c, config/tc-m32r.h, config/tc-m68851.h,
1795 config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c,
1796 config/tc-m68k.h, config/tc-m88k.c, config/tc-m88k.h,
1797 config/tc-maxq.c, config/tc-maxq.h, config/tc-mcore.c,
1798 config/tc-mcore.h, config/tc-mips.c, config/tc-mips.h,
1799 config/tc-mmix.c, config/tc-mmix.h, config/tc-mn10200.c,
1800 config/tc-mn10200.h, config/tc-mn10300.c, config/tc-mn10300.h,
1801 config/tc-msp430.c, config/tc-msp430.h, config/tc-ns32k.c,
1802 config/tc-ns32k.h, config/tc-openrisc.c, config/tc-openrisc.h,
1803 config/tc-or32.c, config/tc-or32.h, config/tc-pdp11.c,
1804 config/tc-pdp11.h, config/tc-pj.c, config/tc-pj.h,
1805 config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c,
1806 config/tc-s390.h, config/tc-sh.c, config/tc-sh.h,
1807 config/tc-sh64.c, config/tc-sh64.h, config/tc-sparc.c,
1808 config/tc-sparc.h, config/tc-tahoe.c, config/tc-tahoe.h,
1809 config/tc-tic30.c, config/tc-tic30.h, config/tc-tic4x.c,
1810 config/tc-tic4x.h, config/tc-tic54x.c, config/tc-tic54x.h,
1811 config/tc-tic80.c, config/tc-tic80.h, config/tc-v850.c,
1812 config/tc-v850.h, config/tc-vax.c, config/tc-vax.h,
1813 config/tc-w65.c, config/tc-w65.h, config/tc-xstormy16.c,
1814 config/tc-xstormy16.h, config/tc-xtensa.c, config/tc-xtensa.h,
1815 config/tc-z8k.c, config/tc-z8k.h, config/te-386bsd.h,
1816 config/te-freebsd.h, config/te-hp300.h, config/te-hppa.h,
1817 config/te-ic960.h, config/te-irix.h, config/te-nbsd.h,
1818 config/te-netware.h, config/te-sparcaout.h, config/te-sun3.h,
1819 config/te-tmips.h, config/te-vxworks.h, config/vax-inst.h,
1820 config/xtensa-istack.h, config/xtensa-relax.c,
1821 config/xtensa-relax.h, doc/fdl.texi
1825 * config/tc-arm.c (arm_opts): Make -mlittle-endian switch set
1826 the target_big_endian variable to false.
1830 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Correct section
1831 list traversal. Use bfd_section_list_prepend.
1832 * config/tc-mmix.c (mmix_frob_file): Don't needlessly iterate
1833 over the section list.
1834 * config/tc-xtensa.c (xtensa_remove_section): Delete.
1835 (xtensa_insert_section): Delete.
1836 (xtensa_move_seg_list_to_beginning): Use bfd_section_list_remove
1837 and bfd_section_list_prepend.
1838 (xtensa_reorder_seg_list): Use bfd_section_list_remove and
1839 bfd_section_list_insert_after.
1843 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Fix invocations
1844 of bfd_section_list... macros.
1845 * config/tc-mmix.c (mmix_frob_file): Likewise.
1846 * config/tc-xtensa.c (xtensa_remove_section): Likewise.
1847 (xtensa_insert_section): Likewise.
1849 * macro.c (macro_hash): Remove static.
1850 * macro.h (macro_hash): Provide an external declaration.
1854 * write.c (write_object_file): Use bfd_section_double_list_remove
1859 * doc/Makefile.am (gasver.texi): Correct quoting.
1860 * doc/Makefile.in: Regenerated.
1864 * configure.tgt: Add h8300*-*-rtemscoff.
1865 Switch h8300*-*-rtems* to elf.
1869 * hash.c: Undo the last change.
1874 * doc/Makefile.am (gasver.texi): Depend on bfd/configure instead
1876 (DISTCLEANFILES): Remove.
1877 (MAINTAINERCLEANFILES): Add asconfig.texi.
1878 * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
1882 * Makefile.am (GAS_CFILES): Remove bignum-copy.c.
1883 (GENERIC_OBJS): Likewise, remove bignum-copy.o.
1884 (bignum-copy.o): Remove.
1885 * Makefile.in: Regenerate.
1886 * makefile.vms (OBJS): Remove bignum-copy.obj.
1887 * symbols.h (local_symbol_make): Remove declaration.
1888 (verify_symbol_chain_2): Likewise.
1889 * symbols.c (local_symbol_make): Make static.
1890 (max_indent_level): Likewise.
1891 (verify_symbol_chain_2): Remove.
1892 * macro.c (macro_hash): Make static.
1893 * messages.c (fprint_value): Remove.
1894 * read.h (get_absolute_expr): Remove.
1895 (emit_leb128_expr): Likewise.
1896 (do_s_func): Likewise.
1897 * read.c (do_s_func): Make static.
1898 (emit_leb128_expr): Likewise.
1899 (get_absolute_expr): Likewise.
1900 * as.h (as_howmuch): Remove declaration.
1901 (fprint_value): Likewise.
1902 * as.c (myname): Make static.
1903 * input-scrub.c (as_howmuch): Remove.
1904 (as_1_char): Likewise.
1905 * input-file.h (input_file_is_open): Remove.
1906 * input-file.c (input_file_is_open): Likewise.
1907 * expr.h (expr_build_unary): Remove declaration.
1908 (expr_build_binary): Likewise.
1909 * expr.c (expr_build_unary): Remove.
1910 (expr_build_binary): Likewise.
1911 * hash.h (hash_replace): Remove declaration.
1912 (hash_delete): Likewise.
1913 * hash.c (hash_replace): Remove.
1914 (hash_delete): Likewise.
1915 * bignum-copy.c (bignum_copy): Move from here ..
1916 * config/tc-vax.c (bignum_copy): .. to here.
1917 * bignum.h (LOG_TO_BASE_2_OF_10): Remove.
1918 (bignum_copy): Remove extern declaration.
1919 * sb.h (string_count): Remove extern declaration.
1920 (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise.
1921 (sb_name): Likewise.
1922 * sb.c (dsize): Replace preprocessor macro with static int.
1923 (string_count): Make static.
1924 (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise.
1925 (sb_name): Likewise.
1926 * config/obj-coff.c (dim_index): Make static.
1927 * config/tc-i386.c (GOT_symbol): Likewise.
1928 (output_invalid_buf): Likewise.
1929 * doc/internals.texi (Warning and error messages): Remove the
1930 prototype for fprint_value.
1938 * config/obj-multi.h (FAKE_LABEL_NAME): Defined.
1940 * read.c (pseudo_set): Disallow symbol set to common symbol.
1943 * write.c (write_object_file): Report common symbol name when
1944 disallowing local symbol set to common symbol.
1945 (adjust_reloc_syms): Disallow local symbol set to undefined
1950 * macro.c (macro_expand_body): Replace locals indicator parameters
1951 with actual macro_entry. New local variables macro_line and err.
1952 Don't return when encountering an error, just record the fact.
1953 Detect local symbol name colliding with parameter. Track line number
1954 inside of macro expansion.
1955 (do_formals): Move local variable name to wider scope. Check
1956 parameter of the same name doesn't already exist. In MRI mode, also
1957 check it doesn't collide with the argument count pseudo-parameter).
1958 (define_macro): Add file and line number parameters. Remove local
1959 variable namestr. New local variable error. Initialize macro_entry
1960 members file, line, and name. Don't return when encountering an
1961 error, just record the fact. Use %s in some diagnostics for read.c
1962 to insert the macro name. Free macro_entry on error.
1963 (macro_expand): Pass macro_entry to macro_epand_body. Don't return
1964 when encountering an error, just record the fact.
1965 (expand_irp): Don't return when encountering an error, just record
1967 * macro.h (macro_struct): New members name, file, and line.
1968 (define_macro): Add file and line number parameters.
1969 * read.c (s_macro): Pass file and line to define_macro. Tag warning
1970 regarding pseudo-op redefinition with the file/line that macro
1971 definition started at.
1975 * config/tc-xtensa.c (LOOKAHEAD_ALIGNER): Delete macro.
1976 (future_alignment_required): Remove ifdefs that use it.
1980 * config/tc-xtensa.c (xg_get_build_instr_size): Remove.
1981 (xg_is_narrow_insn, xg_expand_narrow): Remove. Merge into...
1982 (xg_is_single_relaxable_insn): ...here. Add "targ" and "narrow_only"
1984 (xg_assembly_relax, xg_find_narrowest_format, relaxation_requirements,
1985 convert_frag_narrow): Use new version of xg_is_single_relaxable_insn.
1989 * config/tc-z8k.c (md_assemble): Fix buffer overrun in operand[]
1994 * config/obj-aout.h (S_IS_EXTERN): Removed.
1995 * config/obj-bout.h (S_IS_EXTERN): Likewise.
1996 * config/obj-coff.h (S_IS_EXTERN): Likewise.
1997 * symbols.c (S_IS_EXTERN): Likewise.
1998 * symbols.h (S_IS_EXTERN): Likewise.
2000 * config/tc-alpha.c (tc_gen_reloc): Replace S_IS_EXTERN with
2002 * config/tc-d10v.c (md_apply_fix3): Likewise.
2003 * config/tc-ia64.c (ia64_fix_adjustable): Likewise.
2004 * config/tc-iq2000.c (iq2000_fix_adjustable): Likewise.
2005 * config/tc-m32r.c (m32r_fix_adjustable): Likewise.
2006 * config/tc-mmix.c (mmix_adjust_symtab): Likewise.
2007 * config/tc-sh64.c (shmedia_frob_file_before_adjust): Likewise.
2008 (shmedia_md_convert_frag): Likewise.
2009 * symbols.c (print_symbol_value_1): Likewise.
2010 * write.c (write_object_file): Likewise.
2014 * config/tc-xtensa.c (get_aligned_diff): Change type of
2015 branch_align to offsetT so that its signedness matches that of
2018 * config/tc-mips.c (macro): Use sprintf_vma to convert a > 32 bit
2019 number into a readable string.
2020 (load_register): Likewise.
2024 * config/tc-ia64.c (specify_resource): Initialize all of tmpl.
2028 * config/tc-sparc.c (md_assemble): If sparc_ip gives us a
2029 NULL insn, exit early. Remove now spurious NULL checks.
2030 (sparc_ip): Use as_bad for unknown opcode errors, set *pinsn
2035 * symbols.h (symbol_find_base): Remove prototype.
2036 * symbols.c (save_symbol_name): Remove code section conditional upon
2038 (symbol_find): Remove.
2039 (symbol_find_base): Rename to symbol_find.
2040 * subsegs.c (section_symbol): Replace use of symbol_find_base with
2042 * config/obj-coff.c (tag_insert): Remove code section conditional
2043 upon STRIP_UNDERSCORE.
2044 (obj_coff_def): Likewise.
2045 (obj_coff_endef): Replace use of symbol_find_base with symbol_find.
2046 (coff_frob_symbol): Likewise.
2047 (yank_symbols): Likewise.
2048 (c_section_symbol): Likewise.
2049 * config/obj-coff.h (DO_NOT_STRIP): Remove.
2050 * config/tc-arm.c (symbol_locate): Remove code section conditional
2051 upon STRIP_UNDERSCORE.
2052 * config/tc-h8300.h (DO_NOT_STRIP): Remove.
2053 * config/tc-h8500.h (DO_NOT_STRIP): Remove.
2054 * config/tc-sh.h (DO_NOT_STRIP): Remove.
2055 * config/tc-w65.h (DO_NOT_STRIP): Remove.
2056 * config/tc-z8k.h (DO_NOT_STRIP): Remove.
2060 * config/tc-ia64.c (md_assemble): Fix error message for wrong
2061 access to application registers.
2065 * config/te-sysv32.h: Remove.
2066 * Makefile.am (TARG_ENV_HFILES): Remove reference to
2068 * Makefile.in (TARG_ENV_HFILES): Likewise.
2073 * config/tc-ia64.c (ia64_canonicalize_symbol_name): Re-allow zero-
2078 * config/tc-i386.c (md_begin): Allow hyphens in mnemonics.
2082 * config/tc-mips.c (normalize_constant_expr): Don't check for
2084 (check_absolute_expr): Only call normalize_constant_expr() if
2086 (mips_ip): Likewise.
2088 * config/tc-mips.c (check_absolute_expr): Fix formatting.
2092 * macro.c (free_token): New, freeing all the memory associated with a
2094 (do_formals): Move initializers to ...
2095 (define_macro): ... here.
2096 (delete_macro): Convert passed in name to lower case. Warn when
2097 purging macro that doesn't exist. Use hash_jam instead of hash_delete.
2101 * config/tc-mips.c (normalize_constant_expr): Fix formatting.
2105 * config/obj-elf.c (obj_elf_struct): New.
2106 (elf_pseudo_table). Use it for .offset and .struct.
2111 * config/tc-xtensa.c (get_aligned_diff): Handle target_size larger
2112 than the section alignment.
2117 * config/tc-xtensa.h (struct xtensa_frag_type): Add lit_frchain field.
2118 * config/tc-xtensa.c (xg_translate_sysreg_op,
2119 xtensa_translate_old_userregs_ops,
2120 xtensa_find_unaligned_branch_targets,
2121 xtensa_find_unaligned_loops, xtensa_fix_close_loop_end_frags,
2122 relax_frag_add_nop): Support 64-bit host.
2123 (xtensa_mark_literal_pool_location, xtensa_move_literals): Use
2124 tc_frag_data lit_frchain and lit_seg fields instead of fr_var.
2128 * configure.tgt: Add support for OpenBSD/sparc ELF.
2130 * configure.tgt: Set emulation for mips-*-openbsd*.
2131 Remove broken mips-dec-openbsd* config.
2132 * configure.in: Set default ABI for mips64-*-openbsd*.
2133 * configure: Regenerate.
2137 * config/tc-mips.c (macro) [ldd_std]: Don't attempt the GP
2138 optimization for constant addresses.
2142 * as.c (main): Move parse_args before symbol_begin and frag_init
2143 so that the hash table size can be set before it is used.
2144 * hash.c: Use an unsigned long type for the size of the hash
2146 * hash.h (set_gas_hash_table_size): Update the prototype.
2150 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
2151 * acinclude.m4: Include ../bfd/warning.m4.
2152 * configure.in: Invoke AM_BINUTILS_WARNINGS.
2153 * Makefile.in: Regenerate.
2154 * configure: Regenerate.
2155 * doc/Makefile.in: Regenerate.
2159 * config/tc-mips.c (IS_ZEXT_32BIT_NUM): New macro.
2160 (normalize_address_expr): New function to sign-extend address
2161 offsets that fit into 32 bits in 32-bit mode.
2162 (macro_build_ldst_constoffset): Use normalize_address_expr()
2163 instead of a handcoded sequence.
2164 (load_register): Likewise. Report oversized numbers in a useful
2166 (macro) [ld_st, ldd_std]: Reject all oversized offsets, not only
2167 for constant addresses. Report oversized numbers in a useful way.
2168 (mips_ip): Use normalize_address_expr() for addresses.
2172 * config/tc-i386.c (output_insn): Handle VIA PadLock instructions
2173 similar to other instructions now that they're marked as ImmExt.
2177 * hash.c (DEFAULT_SIZE): Delete. Replace with:
2178 (gas_hash_table_size): New static variable.
2179 (set_gas_hash_table_size): New function: Records a requested size
2180 for the hash tables.
2181 (get_gas_hash_table_size): New function: Return a prime number
2182 near the requested size of the hash table.
2183 (hash_new): Use get_gas_hash_table_size.
2184 * hash.h: Add a prototype for set_gas_hash_table_size.
2185 * as.c (show_usage): Add description of new switches: --hash-size
2186 and --reduce-memory-overheads.
2187 (option_values): Add OPTION_HASH_TABLE_SIZE and
2188 OPTION_REDUCE_MEMORY_OVERHEADS.
2189 (std_longpopts): Add entries for the new options.
2190 (parse_args): Handle the new options.
2191 * Makefile.am: Add a dependency of as.c on hash.h.
2192 * Makefile.in: Regenerate.
2193 * doc/as.texinfo: Document the new switches.
2194 * NEWS: Mention the new switches.
2199 * config/tc-hppa.c (pre_defined_registers): Fix %farg[0-3]
2204 * Makefile.am: Run "make dep-am".
2205 * Makefile.in: Regenerate.
2210 * config/tc-xtensa.c (check_t1_t2_reads_and_writes): Fix typo.
2214 * configure.tgt (generic_target): Add support for OpenBSD/i386 ELF.
2218 * NEWS: Mention these changes and their effects.
2219 * macro.c (get_token): Use is_name_beginner/is_part_of_name/
2221 (check_macro): Likewise.
2222 (buffer_and_nest): Likewise. Permit multiple labels. Don't discard
2223 labels together with the closing pseudo-op.
2224 (macro_expand_body): Adjust comment. Range-check input before use.
2225 Adjust mis-spelled diagnostic. Use is_name_beginner.
2226 * read.c (try_macro): New.
2227 (read_a_source_file): New static variable last_eol. Don't list
2228 macro expansion lines more than once. Call try_macro.
2229 (s_macro): Set section of line_label to absolute instead of undefined.
2230 * doc/as.texinfo: Add information on the caveats of these changes.
2234 * symbols.c (symbol_X_add_number): Change return type to "offsetT *".
2235 * symbols.h (symbol_X_add_number): Update prototype.
2239 * symbols.c (symbol_X_add_number): Fix warning.
2243 * config/tc-m68k.c (md_begin): Support 64bit host.
2244 (get_num): Support 64bit BFD on 32bit host.
2248 * config/tc-mips.c (md_apply_fix3): Fix typos in BFD_RELOC_64.
2252 * read.c (assign_symbol): Remove const from parm. Fix xcalloc
2253 call. Don't do the COFF hacks for multi-emulation gas. Move
2254 demand_empty_rest_of_line back to caller.
2255 (s_set, equals): demand_empty_rest_of_line here.
2258 * as.h (rs_dummy): Define.
2259 * symbols.c (symbol_X_add_number): New function.
2260 * symbols.h (symbol_X_add_number): Declare.
2261 * stabs.c (aout_process_stab): Tidy symbol frag setting.
2262 * read.c (assign_symbol): New function, split out from s_set.
2263 Use symbol_find_or_make. Leave fr_type of dummy frag as rs_dummy.
2264 Fix COFF hacks for multi-emulation gas.
2265 (s_set): Call assign_symbol. Remove "register" keyword.
2266 (set_zero_frag): New function.
2267 (pseudo_set): Always check for assignment to section syms.
2268 Always set segment and frag of symbol, and likewise extern for
2269 aout/bout. Handle assignment of sym=sym+/-const specially. Don't
2270 special case exp.X_add_number non-zero for O_symbol expressions.
2271 (equals): Use assign_symbol.
2275 * config/tc-xtensa.c (xtensa_create_xproperty_segments): Skip
2280 * config/tc-i386.c (tc_gen_reloc): Don't turn
2281 BFD_RELOC_X86_64_32S into BFD_RELOC_32.
2285 * po/rw.po: New translation: Kinyarwanda
2286 * configure.in (ALL_LINGUAS): Add rw
2287 * configure: Regenerate.
2292 * config/tc-xtensa.c (branch_align_power): New.
2293 (xtensa_find_unaligned_branch_targets, get_aligned_diff,
2294 future_alignment_required): Use branch_align_power to check section
2295 alignment as well as xtensa_fetch_width when aligning branch targets.
2299 * config/tc-xtensa.c: Warning fixes throughout.
2300 (xtensa_fetch_width): Change to unsigned.
2301 (assemble_nop, xtensa_find_unaligned_branch_targets,
2302 xtensa_find_unaligned_loops, xg_assemble_vliw_tokens,
2303 is_narrow_branch_guaranteed_in_range, xtensa_fix_close_loop_end_frags,
2304 min_bytes_to_other_loop_end, unrelaxed_frag_min_size,
2305 unrelaxed_frag_max_size, xtensa_fix_short_loop_frags,
2306 count_insns_to_loop_end, unrelaxed_frag_min_insn_count,
2307 get_text_align_max_fill_size, get_text_align_nop_count,
2308 get_text_align_nth_nop_size, get_noop_aligned_address,
2309 get_aligned_diff, convert_frag_align_next_opcode,
2310 convert_frag_immed_finish_loop, xtensa_create_property_segments,
2311 xtensa_create_xproperty_segments, xt_block_aligned_size): Clean up
2312 types, avoiding size_t and using offsetT and addressT appropriately.
2313 (get_text_align_power): Clean up types. Avoid incorrect bound.
2314 (get_text_align_fill_size): Clean up types. Restructure for clarity.
2318 * config/tc-ia64.c (start_unwind_section): Undo the change
2320 (generate_unwind_image, dot_endp): Likewise.
2324 * config/tc-ia64.c (ia64_handle_align): Move le_nop and
2325 le_nop_stop arrays and initializers to file scope.
2326 (md_begin): When generating code for anything other than
2327 Itanium 1, use MMI instead of MFI NOP bundles as a filler.
2331 * config/tc-i386.c (output_imm): Also set sign flag for 64-bit push
2336 * NEWS: Mention [fdgh]_floating.
2337 * config/atof-vax.c: Fix some whitespace.
2338 * config/tc-vax.c (md_pseudo_table): Add "[fdgh]_floating".
2342 * configure.in: Add a check for <unistd.h> providing a prototype
2343 for getopt() which is compatible with the one in
2344 include/getopt.h. If so then define HAVE_DECL_GETOPT.
2345 * configure: Regenerate.
2346 * config.in (HAVE_DECL_GETOPT): Add.
2350 * config/tc-i386.c (s_bss): Call obj_elf_section_change_hook.
2354 * config/tc-i386.c (md_apply_fix3): Also handle BFD_RELOC_X86_64_32S.
2355 (tc_gen_reloc): Handle BFD_RELOC_X86_64_32S in the default case.
2359 * config/tc-arm.c (arm_adjust_symtab): Rename
2360 bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
2364 * config/tc-arm.c (mapping_state): Change documentation in function
2365 comment to cross-reference spec instead. Change type of mapping symbols
2367 (arm_adjust_symtab): Don't change type of mapping symbols here.
2371 * as.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
2372 * config.in: Regenerate.
2373 * configure: Regenerate.
2374 * configure.in: Check for ffs decl and alphabetize.
2379 * config/tc-arm.c (arm_parse_reloc): Add TLS relocations.
2380 (md_apply_fix3): Mark TLS symbols.
2381 (tc_gen_reloc): Handle TLS relocations.
2382 (arm_fix_adjustable): Ignore TLS relocations.
2383 (s_arm_elf_cons): Support expressions after decorated symbols.
2387 * config/tc-arm.c (marked_pr_dependency): New bitmap, bit N indicates
2388 whether personality routine index N has been output for this section.
2389 (mapping_state): tc_segment_info_data now struct not enum.
2390 (arm_elf_change_section): Likewise, and marked_pr_dependency is now
2391 handled on section change.
2392 (create_unwind_entry): Previous code to output dependency removed.
2393 (s_arm_unwind_fnend): Output dependency if it hasn't been done already
2395 * config/tc-arm.h (TC_SEGMENT_INFO_TYPE): Redefined as struct
2396 arm_segment_info_type.
2397 (arm_segment_info_type): New struct.
2402 * config/tc-xtensa.c (do_align_targets): Update comment.
2403 (xtensa_frob_label): Compute "freq" before possibly switching frags.
2404 Insert a LOOP_END frag before every loop target, and do not overload
2405 DESIRE_ALIGN_IF_TARGET frags with loop end information.
2406 (xg_assemble_vliw_tokens): Use do_align_targets.
2407 (xtensa_fix_target_frags): Remove code to convert a
2408 DESIRE_ALIGN_IF_TARGET frag to a LOOP_END frag when there is a
2409 negatable branch at the end of a loop.
2410 (frag_can_negate_branch): Delete.
2416 NEWS: Mention "-mtune=[itanium1|itanium2]".
2418 * config/tc-ia64.c (md): Add tune.
2419 (md_parse_option): Accepted "-mtune=[itanium1|itanium2]".
2420 (md_show_usage): Add "-mtune=[itanium1|itanium2]".
2421 (extra_goodness): Prefer M- and I-unit NOPs for itanium2. F and
2422 B unit NOPs are discouraged for McKinley-derived cores.
2423 (md_begin): Don't hardcode the "extra_goodness()" function in
2425 (ia64_init): Set md.tune to itanium2.
2427 * doc/as.texinfo: Add -mtune=[itanium1|itanium2]".
2428 * doc/c-ia64.texi: Likewise.
2432 * config/obj-coff.c (coff_frob_symbol): When crashing because of a
2433 bad C_EFCN symbol, print its name.
2437 * config/tc-xtensa.c (use_longcalls): Delete.
2438 (xg_symbolic_immeds_fit): Check for direct calls and return TRUE if
2439 the use_longcalls flag is set. Do this before checking the segment.
2440 (xg_expand_assembly_insn): Rearrange to use new do_expand flag. Never
2441 expand direct calls at this point.
2442 (xtensa_set_frag_assembly_state): Set use_longcalls flag.
2443 (xtensa_find_unmarked_state_frags): Likewise.
2444 (md_assemble): Do not disable longcalls by setting is_specific_opcode.
2445 (xg_assemble_vliw_tokens): Switch frags when use_longcalls changes.
2446 (convert_frag_immed): Remove unnecessary check of is_specific_opcode.
2447 * config/tc-xtensa.h (xtensa_frag_type): Add use_longcalls flag.
2451 * config/tc-mmix.c, config/tc-mmix.h: Convert to ISO C90.
2455 * config/tc-cris.h: Convert to ISO C90.
2456 * config/tc-cris.c: Ditto.
2457 (md_estimate_size_before_relax): Remove obsolete comment for
2458 parameter "segment_type".
2459 (md_begin): Document reason for cast of hash_insert argument.
2460 (md_atof): Correct type of parameter "type".
2464 * write.h (bit_fix_new): Remove redundant prototype.
2465 * config/atof-ieee.c: Convert to ISO-C90 and fix formatting.
2466 * config/obj-aout.c: Convert to ISO-C90 and fix formatting.
2467 * config/obj-aout.h: Convert to ISO-C90 and fix formatting.
2468 * config/obj-bout.c: Convert to ISO-C90 and fix formatting.
2469 * config/obj-bout.h: Convert to ISO-C90 and fix formatting.
2470 * config/obj-ecoff.c: Convert to ISO-C90 and fix formatting.
2471 * config/obj-ecoff.h: Convert to ISO-C90 and fix formatting.
2472 * config/obj-som.c: Convert to ISO-C90 and fix formatting.
2473 * config/obj-som.h: Convert to ISO-C90 and fix formatting.
2474 * config/tc-a29k.c: Convert to ISO-C90 and fix formatting.
2475 * config/tc-a29k.h: Convert to ISO-C90 and fix formatting.
2476 * config/tc-alpha.c: Convert to ISO-C90 and fix formatting.
2477 * config/tc-alpha.h: Convert to ISO-C90 and fix formatting.
2478 * config/tc-arc.c: Convert to ISO-C90 and fix formatting.
2479 * config/tc-arc.h: Convert to ISO-C90 and fix formatting.
2480 * config/tc-d10v.c: Convert to ISO-C90 and fix formatting.
2481 * config/tc-d10v.h: Convert to ISO-C90 and fix formatting.
2482 * config/tc-d30v.c: Convert to ISO-C90 and fix formatting.
2483 * config/tc-d30v.h: Convert to ISO-C90 and fix formatting.
2484 * config/tc-dlx.c: Convert to ISO-C90 and fix formatting.
2485 * config/tc-dlx.h: Convert to ISO-C90 and fix formatting.
2486 * config/tc-fr30.c: Convert to ISO-C90 and fix formatting.
2487 * config/tc-fr30.h: Convert to ISO-C90 and fix formatting.
2488 * config/tc-h8500.c: Convert to ISO-C90 and fix formatting.
2489 * config/tc-h8500.h: Convert to ISO-C90 and fix formatting.
2490 * config/tc-i370.c: Convert to ISO-C90 and fix formatting.
2491 * config/tc-i370.h: Convert to ISO-C90 and fix formatting.
2492 * config/tc-i960.c: Convert to ISO-C90 and fix formatting.
2493 * config/tc-ip2k.c: Convert to ISO-C90 and fix formatting.
2494 * config/tc-ip2k.h: Convert to ISO-C90 and fix formatting.
2495 * config/tc-m32r.c: Convert to ISO-C90 and fix formatting.
2496 * config/tc-m32r.h: Convert to ISO-C90 and fix formatting.
2497 * config/tc-m88k.c: Convert to ISO-C90 and fix formatting.
2498 * config/tc-m88k.h: Convert to ISO-C90 and fix formatting.
2499 * config/tc-mcore.c: Convert to ISO-C90 and fix formatting.
2500 * config/tc-mcore.h: Convert to ISO-C90 and fix formatting.
2501 * config/tc-mn10200.c: Convert to ISO-C90 and fix formatting.
2502 * config/tc-ns32k.c: Convert to ISO-C90 and fix formatting.
2503 * config/tc-ns32k.h: Convert to ISO-C90 and fix formatting.
2504 * config/tc-openrisc.c: Convert to ISO-C90 and fix formatting.
2505 * config/tc-openrisc.h: Convert to ISO-C90 and fix formatting.
2506 * config/tc-or32.c: Convert to ISO-C90 and fix formatting.
2507 * config/tc-or32.h: Convert to ISO-C90 and fix formatting.
2508 * config/tc-pdp11.h: Convert to ISO-C90 and fix formatting.
2509 * config/tc-pj.c: Convert to ISO-C90 and fix formatting.
2510 * config/tc-pj.h: Convert to ISO-C90 and fix formatting.
2511 * config/tc-tahoe.c: Convert to ISO-C90 and fix formatting.
2512 * config/tc-tic80.c: Convert to ISO-C90 and fix formatting.
2513 * config/tc-tic80.h: Convert to ISO-C90 and fix formatting.
2514 * config/tc-v850.c: Convert to ISO-C90 and fix formatting.
2515 * config/tc-v850.h: Convert to ISO-C90 and fix formatting.
2516 * config/tc-w65.c: Convert to ISO-C90 and fix formatting.
2517 * config/tc-w65.h: Convert to ISO-C90 and fix formatting.
2518 * config/tc-xstormy16.c: Convert to ISO-C90 and fix formatting.
2519 * config/tc-xstormy16.h: Convert to ISO-C90 and fix formatting.
2523 * config/tc-arm.c (arm_adjust_symtab): Fetch elf_sym's binding
2524 attributes properly.
2529 * configure.tgt: Accept any C library to accompany a GNU Linux
2530 implementation, not just the GNU C library.
2531 * configure.in: Likewise.
2532 * configure: Regenerate.
2536 * config/tc-tic30.c: Convert to ISO C90 formatting.
2537 * config/tc-tic30.h: Convert to ISO C90 formatting.
2538 * config/tc-pdp11.c: Convert to ISO C90 formatting.
2539 * config/atof-vax.c: Convert to ISO C90 formatting.
2543 * config/tc-mips.c (mips_frob_file): Sort BFD_RELOC_MIPS16_LO16
2544 relocations correctly as well.
2545 (mips_fix_adjustable): Don't make BFD_RELOC_MIPS16_LO16
2546 relocations in mergeable sections section-relative either.
2550 * config/tc-xtensa.c (md_apply_fix3): Recognize XTENSA_PLT relocations.
2554 * config/tc-sh.c (sh_elf_final_processing): Fix compile time
2555 warning by providing a prototype for sh_symbian_find_elf_flags.
2557 * cgen.c (gas_cgen_parse_operand): Fix typo introduced by
2562 * configure.tgt: Handle setting of bfd_gas for fmt=multi targets
2563 along with other formats that set bfd_gas. Remove unnecessary
2564 setting of bfd_gas. Delete strongarm cases in generic_target
2570 * config/tc-m68k.c (TRUNC, SEXT): Define.
2571 (issbyte, isubyte, issword, isuword, isbyte, isword): Use the above.
2572 (m68k_ip): Truncate or sign extend expressions as appropriate.
2573 (get_num): Likewise.
2574 (md_apply_fix3): Use SEXT.
2578 * Makefile.am (OBJ_FORMAT_CFILES): Prune config/obj-vms.c.
2579 (OBJ_FORMAT_HFILES): Prune config/obj-vms.h.
2580 (obj-vms.o): Delete rule.
2582 * Makefile.in: Regenerate.
2583 * aclocal.m4: Regenerate.
2584 * doc/Makefile.in: Regenerate.
2585 * po/POTFILES.in: Regenerate.
2589 * config/tc-m68k.c (m68k_elf_final_processing): Set file specific
2590 flag for coldfire v4e.
2594 * config/tc-xtensa.c (xg_apply_tentative_value): Rename to
2595 xg_apply_fix_value and return a value to indicate success.
2596 (md_pcrel_from): Skip check of fx_done. Return 0 if not PC-relative.
2597 (xtensa_force_relocation): Remove checks for VTABLE relocs.
2598 (xtensa_validate_fix_sub): New.
2599 (xtensa_fix_adjustable): Remove check for external or weak symbols.
2600 (tc_gen_reloc): Move code to handle difference of symbols and code to
2601 apply tentative fix values to ...
2602 (md_apply_fix3): ...here. Enable standard overflow checks for simple
2603 8, 16, and 32 bit relocations. Apply fixes for slot-specific
2604 relocations when linkrelax flag is not set.
2605 * config/tc-xtensa.h (xtensa_validate_fix_sub): Add prototype.
2606 (TC_FORCE_RELOCATION_SUB_SAME, TC_VALIDATE_FIX_SUB): Define.
2610 * config/tc-i386.c (i386_scale): Beautify error message.
2611 (Intel syntax comments): Update.
2612 (struct intel_parser_s): Add fields in_offset, in_bracket, and
2614 (intel_e04_1, intel_e05_1, intel_e05_1, intel_e09_1, intel_e10_1):
2615 Remove declarations.
2616 (intel_bracket_expr): Declare.
2617 (i386_intel_operand): Initialize new intel_parser fields. Wrap most
2618 of the function body in a loop allowing to split an operand into two.
2619 Replace calls to malloc and checks of it returning non-NULL with
2620 calls to xmalloc/xstrdup.
2621 (intel_expr): SHORT no longer handled here. Add comment indicating
2622 comparison ops need implementation.
2623 (intel_e04, intel_e04_1): Combine, replace recursion with loop.
2624 Check right operand of - does not specify a register when parsing
2625 the address of a memory reference.
2626 (intel_e05, intel_e05_1): Combine, replace recursion with loop.
2627 Check operands do not specify a register when parsing the address of
2629 (intel_e06, intel_e06_1): Likewise.
2630 (intel_e09, intel_e09_1): Combine, replace recursion with loop. Also
2631 handle SHORT as well as unary + and -. Don't accept : except for
2632 segment overrides or in direct far jump/call insns.
2633 (intel_brack_expr): New.
2634 (intel_e10, intel_e10_1): Combine, replace recursion with loop. Use
2636 (intel_e11): Replace chain of if/else-if by switch, alloing fall-
2637 through in certain cases. Use intel_brack_expr. Add new diagnostics.
2638 Allow symbolic constants as register scale value.
2639 (intel_get_token): Replace call to malloc and check of return value
2640 with call to xmalloc. Change handling for FLAT to match MASM's.
2641 (intel_putback_token): Don't try to back up/free current token if
2646 * configure.tgt: Set emulation for arm-*-eabi*.
2647 * config/tc-arm.c (meabi_flags): Check EABI_DEFAULT.
2648 * config/te-armeabi.h: New file.
2649 * config/te-armlinuxeabi.h (EABI_DEFAULT): Define.
2650 * config/te-symbian.h: Include "te-armeabi.h".
2654 * cgen.c (gas_cgen_parse_operand): Copy opinfo parameter into a
2655 local variable in case it is clobbered by the setjmp.
2660 * configure.in (werror): New switch: Add -Werror to the
2661 compiler command line. Enabled by default. Disable via
2663 * configure: Regenerate.
2667 * config/obj-coff.h: Convert to ISO C90 formatting.
2668 * config/obj-coff.c: Convert to ISO C90 formatting.
2672 * config/tc-arm.c (do_mla): Rename to do_mlas, take second
2673 is_mls parameter; do not diagnose Rm==Rd when is_mls.
2674 (do_mla, do_mls, five_bit_unsigned_immediate, bfci_lsb_and_width)
2675 (do_bfc, do_bfi, do_bfx, do_rbit, do_mov16, do_ldsttv4): New functions.
2676 (insns): Add ARMv6T2 instructions:
2677 bfc bfi mls movw movt rbit sbfx ubfx ldrht ldrsht ldrsbt strht.
2678 (arm_archs): Add V6T2 variants.
2682 * NEWS: Add cutoff for changes in 2.16 release.
2686 * expr.c (operand): Merge handling of unary + into that for unary
2691 * config/tc-mips.c: Include dw2gencfi.h.
2692 (mips_cfi_frame_initial_instructions): New.
2693 * config/tc-mips.h (TARGET_USE_CFIPOP): Define.
2694 (tc_cfi_frame_initial_instructions): Ditto.
2695 (DWARF2_DEFAULT_RETURN_COLUMN): Ditto.
2696 (DWARF2_CIE_DATA_ALIGNMENT): Ditto.
2697 * Makefile.am: Update dependencies.
2698 * Makefile.in: Regenerate.
2702 * po/es.po: Commit new Spanish translation.
2706 * po/tr.po: Commit new Turkish translation.
2710 * config/tc-arm.c (tinsns): Add ARMv6K instructions sev, wfe,
2715 * config-gas.com: Mark vax-vms as obsolete.
2716 * configure.in: Remove fmt=vms support.
2717 * config.in: Regenerate.
2718 * configure: Regenerate.
2719 * config/obj-vms.h, config/obj-vms.c, config/vms-conf.h: Remove.
2724 * config/tc-xtensa.c (finish_vinsn): Include the last instruction slot
2725 when checking if xg_resolve_literals needs to be called.
2726 * config/tc-xtensa.h: Fix spelling typo in a comment.
2730 * config/tc-tic54x.h (tic54x_macro_info): Change parameter type.
2731 * config/tc-tic54x.c (tic54x_macro_info): Likewise. Replace hand-
2732 crafted structure declarations with the types from macro.h.
2736 * config/tc-mips.c (s_cpsetup): Use '__gnu_local_gp' instead of '_gp'
2737 for -mno-shared optimization.
2741 * config/tc-mips.c (MAX_VR4130_NOPS, MAX_DELAY_NOPS): New macros.
2742 (MAX_NOPS): Bump to 4.
2743 (mips_fix_vr4130): New variable.
2744 (nops_for_vr4130): New function.
2745 (nops_for_insn): Use MAX_DELAY_NOPS rather than MAX_NOPS. Use
2746 nops_for_vr4130 if working around VR4130 errata.
2747 (OPTION_FIX_VR4130, OPTION_NO_FIX_VR4130): New macros.
2748 (md_longopts): Add -mfix-vr4130 and -mno-fix-vr4130.
2749 (md_parse_option): Handle them.
2750 (md_show_usage): Print them.
2751 * doc/c-mips.texi: Document -mfix-vr4130 and -mno-fix-vr4130.
2755 * config/tc-mips.c (append_insn): Remove cop_interlocks test from
2760 * config/tc-mips.h (mips_flush_pending_output): Delete.
2761 (mips_emit_delays): Declare.
2762 (md_flush_pending_output): Use mips_emit_delays.
2763 * config/tc-mips.c (mips_no_prev_insn): Remove parameter; always forget
2764 the previous instructions.
2765 (md_begin, append_insn, md_parse_option): Update callers.
2766 (mips_emit_delay): Remove parameter. Move INSNS != 0 code to
2768 (mips_align, s_change_sec, s_cons, s_float_cons, s_gpword)
2769 (s_gpdword): Update callers.
2770 (start_noreorder, end_noreorder): New functions.
2771 (macro, macro2, mips16_macro, s_mipsset): Use them instead of
2772 manipulating mips_opts or prev_nop_frag directly.
2773 (mips_flush_pending_output): Delete.
2777 * config/tc-mips.c (mips_move_labels): New function, taken from...
2778 (append_insn, mips_emit_delays): ...here.
2782 * config/tc-mips.c (MAX_NOPS): New macro.
2783 (history): Resize to 1 + MAX_NOPS.
2784 (fix_vr4120_class): New enumeration.
2785 (vr4120_conflicts): New variable.
2786 (init_vr4120_conflicts): New function.
2787 (md_begin): Call it.
2788 (insn_uses_reg): Constify first argument.
2789 (classify_vr4120_insn, insns_between, nops_for_insn, nops_for_sequence)
2790 (nops_for_insn_or_target): New functions.
2791 (append_insn): Use the new nops_for_* functions instead of inline
2792 delay checks. Generalize prev_nop_frag handling to handle an
2793 arbitrary history length. Insert nops into the history buffer
2794 once the number of nops in prev_nop_frag is fixed.
2795 (emit_delays): Use nops_for_insn instead of inline delay checks.
2799 * config/tc-mips.c (append_insn): Remove now-redundant nops != 0
2800 check from branch delay code. Remove unnecessary check for branches.
2804 * config/tc-mips.c (dummy_opcode): Delete.
2805 (nop_insn, mips16_nop_insn): New variables.
2806 (NOP_INSN): New macro.
2807 (insn_length, create_insn, install_insn, move_insn, add_fixed_insn)
2808 (add_relaxed_insn, insert_into_history, emit_nop): New functions.
2809 (md_begin): Initialize nop_insn and mips16_nop_insn.
2810 (append_insn): Use the new emit_nop function to add nops, recording
2811 them in the history buffer. Use add_fixed_insn or add_relaxed_insn
2812 to reserve room for the instruction and install_insn to install the
2813 final form. Use insert_into_history to record the instruction in
2814 the history buffer. Use move_insn to do delay slot filling.
2815 (mips_emit_delays): Use add_fixed_insn instead of the emit_nop macro.
2816 (macro_build, mips16_macro_build, macro_build_lui, mips_ip)
2817 (mips16_ip): Use create_insn to initialize mips_cl_insns.
2821 * config/tc-mips.c (INSERT_BITS, EXTRACT_BITS, INSERT_OPERAND)
2822 (EXTRACT_OPERAND, MIPS16_INSERT_OPERAND, MIPS16_EXTRACT_OPERAND): New.
2823 (insn_uses_reg, reg_needs_delay, append_insn, macro_build)
2824 (mips16_macro_build, macro_build_lui, mips16_macro, mips_ip)
2825 (mips16_ip): Use the new macros instead of explicit masks and shifts.
2829 * config/tc-mips.c (mips_cl_insn): Replace the valid_p, delay_slot_p
2830 and extended_p fields with a single fixed_p field.
2831 (append_insn, mips_no_prev_insn): Adjust accordingly.
2835 * config/tc-mips.c (mips_cl_insn): Replace reloc_type array with
2836 a single mips16_absolute_jump_p bit.
2837 (append_insn): Adjust accordingly.
2841 * config/tc-mips.h (mips_cl_insn): Move definition to...
2842 * config/tc-mips.c (mips_cl_insn): ...here. Add new fields:
2843 frag, where, fixp, reloc_type, valid_p, noreorder_p, delay_slot_p
2845 (history): New variable.
2846 (prev_insn, prev_prev_insn, prev_insn_valid, prev_insn_frag)
2847 (prev_insn_where, prev_insn_reloc_type, prev_insn_fixp)
2848 (prev_insn_is_delay_slot, prev_insn_unreordered, prev_insn_extended)
2849 (prev_prev_insn_unreordered): Delete.
2850 (reg_needs_delay, append_insn, mips_no_prev_insn, mips_emit_delays)
2851 (macro_start): Replace uses of prev_insn* with the equivalent history[]
2856 * doc/Makefile.am: Update as.info dependencies.
2857 * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
2861 * doc/as.texinfo: Add sentence to indicate redefining a macro is an
2862 error, and point to .purgem documentation if someone really needs
2864 * NEWS: Mention macro redefinition is now an error.
2868 * config/tc-ia64.c (emit_one_bundle): Track last slot user insn was
2869 emitted to. Add more precise diagnostics for non-fitting insns based
2870 on that. Eliminate now superfluous special casing of MLX. Clear out
2871 slot information when dropping an insn.
2875 * config/tc-ia64.c (parse_section_name): Rename to...
2876 (cross_section): In addition to separating the name from the rest of
2877 the arguments, also carry out the operation.
2878 (dot_xdata): Use cross_section.
2879 (dot_float_cons): Likewise.
2880 (dot_xstringer): Likewise.
2881 (dot_xdata_ua): Likewise.
2882 (dot_float_cons_ua): Likewise. Pass float_cons, not stmt_float_cons.
2886 * po/gas.pot: Regenerate.
2890 * config/tc-mips.c (macro_build_lui): Use '__gnu_local_gp'
2891 instead of '_gp' for -mno-shared optimization.
2893 (s_abicalls): Document it in the comment.
2894 (md_show_usage): Document the -mno-shared option.
2898 * config/tc-mips.c (mips_set_options): Add sym32 field.
2899 (mips_opts): Initialize it.
2900 (HAVE_32BIT_ADDRESSES): Set to true if pointers are 32 bits wide.
2901 (HAVE_64BIT_ADDRESSES): Redefine as !HAVE_32BIT_ADDRESSES.
2902 (HAVE_32BIT_SYMBOLS, HAVE_64BIT_SYMBOLS): New macros.
2903 (load_address): Use HAVE_64BIT_SYMBOLS instead of HAVE_64BIT_ADDRESSES
2904 when deciding whether to use a symbolic %highest/%higher expansion.
2905 (macro): Likewise. Remove o64/n32 linux hack. Always use
2906 ADDRESS_ADD*_INSN for address addition in the expansion of "dla"
2907 and "la". Handle constants separately from symbolic expressions in
2908 the "ld_st:" case, using 64-bit arithmetic if HAVE_64BIT_ADDRESSES
2909 and using load_register to load the high part of the address.
2910 (OPTION_MSYM32, OPTION_NO_MSYM32): New macros.
2911 (OPTION_ELF_BASE): Bump by 2.
2912 (md_longopts): Add entries for -msym32 and -mno-sym32.
2913 (md_parse_option): Handle them.
2914 (usage): Document them.
2915 (s_mipsset): Handle ".set sym32" and ".set nosym32".
2916 (s_cpload, s_cpsetup): Use HAVE_64BIT_SYMBOLS instead of
2917 HAVE_64BIT_ADDRESSES to detect 64-bit values of "_gp".
2918 * doc/c-mips.texi: Document ".set sym32", ".set nosym32",
2919 -msym32 and -mno-sym32.
2923 * config/tc-mips.c (load_address): Implement GP optimization
2924 for 64bit address space non-PIC. Fix formatting.
2925 (macro): Likewise. Simplify code.
2926 (md_parse_option): Don't bail out if -G 0 is set for PIC code.
2927 (mips_after_parse_args): Simplify code.
2931 * expr.c (operand): Remove redundant code enclosed by #ifdef
2932 RELAX_PAREN_GROUPING....#endif.
2934 * config/tc-mn10200.c (tc_gen_reloc): Handle the case where the
2935 reloc is the difference of two symbols defined in the same
2938 * config/tc-iq2000.c (line_comment_chars): Include the # character
2939 as otherwise this breaks #APP/#NO_APP processing.
2943 * config/tc-arc.c(md_assemble): Remove dead code for handling
2944 immediate indexing of ld and st .
2949 * config/tc-mips.c (percent_op): Add %tlsgd, %tlsldm, %dtprel_hi,
2950 %dtprel_lo, %tprel_hi, %tprel_lo, and %gottprel.
2951 (parse_relocation): Check for a word break after a relocation
2953 (md_apply_fix3): Handle TLS relocations, and mark thread-local
2958 * config/tc-ppc.c (ppc_fix_adjustable <ELF>): Remove bogus checks.
2962 * as.c (main): Use unlink_if_ordinary instead of unlink.
2963 * messages.c (as_fatal): Likewise.
2967 * config/tc-i386.c (build_modrm_byte): Add lock prefix for cr8...15
2969 (parse_register): Allow cr8...15 in all modes.
2973 * config/tc-i386.c (intel_e11): If not followed by T_PTR, treat T_BYTE
2974 etc. like normal symbol references (T_ID).
2978 * symbols.c (fb_label_name): Fix silly thinko in last change.
2982 * expr.c (integer_constant): Remove TARGET_WORD_SIZE hack.
2983 * config/tc-m68k.h (TARGET_WORD_SIZE): Delete.
2985 * symbols.c (fb_label_name): Allow an augend of 2 for mmix.
2990 * config/tc-arc.c (md_assemble): Initialize suffix for extension
2995 * config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.
2997 * as.h (assert): Warning fix.
2998 * expr.c (expr): Correct assertion.
2999 * read.c (s_comm_internal): Remove assertion.
3000 * write.c (relax_segment): Enable vma assertion only for BFD_ASSEMBLER.
3001 (fixup_segment): Remove assertion.
3002 * config/tc-dlx.c (machine_ip): Remove untrue assertions.
3003 (md_apply_fix3): Likewise.
3004 * config/tc-i370.c (md_begin): Correct assertion.
3005 (i370_macro): Warning fix for assertion.
3009 * configure.in (AC_C_BIGENDIAN): Invoke.
3010 * configure: Regenerate.
3011 * write.c (write_object_file <!BFD_ASSEMBLER>): Don't use sizeof
3012 host variable to set string header size.
3013 * config/obj-aout.c (obj_header_append): Don't use host structs.
3014 (obj_symbol_to_chars): Likewise.
3015 (obj_emit_strings): Likewise. Use the passed in output pointer.
3016 * config/obj-aout.h (H_GET_FILE_SIZE): Include H_GET_LINENO_SIZE.
3017 * config/obj-bout.c (obj_emit_relocations): Use md_reloc_size,
3018 not sizeof host struct.
3019 (obj_header_append, obj_symbol_to_chars): Don't use host structs.
3020 (obj_emit_strings): Likewise.
3021 * config/obj-bout.h (EXEC_BYTES_SIZE): Define.
3022 (N_TXTOFF, H_GET_FILE_SIZE, H_GET_HEADER_SIZE): Use instead of
3024 (H_SET_SYMBOL_TABLE_SIZE): Hard code sym size rather than using
3026 (host_number_to_chars): Define.
3027 * config/obj-hp300.c (hp300_header_append): Don't use sizeof
3028 host internal struct to set header sizes.
3029 * config/tc-i960.c (md_number_to_field): Warning fix.
3030 (md_ri_to_chars): Use host byte order.
3031 (get_cdisp, md_apply_fix3): Warning fix.
3032 * config/tc-m68k.c (md_assemble): Don't use sizeof host short.
3036 * doc/c-arc.texi: Update documentation about ARC's extension
3041 * config/tc-tic4x.c (tic4x_gen_to_words): Changed mail
3046 * cgen.c: Warning fixes.
3047 * config/tc-arc.c: Likewise.
3048 * config/tc-arm.c: Likewise.
3049 * config/tc-avr.c: Likewise.
3050 * config/tc-d10v.c: Likewise.
3051 * config/tc-d30v.c: Likewise.
3052 * config/tc-frv.c: Likewise.
3053 * config/tc-frv.h: Likewise.
3054 * config/tc-h8300.c: Likewise.
3055 * config/tc-h8500.c: Likewise.
3056 * config/tc-i370.c: Likewise.
3057 * config/tc-i960.c: Likewise.
3058 * config/tc-ia64.c: Likewise.
3059 * config/tc-ip2k.c: Likewise.
3060 * config/tc-m68hc11.c: Likewise.
3061 * config/tc-maxq.c: Likewise.
3062 * config/tc-mcore.c: Likewise.
3063 * config/tc-mips.c: Likewise.
3064 * config/tc-msp430.c: Likewise.
3065 * config/tc-pj.c: Likewise.
3066 * config/tc-ppc.c: Likewise.
3067 * config/tc-ppc.h: Likewise.
3068 * config/tc-s390.c: Likewise.
3069 * config/tc-sh.c: Likewise.
3070 * config/tc-sh64.c: Likewise.
3071 * config/tc-tic4x.c: Likewise.
3072 * config/tc-tic80.c: Likewise.
3073 * config/tc-v850.c: Likewise.
3074 * config/tc-vax.c: Likewise.
3075 * config/tc-w65.c: Likewise.
3076 * config/tc-xstormy16.c: Likewise.
3077 * config/tc-z8k.c: Likewise.
3081 * read.c (read_a_source_file): Reinstate TC_EQUAL_IN_INSN test.
3082 * doc/internals.texi (TC_EQUAL_IN_INSN): Reinstate.
3086 * config/tc-mips.c (struct proc): Change isym to
3087 func_sym. New member func_end_sym.
3088 (s_mips_ent): Update.
3089 (s_mips_end): Ditto. Add code to compute function size.
3093 * read.c: Warning fixes.
3094 * config/obj-elf.c: Likewise.
3098 * config/tc-mips.c (append_insn): Call dwarf2_emit_insn() before
3103 * config/obj-coff.c (obj_coff_section): Replace SEC_SHARED with
3106 * config/tc-tic54x.c (tic54x_bss): Replace SEC_BLOCK with
3108 (demand_empty_rest_of_line): Likewise.
3109 (tic54x_sblock): Likewise.
3110 (tic54x_clink): Replace with SEC_CLINK with SEC_TIC54X_CLINK.
3114 * read.c (address_bytes): New function.
3115 (TC_ADDRESS_BYTES): Default for BSD_ASSEMBLER to address_bytes.
3116 (potable): Add "dc.a".
3117 (cons_worker): Handle "dc.a".
3118 * doc/internals.texi (TC_ADDRESS_BYTES): Document.
3122 * input-file.c (input_file_open): Rearrange to avoid warning.
3126 * config/tc-hppa.h (TC_EQUAL_IN_INSN): Delete.
3127 * read.c (read_a_source_file): Remove TC_EQUAL_IN_INSN test.
3128 * doc/internals.texi (TC_EQUAL_IN_INSN): Delete.
3132 * config/tc-mips.c (macro_build_ldst_constoffset): Fail on $at
3133 uses after .set noat.
3134 (load_address): Likewise.
3135 (macro): Likewise. Don't try to avoid $at use by sacrificing
3136 the target register before it is stored, it won't work.
3140 * config/tc-ia64.c (emit_one_bundle): Stop filling a bundle if we
3141 see an instruction that specifies a template.
3145 * config/tc-openrisc.c (openrisc_relax_frag): Delete unused function.
3146 * config/tc-sparc.c (sparc_ip): Make op_exp static to silence warnings.
3147 * config/tc-tic80.c (build_insn): Init insn[1] to silence warning.
3151 * NEWS: Mention "-mhint.b=[ok|warning|error]".
3153 * config/tc-ia64.c (md): Add hint_b.
3154 (emit_one_bundle): Handle md.hint_b for "hint".
3155 (md_parse_option): Accepted "-mhint.b=[ok|warning|error]".
3156 (md_show_usage): Add "-mhint.b=[ok|warning|error]".
3157 (ia64_init): Set md.hint_b to error.
3158 (md_assemble): Handle md.hint_b for "hint.b".
3160 * doc/as.texinfo: Add "-mhint.b=[ok|warning|error]".
3161 * doc/c-ia64.texi: Likewise.
3165 * tc.h (struct relax_type, relax_typeS): Move from here..
3166 * as.h: ..to here. Make rlx_forward and rlx_backward an offsetT.
3167 * ecoff.c (ecoff_new_file): Add appfile param.
3168 * ecoff.h (ecoff_new_file): Likewise.
3169 * itbl-lex.h: New file.
3170 * itbl-lex.l: Include itbl-lex.h.
3171 * itbl-parse.y: Likewise.
3172 (insntbl_line, yyparse, yylex): Move to itbl-lex.h.
3173 * read.c (s_app_file_string): Mark appfile possibly unused.
3174 * subsegs.c (seg_not_empty_p): Make sec possibly unused.
3175 * subsegs.h (struct seg_info_trash): Delete.
3176 (seg_info): Use segment_info_type instead.
3177 * config/obj-coff.c (struct filename_list): Make filename const char *.
3178 * config/obj-ecoff.h (obj_app_file): Pass app to ecoff_new_file.
3179 * config/obj-elf.c (elf_file_symbol): Similarly.
3180 * config/tc-a29k.c (md_apply_fix3): Make val a valueT. Don't use
3182 * config/tc-arc.c (md_operand): Warning fix.
3183 * config/tc-arm.c (arm_parse_reloc): Only define when OBJ_ELF.
3184 (md_begin): Rearrange #if defined OBJ_COFF || defined OBJ_ELF.
3185 * config/tc-cris.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Use do while.
3186 * config/tc-frv.c (frv_force_relocation): Warning fix.
3187 * config/tc-m68k.c (md_parse_option): Delete unused var.
3188 * config/tc-mcore.c (mylog2): Rename from log2 throughout.
3189 * config/tc-sparc.c: Likewise.
3190 (s_common): Warning fix.
3191 * config/tc-mips.c (append_insn): Use unsigned long long expressions.
3192 * config/tc-mmix.c (PUSHJSTUB_MAX, PUSHJSTUB_MIN): Define from
3194 * config/tc-s390.c (s390_insn): Delete test of unsigned >= 0.
3195 * config/tc-sh.c (sh_cfi_frame_initial_instructions,
3196 sh_regname_to_dw2regnum): Only define for OBJ_ELF.
3197 * config/tc-tic4x.c (tic4x_insert_reg): Use ISLOWER.
3198 (tic4x_do_align): Use TIC_NOP_OPCODE.
3199 * config/tc-tic4x.h (TIC_NOP_OPCODE): Rename from NOP_OPCODE.
3200 * config/tc-vax.c: Include netinet/in.h.
3201 (tc_headers_hook): Formatting.
3202 * config/tc-xstormy16.c (md_pcrel_from_section): Correct parens.
3206 * config/tc-ia64.c (ia64_parse_name): Don't advance 'name' when
3207 parsing inN, locN, outN. Set 'idx' to offset register number starts
3208 at. Don't handle numbers with leading zeroes or beyond 95. Remove
3213 * config/tc-mips.c (load_address): Fix formatting.
3214 (macro): Don't use AT if .set noat is in effect. Fix formatting.
3215 Catch macros which are unexpandable without AT. Remove duplicate
3217 (macro2): Remove duplicate zeroing of used_at.
3221 * dw2gencfi.c (output_cie, output_fde): Use DW_CFA_nop rather
3227 * config/tc-mips.c (reloc_needs_lo_p): Handle
3228 BFD_RELOC_MIPS16_HI16_S.
3229 (fixup_has_matching_lo_p): Handle BFD_RELOC_MIPS16_LO16.
3230 (append_insn): Add BFD_RELOC_MIPS16_GPREL, BFD_RELOC_MIPS16_HI16_S
3231 and BFD_RELOC_MIPS16_LO16 to relocs to suppress overflow
3233 (mips16_ip): Resolve BFD_RELOC_MIPS16_HI16_S,
3234 BFD_RELOC_MIPS16_HI16 and BFD_RELOC_MIPS16_LO16 for constants.
3235 Call my_getSmallExpression() to parse percent operators.
3236 (percent_op_match, mips_percent_op): Separate definitions.
3237 (mips16_percent_op): Define percent operators for the MIPS16 mode.
3238 (parse_relocation): Handle the MIPS16 mode using
3240 (md_apply_fix3): Handle BFD_RELOC_MIPS16_HI16,
3241 BFD_RELOC_MIPS16_HI16_S and BFD_RELOC_MIPS16_LO16.
3245 * config/tc-ia64.c (md_apply_fix3): Call ia64_gen_real_reloc_type
3246 instead of explicitly dealing with the translation; exclude
3247 relocations that are already pcrel, however.
3251 * config/tc-ia64.c: Include limits.h (if available).
3252 (gr_values[0]): Set path to INT_MAX.
3253 (dot_reg_val): Don't allow changing value of r0. Limit range of
3254 general registers at r127.
3255 (specify_resource): Default resource index is -1. Don't set resource
3256 index (in case IA64_RS_RSE) without setting the specific flag.
3257 (note_register_values): Check operand is O_constant before tracking
3258 input value of moves. Add tracking for dep.z with constant inputs.
3259 (print_dependency): Resource index of specific resource may be zero.
3260 (check_dependencies): Likewise.
3264 * config/tc-ia64.c (parse_operands): New local variables reg1, reg2,
3265 reg_class. Check operands and emit diagnostics for illegal use of
3270 * config/tc-ia64.c (ia64_gen_real_reloc_type): Define and initialize
3271 new variables type, suffix, and width. Handle
3272 BFD_RELOC_IA64_DIR(32|64)[LM]SB in FUNC_LT_FPTR_RELATIVE case.
3273 Handle BFD_RELOC_IA64_DIR64[LM]SB in FUNC_TP_RELATIVE case. Add
3274 FUNC_DTP_MODULE case. Handle BFD_RELOC_IA64_DIR32[LM]SB in
3275 FUNC_DTP_RELATIVE case. Return incoming relocation type if
3276 BFD_RELOC_IA64_IPLT[LM]SB in FUNC_IPLT_RELOC case. Generate warning
3277 if unable to translate relocation type, using the new variables.
3281 * config/tc-ia64.h (ia64_symbol_chars): Declare.
3282 (ty_symbol_chars): Define.
3283 * config/tc-ia64.c (ia64_symbol_chars): Define.
3287 * config/tc-ia64.c (ia64_parse_name): Only update next character if
3288 input_line_pointer was advanced.
3292 * config/tc-sh.c (md_apply_fix3): Add parentheses around &
3297 * config/tc-ia64.c (md_parse_option): Handle -xnone and -xdebugn.
3298 (md_show_usage): Add -xnone, -xdebugn, and -xdebugx. Relocate default
3300 (ia64_init): Set md.detect_dv.
3301 (ia64_start_line): New static variable warned. Warn only once when
3302 encountering explicit stops in automatic mode.
3303 * doc/c-ia64.texi: Describe -xnone, -xdebugn, and -xdebugx.
3304 * NEWS: Mention new default mode.
3308 * config/tc-ia64.c (dot_rot): Add comment that name strings should
3309 be freed when wiping out previous state. Canonicalize names before
3310 use. Free name string when detecting redefinition.
3311 (dot_pred_rel): Call generic expression parser to process arguments.
3312 Handle O_register case for individual predicates and O_subtract for
3314 (ia64_parse_name): Canonicalize name before looking it up in dynamic
3316 (ia64_canonicalize_symbol_name): Strip off all trailing # characters.
3317 Warn if multiple found, issue error if resulting symbol name has zero
3319 (dot_alias): Canonicalize name before use.
3323 * config/tc-ia64.c (unwind_diagnostic): Return -1 for warning
3325 (in_procedure): Return -1 for warning.
3326 (in_prologue): Likewise.
3327 (in_body): Likewise.
3331 * config/tc-ia64.c (dot_xdata): Undo the last change.
3332 (dot_float_cons): Likewise.
3333 (dot_xstringer): Likewise.
3334 (dot_xdata_ua): Likewise.
3335 (dot_float_cons_ua): Likewise.
3339 * NEWS: Mention "-munwind-check=[warning|error]".
3341 * config/tc-ia64.c (md): Add unwind_check.
3342 (unwind_diagnostic): New.
3343 (in_procedure): Call unwind_diagnostic when a directive isn't
3345 (in_prologue): Call unwind_diagnostic when a directive isn't in
3347 (in_body): Call unwind_diagnostic when a directive isn't in
3349 (dot_endp): Set md.unwind_check to error before calling
3350 in_procedure and restore it after. When the name is missing or
3351 couldn't be found, use the one from the last .proc if
3352 md.unwind_check isn't error. Warn if md.unwind_check is
3354 (md_parse_option): Handle "-munwind-check=[warning|error]".
3355 (md_show_usage): Add "-munwind-check=[warning|error]".
3356 (ia64_init): Set md.unwind_check to warning.
3358 * doc/as.texinfo: Add "-munwind-check=[none|warning|error]".
3359 * doc/c-ia64.texi: Likewise.
3363 * config/tc-ia64.h (LEX_AT): Include LEX_BEGIN_NAME.
3365 (ia64_parse_name): New third parameter.
3366 (md_parse_name): Pass third argument.
3367 * config/tc-ia64.c (pseudo_func): Placeholders use NULL as name.
3368 (md_operand): Handling of '@'-prefixed symbols moved from here...
3369 (ia64_parse_name): ...to here.
3373 * config/tc-ia64.c (md): Remove last_groups and group_idx.
3374 (errata_nop_necessary_p): Remove declaraction and definition.
3375 (emit_one_bundle): Don't call errata_nop_necessary_p. Don't
3376 update md.group_idx. Don't reset md.last_groups.
3380 * config/tc-ia64.c (parse_section_name): Handle non-quoted first
3382 (dot_xdata): Free section name after use.
3383 (dot_float_cons): Likewise.
3384 (dot_xstringer): Likewise.
3385 (dot_xdata_ua): Likewise.
3386 (dot_float_cons_ua): Likewise.
3387 (md_pseudo_table): Add xdata16 and xdata16.ua.
3391 * doc/all.texi: Add IA64.
3392 * doc/as.texinfo: Likewise.
3394 * doc/c-ia64.texi: Fix typos.
3398 * config/tc-arm.c (do_t_ldmstm): Change BFD_RELOC_NONE to
3400 (do_t_push_pop): Likewise.
3401 (md_assemble): Likewise.
3402 (md_apply_fix3): Handle BFD_RELOC_NONE correctly, make
3403 BFD_RELOC_UNUSED same as previous meaning of BFD_RELOC_NONE.
3404 (create_unwind_entry): Output dependency on the required personality
3409 * as.h (seg_not_empty_p): Return int, not bfd_boolean.
3410 * subsegs.c (seg_not_empty_p): Likewise.
3414 * config/tc-maxq.c (md_estimate_size_before_relax): Correct the
3415 relative jump calculation.
3416 <md_convert_frag) : Likewise.
3417 <output_disp): Likewise.
3421 * write.c (write_object_file): Recognize warning-symbol construct
3422 and skip object- and target- handling for the second symbol.
3426 * config/tc-ia64.c (dot_pred_rel): Update comment. Handle @-prefixed
3427 designators along with quoted ones. Free copy of quoted designator
3432 * config/atof-ieee.c, config/obj-coff.c, config/obj-elf.c,
3433 config/obj-ieee.c, config/obj-som.c, config/obj-vms.c,
3434 config/tc-a29k.c, config/tc-alpha.c, config/tc-arc.c,
3435 config/tc-arm.c, config/tc-d30v.c, config/tc-dlx.c,
3436 config/tc-fr30.c, config/tc-h8300.c, config/tc-h8500.c,
3437 config/tc-i370.c, config/tc-i386.c, config/tc-i960.c,
3438 config/tc-ia64.c, config/tc-m32r.c, config/tc-m32r.h,
3439 config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-mips.c,
3440 config/tc-mn10200.c, config/tc-msp430.c, config/tc-ns32k.c,
3441 config/tc-openrisc.c, config/tc-or32.c, config/tc-pdp11.c,
3442 config/tc-pj.c, config/tc-sparc.h, config/tc-tic54x.c,
3443 config/tc-tic80.c, config/tc-v850.c, config/tc-w65.c,
3444 config/tc-xtensa.c, config/tc-z8k.c, config/xtensa-relax.c: Remove
3445 #if 0'd code throughout.
3449 * as.c (parse_args): Bump copyright date reported by --version to
3454 * configure.tgt: Remove obsolete targets m68k-lynxos, sparc-lynxos
3459 * macro.c (buffer_and_nest): Allow 'from' being NULL; handle anything
3460 that can end with .endr in that case. Make requiring/permitting
3461 pseudo-ops without leading dot closer to the logic in read.c serving
3463 (expand_irp): Don't pass a mnemonic to buffer_and_nest as it will be
3468 * macro.c (do_formals): Adjust to no longer accept empty parameter
3470 (define_macro): Adjust to no longer accept empty macro name, garbage
3471 following the parameters, or macros that were previously defined.
3472 * read.c (s_bad_end): Declare.
3473 (potable): Add endm. Handler for endr and endm is s_bad_end.
3474 (s_bad_end): Rename from s_bad_endr. Adjust to handle both .endm
3476 * read.h (s_bad_endr): Remove.
3480 * config/tc-ia64.c (parse_operands): Parse all specified operands,
3481 immediately discarding (but counting) those exceeding the maximum
3482 possible amount. Track whether output and input operand counts ever
3483 matched, and use this to better indicate which of the operands/
3484 operand types was wrong; specifically don't default to pointing to
3489 * config/tc-ia64.c (unwind): Remove proc_end (now an automatic
3490 variable in dot_endp). Add body and insn. Make prologue,
3491 prologue_mask, body, and insn bitfields.
3492 (fixup_unw_records): Remove spurious new-lines from end of diagnostic
3494 (in_procedure, in_prologue, in_body): New.
3495 (dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
3496 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
3497 dot_unwentry, dot_altrp, dot_savemem, dot_saveg, dot_savef, dot_saveb,
3498 dot_savegf, dot_spill, dot_spillreg, dot_spillmem, dot_spillreg_p,
3499 dot_spillmem_p, dot_label_state, dot_copy_state, dot_unwabi,
3500 dot_personality): Use the appropriate one of the above.
3501 (dot_proc): Clear unwind.proc_start; set to current location only if
3502 none of the entry points were valid. Check for non-zero-length entry
3503 point names. Check that entry points aren't defined, yet. Clear
3504 unwind.prologue, unwind.body, and unwind.insn.
3505 (dot_body): Call in_procedure. Check that first directive in procedure
3506 had no insns emitted before. Set unwind.body.
3507 (dot_prologue): Call in_procedure. Check that not already in prologue.
3508 Check that first directive in procedure had no insns emitted before.
3510 (dot_endp): Call in_procedure. Declare proc_end. Check for non-zero-
3511 length entry point names. Check that entry points became defined.
3512 (md_assemble): Set unwind.insn once unwind.proc_start is defined.
3516 * config/tc-ia64.c (emit_one_bundle): Snapshot manual bundling state
3517 before actually using it. Don't generate an error in manual bundling
3518 mode when looking at an insn requiring slot 2 but not yet at slot 2.
3519 Don't generate an error in manual bundling mode when looking at an
3520 insn required to be last in its group but the required slot hasn't
3521 been reached, yet. Allow conversion from MII to MI;I for bundle
3522 consisting of only 2 insns with the stop between them. Suppress
3523 various meaningless errors resulting from detecting earlier ones.
3527 * config/tc-ia64.c (parse_operands): Also handle alloc without first
3532 * config/tc-z8k.c (md_assemble): Improve error detection.
3536 * config/tc-ia64.c (ia64_estimate_size_before_relax): Allocate space
3537 for personality routine pointer only if there is one.
3538 (ia64_convert_frag): Likewise.
3539 (generate_unwind_image): Likewise.
3543 * config/tc-z8k.c (INSERT): Remove, not used anywhere.
3544 (md_apply_fix3): Make relative branches out of range an error
3545 instead of a warning. Display correct line number for out of
3546 range branches/calls/memory accesses.
3550 * dwarf2dbg.c (dwarf2_finish): Correct logic for determining when
3551 to emit .debug_line and other debug sections.
3552 * as.h (seg_not_empty_p): Declare.
3553 * subsegs.c (seg_not_empty_p): New predicate.
3557 * configure: Regenerate to track ../gettext.m4 change.
3561 * config/tc-ia64.c (emit_one_bundle): Change "?imbf??" to "?ibmfxx".
3565 * config/tc-ia64.c (emit_one_bundle): Add late resolution of move
3566 to/from application registers dynamic insns.
3567 (md_assemble): Defer resolution of move to/from application registers
3568 dynamic insns when they can be issued on either the I- or M-units.
3572 * config/tc-frv.c (md_apply_fix3): Mark TLS symbols as such.
3574 * config/tc-frv.c (frv_pic_ptr): Add tlsmoff support.
3576 * cgen.c (gas_cgen_parse_operand): Handle
3577 CGEN_PARSE_OPERAND_SYMBOLIC.
3578 * config/tc-frv.c (md_cgen_lookup_reloc): Handle TLS relocations.
3579 (frv_force_relocation): Likewise. Fix handling of PIC
3581 (md_apply_fix3): Likewise.
3585 * as.h: Remove #if 0'd code.
3586 * atof-generic.c (atof_generic): Likewise.
3587 * ecoff.c (ecoff_directive_frame): Likewise.
3588 * frags.h (FRAG_APPEND_1_CHAR): Likewise.
3589 * itbl-ops.c (itbl_add_reg): Likewise.
3590 * listing.c (calc_hex): Likewise.
3591 * read.c (MASK_CHAR): Likewise.
3592 * subsegs.c (subsegs_print_statistics): Likewise.
3593 * symbols.c (indent): Likewise.
3594 * write.c (write_relocs): Likewise.
3595 (write_object_file): Likewise.
3596 (relax_frag): Likewise.
3600 * as.c (std_longopts): Add an entry for "--a" in order to prevent
3601 getopt_long_only() from considering -a as an abbreviation for
3603 (parse_args): Fix the parsing of -a=<file>.
3608 * read.c (s_incbin): Adjust default count for skip. Check validity
3609 of count and skip rigorously.
3613 * config/tc-mips.c (dummy_opcode): Add init for new struct member.
3617 * read.c (convert_to_bignum): New function, split out from...
3618 (emit_expr): ...here. Handle the case where X_add_number is
3619 positive and the input value is negative.
3620 (output_big_sleb128): Fix setting of continuation bit. Check whether
3621 the final byte needs to be sign-extended. Fix size-shrinking loop.
3622 (emit_leb128_expr): When generating a signed leb128, see whether the
3623 sign of an O_constant's X_add_number matches the sign of the input
3624 value. Use a bignum if not.
3628 * tc-sh.c (md_begin,md_parse_option): Change arch_sh1_up to
3629 arch_sh_up in order to match the external name and make the
3630 testsuite's job easier.
3635 * config/tc-i386.c (i386_scale): Disallow 0 scale.
3639 * config/tc-iq2000.c (s_iq2000_set): Fix thinko parsing
3640 ignored_arguments array.
3644 * write.c (write_object_file): Disallow a symbol equated to
3649 * tc-maxq.c: Replace constants 10 and 20 with bfd_mach_maxq10 and
3651 (md_pseudo_table): Add new pseudo ops for maxq10 and maxq20.
3652 (maxq_target): New function: Set the machine type.
3656 * config/tc-arm.c (FPU_DEFAULT): Define for TE_VXWORKS.
3657 (md_begin): Handle TE_VXWORKS for FP defaults.
3658 (md_apply_fix3): Correct rela offsets.
3659 (elf32_arm_target_format): Add VxWorks targets.
3663 * configure.tgt: Set em=vxworks for *-*-vxworks.
3664 * config/te-vxworks.h: New File.
3668 * config/tc-arm.c (arm_cpus): Correct arch field for arm1026ej-s.
3672 * config/tc-msp430.c (md_apply_fix3): Fix offset calculation for
3677 * config/tc-ia64.c (md): Add member "loc_directive_seen".
3678 (dot_loc): New function.
3679 (md_pseudo_table): Add entry to map .loc to dot_loc().
3680 (emit_one_bundle): Only call dwarf2_gen_line_info() if we have
3681 seen a .loc directive or we're generating DWARF2 debug info for
3687 * read.c (s_comm_internal): Don't zero end of name until size
3688 expression has been parsed.
3692 * config/tc-avr.c (mcu_types): Move attiny{13,2313} from avr4 to avr2.
3696 * config/tc-crx.c: Support 'bcop' relaxation (dealt as in 'cmp&branch'
3701 * configure.tgt: New.
3702 * configure.in: Move setting of cpu_type, fmt, etc., to
3704 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add
3705 $(srcdir)/configure.tgt.
3706 * configure, Makefile.in: Rebuild.
3710 * config/tc-avr.c: Add support for the new R_AVR_LDI, R_AVR_6 and
3711 R_AVR_6_ADIW relocs for the LDI, ADIW/SBIW and LDD/STD
3713 (avr_offset_expression): New function to parse offsets for LDI
3715 (avr_operand): Use it.
3716 (md_apply_fix3): Generate the relocs.
3720 * config/tc-sh64.c (shmedia_md_apply_fix3): Add missing
3721 BFD_RELOC_SH_IMMS10BY8 relocation.
3723 * config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather
3724 than just ignoring bad code.
3728 * config/tc-v850.c (handle_lo16): New function.
3729 (v850_reloc_prefix): Use it to check lo().
3730 (md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET.
3734 * configure.in: Add s390x-ibm-tpf support.
3735 * configure: Regenerate.
3739 * config/obj-elf.c (obj_elf_change_section): Only set type and
3740 attributes on new sections. Emit warning when type of re-declared
3741 section doesn't match.
3745 * dw2gencfi.c (dot.cfi.startproc): Clear cur_cfa_offset so
3746 '.cfi_startproc simple' doesn't inherit the old value.
3750 * dw2gencfi.c (output_cfi_insn): Adjust DW_CFA_def_cfa_sf generation
3751 to emit a signed and factored offset. Adjust DW_CFA_def_cfa_offset_sf
3752 generation to emit a factored offset.
3756 * config/tc-mips.c (macro) [M_LA_AB]: Give an error for a offset
3757 which is too large in the case of NO_PIC without 64-bit
3760 * config/tc-mips.c (mips_in_shared): New static variable.
3761 (macro_build_lui): Permit "_gp" if !mips_in_shared.
3762 (md_longopts): Add -mshared and -mno-shared.
3763 (md_parse_option): Handle OPTION_MSHARED and OPTION_MNO_SHARED.
3764 (s_cpload): Implement !mips_in_shared case.
3765 (s_cpsetup): Likewise.
3766 * doc/c-mips.texi (MIPS Opts): Document -mno-shared.
3767 * NEWS: Mention -mno-shared.
3771 * config/tc-arm.c (s_arm_unwind_fnend): Use R_ARM_PREL31 relocation
3776 * config/tc-mips.c (append_insn): If we emit a nop during a relax
3777 sequence, increase the size of the sequence.
3779 * config/tc-mips.c (mips_cpu_info_table): Change "9000" entry to
3784 * read.c (s_align): Use an align_limit temporary to allay a GCC
3785 signed/unsigned comparison warning.
3789 * Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h.
3790 * configure.in: Use it for arm*-*-linux-gnueabi*.
3791 * config/tc-arm.c: Allow emulation file to set FPU_DEFAULT.
3792 * config/te-armlinuxeabi.h: New file.
3793 * Makefile.in: Regenerated.
3794 * aclocal.m4: Likewise.
3795 * configure: Likewise.
3796 * doc/Makefile.in: Regenerated.
3800 * config/tc-xtensa.c (xtensa_switch_section_emit_state): Use subseg_set.
3801 (xtensa_restore_emit_state): Likewise.
3805 * read.c (ALIGN_LIMIT): Define, increasing limit for BFD_ASSEMBLER.
3810 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
3811 * Makefile.in: Regenerate.
3815 * config/tc-crx.c: Major code cleanup. Remove unused variables and
3816 functions, give functions a meaningful name, add comments.
3817 (check_range): New function - Replace operand size calculation
3818 with range checking.
3819 (assemble_insn): Update Algorithm, improve error issuing.
3821 (process_label_constant): Bug fix regarding COP_BRANCH_INS relocation
3826 * config/tc-m32r.c (md_pcrel_from_section): Fixed a pcrel relocte
3827 miss between different section in the same module.
3828 (tc_gen_reloc): Likewise.
3832 * gas/config/tc-avr.c (mcu_types): Add support for atmega165,
3833 atmega325, atmega3250, atmega645 and atmega6450.
3837 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
3838 permissible for the selected instruction suffix.
3839 (process_suffix): For DefaultSize instructions, suppressing the
3840 guessing of a 'q' suffix if the instruction doesn't support it is
3841 pointless, because only an 'l' suffix can be guessed in this place.
3845 * config/tc-iq2000.c: Remove support for IQ10 processor.
3846 Convert to ISO C90 formatting.
3847 * config/tc-iq2000.h: Likewise.
3851 * config/tc-mn10300.c (md_relax_table): More fixes to the offsets
3852 in this table. They should be correct now.
3856 * config/tc-i386.h (CpuMMX2): Declare. Artificial classifier to
3857 indicate the MMX extensions added by both SSE and 3DNow!A.
3858 (Cpu3dnowA): Declare.
3859 (CpuUnknownFlags): Update.
3860 * config/tc-i386.c (cpu_sub_arch_name): Declare.
3861 (cpu_arch): i586 and pentium do not imply MMX. i686 and pentiumpro do
3862 neither imply SSE nor MMX. k6 implies MMX. k6_2 additionally implies
3863 3DNow!. Athlon additionally implies 3DNow!A. Several new
3864 entries (those starting with a dot are for sub-arch specification).
3865 (set_cpu_arch): Handle sub-arch specifications.
3866 (parse_insn): Distinguish between instructions not supported because
3867 of insufficient CPU features and because of 64-bit mode.
3868 * doc/c-i386.texi: Describe enhanced .arch directive.
3872 * config/tc-xtensa.c (xg_add_opcode_fix): Set fx_no_overflow.
3876 * dwarf2dbg.c (dwarf2_finish): Don't write a .debug_line section
3877 without a corresponding .debug_info section.
3881 * read.c (potable): Add "error" and "warning".
3882 (s_errwarn): New function.
3883 * read.h (s_errwarn): Declare.
3884 * doc/as.texinfo (Error, Warning): Document .error and .warning.
3888 * config/tc-tic54x.c (tic54x_adjust_symtab): Adjust call to
3893 * config/tc-msp430.c (struct rcodes_s, MSP430_RLC, msp430_rcodes,
3894 struct hcodes_s, msp430_hcodes): From include/opcode/msp430.h.
3898 * config/obj-coff.c (c_dot_file_symbol): Add "app" param.
3899 (coff_adjust_symtab): Adjust call.
3900 (crawl_symbols): Likewise.
3901 * config/obj-coff.h (c_dot_file_symbol): Add "app" param.
3902 (obj_app_file): Adjust.
3906 * configure.in: Enable bfd_assember for the MAXQ port.
3907 * configure: Regenerate.
3912 * config/tc-xtensa.c (finish_vinsn): Clear pending instruction if
3913 there is a conflict.
3914 (check_t1_t2_reads_and_writes): Check for both reads and writes to
3915 interfaces that are related as determined by xtensa_interface_class_id.
3919 * config/tc-mn10300.c (md_relax_table): Fix off by one negative
3920 offsets for conditional branches.
3924 * config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
3928 * config/tc-xtensa.c (update_next_frag_state): Always add a NOP if
3929 relaxing at the end of a loop. Don't mark frags as UNREACHABLE or
3931 (relax_frag_immed): Update call to update_next_frag_state.
3935 * obj.h (struct format_ops <app_file>): Add int param.
3936 * read.h (s_app_file_string): Likewise.
3937 * read.c (s_app_file_string): Likewise.
3938 (s_app_file): Adjust s_app_file_string call.
3939 * config/tc-mips.c (s_mips_file): Likewise.
3940 * config/obj-coff.h (obj_app_file): Add app param.
3941 * config/obj-ecoff.h (obj_app_file): Likewise.
3942 * config/obj-multi.h (obj_app_file): Likewise.
3943 * config/obj-elf.h (elf_file_symbol): Likewise.
3944 * config/obj-elf.c (elf_file_symbol): Only emit one file symbol
3945 if called for # preprocessor lines.
3950 * symbols.c (resolve_symbol_value): Convert weak symbols only
3952 (symbol_equated_reloc_p): Don't equate weaks when relocating
3953 only for Windows PECOFF.
3957 * config/tc-crx.c (print_insn): Check and set insn_addr.
3958 * config/tc-crx.h (md_frag_check): Define.
3963 * configure.in: Add support for new target maxq-coff.
3964 * configure: Regenerate.
3965 * NEWS: Mention new support.
3966 * config/tc-maxq.c: New file.
3967 * config/tc-maxq.h: New file.
3968 * config/obj-coff.h: Add support for maxq-coff.
3972 * symbols.c (any_external_name): Define.
3973 (resolve_symbol_value): Convert weak symbols.
3974 (S_SET_EXTERNAL): Support any_external_name.
3975 (S_SET_NAME): Qualify parameter const.
3976 (symbol_equated_reloc_p): Equate to weaks when relocating.
3977 * symbols.h (S_SET_NAME): Qualfiy parameter const.
3978 * tc.h (any_external_name): Declare.
3979 * config/obj-coff.c ("coff/pe.h"): Include for BFD
3981 (weak_is_altname): Declare and define.
3982 (weak_name2altname): Same.
3983 (weak_altname2name): Same.
3984 (weak_uniquify): Same.
3985 (weak_altprefix): Define.
3986 (obj_coff_weak): Change .weak syntax and handling.
3987 (coff_frob_symbol): Fix PE weak symbol alternates.
3988 * config/obj-coff.h (USE_UNIQUE): Define.
3989 * config/tc-i386.c (md_apply_fix3): Assume weak symbols
3990 are in another segment.
3991 (tc_gen_reloc): Remove broken addend hack.
3992 doc/as.texinfo: Update.
3996 * config/tc-xtensa.c (total_frag_text_expansion): New.
3997 (md_estimate_size_before_relax): Use it.
3998 (find_address_of_next_align_frag): Likewise.
4002 * config/tc-crx.c: Rename argument types.
4003 (processing_arg_number): Rename to 'cur_arg_num'.
4004 (get_number_of_bits): Rename to 'set_operand_size'.
4005 (get_operandtype): Rename to 'parse_operand', totally rewrite.
4006 (set_cons_rparams): Rename to 'set_operand', totally rewrite.
4007 (set_indexmode_parameters): Remove function, integrate its code into
4009 (set_operand_size): Get rid of 'Operand Number' function parameter -
4010 use global variable 'cur_arg_num' instead.
4011 Use a local 'argument' pointer to reference the current argument.
4012 (parse_operand): Likewise.
4013 (set_operand): Likewise.
4014 (process_label_constant): Likewise.
4018 * config/tc-xtensa.c: Remove XTENSA_SECTION_RENAME ifdefs.
4019 (add_section_rename): Delete. Inlined into...
4020 (build_section_rename): ...here. Use xstrdup instead of strdup.
4021 (xtensa_section_rename): Drop "const" from argument and return types.
4022 (md_show_usage): Indent to match show_usage().
4023 * config/tc-xtensa.h: Remove XTENSA_SECTION_RENAME ifdefs.
4024 (tc_canonicalize_section_name): Define.
4025 (md_elf_section_rename): Remove unused macro.
4026 * doc/as.texinfo (Overview): Document Xtensa --rename-section option.
4027 * doc/c-xtensa.texi (Xtensa Options): Likewise.
4028 (Frame Directive): Delete.
4032 * configure.in: Remove arm-*-oabi and thumb-*-oabi.
4033 * config/tc-arm.c (target_oabi): Delete.
4034 (md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks.
4035 (arm_opts): Remove moabi.
4036 * doc/as.texinfo (Overview): Remove documentation of -moabi.
4037 * doc/c-arm.texi (ARM Options): Likewise.
4038 * configure: Regenerated.
4042 * configure.in (crisv32): Recognize. AC_DEFINE_UNQUOTED
4043 DEFAULT_CRIS_ARCH. Handle crisv32-*-linux-gnu* like
4044 cris-*-linux-gnu* and crisv32-*-* like cris-*-*.
4045 * configure: Regenerate.
4046 * config/tc-cris.c (enum cris_archs): New.
4047 (cris_mach, cris_arch_from_string, s_cris_arch, get_sup_reg)
4048 (cris_insn_ver_valid_for_arch): New functions.
4049 (DEFAULT_CRIS_ARCH): New macro, default to cris_any_v0_v10.
4050 (cris_arch): New variable.
4051 (md_pseudo_table): New pseudo .arch.
4052 (err_for_dangerous_mul_placement): Initialize according to
4054 (STATE_COND_BRANCH): Renamed from STATE_CONDITIONAL_BRANCH.
4056 (STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON)
4057 (STATE_ABS_BRANCH_V32, STATE_LAPC, BRANCH_BF_V32, BRANCH_BB_V32)
4058 (BRANCH_WF_V32, BRANCH_WB_V32): New.
4059 (BRANCH_BF, BRANCH_BB, BRANCH_WF, BRANCH_WB): Don't undef after
4060 use in md_cris_relax_table.
4061 (md_cris_relax_table): Add entries for STATE_COND_BRANCH_V32,
4062 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
4063 Update and improve head comment.
4064 (OPTION_PIC): Define in terms of previous option, OPTION_US.
4065 (OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): Similar.
4067 (md_longopts): New option --march=...
4068 (cris_any_v0_v10_long_jump_size, crisv32_long_jump_size): New
4070 (md_long_jump_size): Initialize in terms of DEFAULT_CRIS_ARCH.
4071 (HANDLE_RELAXABLE): New macro.
4072 (md_estimate_size_before_relax): Use HANDLE_RELAXABLE for common
4073 cases. Check for weak symbols and assume not relaxable. Handle
4074 STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON,
4075 STATE_ABS_BRANCH_V32, STATE_LAPC. Use new variable symbolP, not
4077 (md_convert_frag): Handle STATE_COND_BRANCH_V32,
4078 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
4079 (cris_create_short_jump): Adjust for CRISv32.
4080 (cris_relax_frag): Handle new states.
4081 (md_create_long_jump): Ditto. Emit error for common_v10_v32.
4082 (md_begin): Define symbols "..asm.arch.cris.v32",
4083 "..asm.arch.cris.v10", "..asm.arch.cris.common_v10_v32" and
4084 "..asm.arch.cris.any_v0_v10". Use cris_insn_ver_valid_for_arch
4085 when entering opcode table entry points.
4086 (md_assemble): Adjust branch handling for CRISv32. Handle LAPC
4087 relaxation. In fix_new_exp call for main insn, pass 1 for pcrel
4088 parameter for 8, 16 and 32-bit pc-relative insns and LAPC.
4089 (cris_process_instruction): Initialize out_insnp->insn_type to
4090 CRIS_INSN_NONE, not CRIS_INSN_NORMAL.
4091 <case ']', '[', 'A', 'd', 'Q', 'N', 'n', 'Y', 'U', 'u', 'T'>: New
4093 <case 'm'>: Check that modified_char == '.'.
4094 <invalid operands>: Consume the rest of the line.
4095 When operands don't match, skip over subsequent insns with
4096 non-matching version specifier but same mnemonic.
4097 <immediate constant, case SIZE_SPEC_REG>: Immediate operands for
4098 special registers in CRISv32 are always 32 bit long.
4099 <immediate constant, case SIZE_FIELD_SIGNED, SIZE_FIELD_UNSIGNED>:
4101 (get_gen_reg): Only recognize "PC" when followed by "+]" for v32
4102 and compatible. Recognize "ACR" for v32, unless followed by "+".
4103 (get_spec_reg): Consider cris_arch when looking up register.
4104 (get_autoinc_prefix_or_indir_op): Don't recognize assignment for
4106 (get_3op_or_dip_prefix_op): Check for ']' after seeing '[rN+'.
4107 (cris_get_expression): Restore input_line_pointer if failing "early".
4108 (get_flags): Consider cris_arch and recognize flags accordingly.
4109 (branch_disp): Adjust for CRISv32.
4110 (gen_cond_branch_32): Similar. Emit error for common_v10_v32.
4111 (cris_number_to_imm): Use as_bad_where, not as_bad. Remove
4112 related FIXME. Don't insist on BFD_RELOC_32_PCREL fixup to be
4113 resolved. Don't enter zeros in object file for
4115 <case BFD_RELOC_CRIS_LAPCQ_OFFSET, BFD_RELOC_CRIS_SIGNED_16>
4116 <case BFD_RELOC_CRIS_SIGNED_8>: New case.
4117 (md_parse_option): Break out "return 1".
4118 <OPTION_ARCH> New case.
4119 (tc_gen_reloc): <case BFD_RELOC_CRIS_LAPCQ_OFFSET>
4120 <case BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_SIGNED_8>
4121 <case BFD_RELOC_CRIS_UNSIGNED_8, BFD_RELOC_CRIS_UNSIGNED_16>
4122 <case BFD_RELOC_32_PCREL>: New cases.
4123 Addends for non-zero fx_pcrel are too in fx_offset.
4124 (md_show_usage): Show --march=<arch>.
4125 (md_apply_fix3): Adjust val for BFD_RELOC_CRIS_LAPCQ_OFFSET.
4126 (md_pcrel_from): BFD_RELOC_CRIS_LAPCQ_OFFSET is PC-relative too.
4127 (s_syntax) <struct syntaxes>: Properly constify member operand.
4128 * config/tc-cris.h (TARGET_MACH): Define.
4129 (cris_mach): Declare.
4130 * doc/as.texinfo (Overview) <CRIS>: Add --march=...
4131 * doc/c-cris.texi (CRIS-Symbols): New node for built-in symbols.
4132 (CRIS-Opts): Document --march=...
4133 (CRIS-Pseudos): Document .arch.
4137 * config/tc-i386.c (set_intel_syntax): Allow % in symbol names when
4138 intel syntax and no register prefix, allow $ in symbol names when
4140 (set_16bit_gcc_code_flag): Replace literal 'l' by LONG_MNEM_SUFFIX.
4141 (intel_float_operand): Add fourth return value indicating math control
4142 operations. Make classification more precise.
4143 (md_assemble): Complain if memory operand of mov[sz]x has no size
4145 (parse_insn): Translate word operands to floating point instructions
4146 operating on integers as well as control instructions to short ones
4147 as expected by AT&T syntax. Translate 'd' suffix to short one only for
4148 floating point instructions operating on non-integer operands.
4149 (match_template): Remove fldcw special case. Adjust q-suffix handling
4150 to permit it on fild/fistp/fisttp in AT&T mode.
4151 (process_suffix): Don't guess DefaultSize insns' suffix from
4152 stackop_size for certain floating point control instructions. Guess
4153 suffix for branch and [ls][gi]dt based on flag_code. Split error
4154 messages for Intel and AT&T syntax, and make the condition more strict
4155 for the former. Adjust suppressing of generation of operand size
4157 (intel parser): Allow the full set of MASM operators. Add FWORD, TBYTE,
4158 OWORD, and XMMWORD operand size specifiers (TBYTE replaces XWORD). Add
4159 more error checking.
4160 * config/tc-i386.h (BYTE_PTR WORD_PTR DWORD_PTR QWORD_PTR XWORD_PTR
4161 SHORT OFFSET_FLAT FLAT NONE_FOUND): Remove unused defines.
4165 * symbols.c (colon) [!WORKING_DOT_WORD]: Don't declare
4166 md_short_jump_size, md_long_jump_size.
4167 * write.c [!WORKING_DOT_WORD]: Ditto.
4168 * tc.h [!WORKING_DOT_WORD]: Declare them here. Drop const
4170 * config/tc-cris.h (md_short_jump_size, md_long_jump_size): Don't
4172 * config/tc-cris.c (md_short_jump_size, md_long_jump_size): Drop
4173 const qualifier in these definitions.
4174 * config/tc-i370.c, config/tc-m68k.c, config/tc-pdp11.c,
4175 config/tc-s390.c, config/tc-tahoe.c, config/tc-vax.c: Ditto.
4179 * dwarf2dbg.c (dwarf2_finish): Check for the existence of a file
4180 table before deciding to produce a .debug_line section to match up
4181 with a user provided .debug_info section.
4185 * config/tc-crx.c (getreg_image): Bug fix, a return value was
4186 mistakenly omitted from CRX_C_REGTYPE and CRX_CS_REGTYPE cases.
4190 * config/tc-crx.c: Remove global variable 'post_inc_mode'.
4191 (get_flags): New function.
4192 (get_number_of_bits): Edit comments, update numeric values to
4194 (process_label_constant): Don't support the colon
4195 format (SYMBOL:[s|m|l]).
4196 (set_cons_rparams): Support argument type 'arg_rbase'.
4197 (get_operandtype): Bug fix in 'rbase' operand type parsing.
4198 (handle_LoadStor): Bug fix, first handle post-increment mode.
4199 (getreg_image): Remove redundant code, update according to latest
4201 (print_constant): Bug fix relate to 3-word instructions.
4202 (assemble_insn): Bug fix, when matching instructions, verify also
4203 instruction type (not only mnemonic).
4204 Add various error checking.
4205 (preprocess_reglist): Support HI/LO and user registers.
4209 * config/tc-ia64.c (fixup_unw_records): Don't let the "t" value
4210 in an epilogue directive go negative.
4215 * config/tc-ia64.c (emit_one_bundle): Decrement md.num_slots_in_use
4216 after reporting template error during manual bundling. Reported
4221 * Makefile.am: Run dep-am.
4222 * aclocal.m4: Regenerate with automake 1.9.2.
4223 * Makefile.in: Regenerate with automake 1.9.2.
4224 * doc/Makefile.in: Likewise.
4226 * config/tc-arm.c: Include "dw2gencfi.h".
4227 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
4229 * config/tc-arm.h (TARGET_USE_CFIPOP, DWARF2_DEFAULT_RETURN_COLUMN)
4230 (DWARF2_CIE_DATA_ALIGNMENT, tc_regname_to_dw2regnum)
4231 (tc_cfi_frame_initial_instructions): Define.
4232 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
4237 * config/tc-crx.c (assemble_insn): Check unsigned immediate
4239 Update coprocessor id to be unsigned immediate.
4243 * config/tc-i386.c (O_secrel): Delete.
4244 (tc_pe_dwarf2_emit_offset): New function.
4245 * config/tc-i386.h (O_secrel): Define as O_md1.
4246 (TC_DWARF2_EMIT_OFFSET): Define.
4250 * config/tc-xstormy16.c (xstormy16_cons_fix_new): Accept and
4251 ignore @fptr() directives for 4-byte fixups.
4255 * Makefile.am: Run "make dep-am"
4256 * Makefile.in: Regenerate.
4260 * doc/c-xtensa.texi (Xtensa Options, Absolute Literals Directive):
4261 Remove comments about placement of literal pools.
4262 (Literal Directive): Update description of literal placement.
4263 (Literal Prefix Directive): Remove statement that this does not apply
4264 to absolute-mode literals. Describe new section naming scheme.
4268 * config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq.
4269 (is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode,
4270 is_windowed_return_opcode): Delete.
4271 (xtensa_frob_label): Use get_subseg_target_freq.
4272 (md_assemble): Inline call to is_entry_opcode.
4273 (xtensa_handle_align): Inline call to get_frag_is_literal.
4274 (relaxation_requirements): Inline call to is_jx_opcode.
4275 (emit_single_op): Inline call to is_movi_opcode.
4276 (xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn,
4277 get_frag_is_no_transform, is_entry_opcode, and
4278 set_frag_is_specific_opcode. Use get_subseg_total_freq.
4279 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags,
4280 xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed):
4281 Inline calls to get_frag_is_no_transform.
4282 (next_instrs_are_b_retw): Inline call to is_windowed_return_opcode.
4283 (xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and
4284 get_frag_is_no_transform.
4285 (convert_frag_immed_finish_loop): Inline calls to get_expression_value
4286 and set_frag_is_no_transform.
4287 (get_expression_value): Delete.
4288 (subseg_map struct): Rename cur_total_freq to total_freq. Rename
4289 cur_target_freq to target_freq.
4290 (get_subseg_info): Split out code to create a new map entry into ...
4291 (add_subseg_info): ... this new function.
4292 (get_last_insn_flags): Check if get_subseg_info succeeded.
4293 (set_last_insn_flags): Call add_subseg_info if needed.
4294 (get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New.
4295 (xtensa_reorder_segments): Compute last_sec while counting sections.
4296 Remove call to get_last_sec.
4297 (get_last_sec): Delete.
4298 (cache_literal_section): Inline call to retrieve_literal_seg and its
4299 callees, seg_present and add_seg_list.
4300 (retrieve_literal_seg, seg_present, add_seg_list): Delete.
4301 (get_frag_is_insn, get_frag_is_no_transform,
4302 set_frag_is_specific_opcode, set_frag_is_no_transform): Delete.
4303 * config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
4307 * config/tc-xtensa.c: Use ISO C90 formatting.
4308 * config/tc-xtensa.h: Likewise.
4309 * config/xtensa-istack.h: Likewise.
4310 * config/xtensa-relax.c: Likewise.
4311 * config/xtensa-relax.h: Likewise.
4315 * config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to
4318 * doc/c-arm.texi: Document that we actually support -meabi=4, not
4323 * doc/as.texinfo (VTableEntry, VTableInherit): Add "directive" to index
4325 (Acknowledgements): Use "GAS" instead of AS variable.
4329 * config/tc-i386.c: Include "elf/x86-64.h".
4330 (i386_elf_section_type): New function.
4331 * config/tc-i386.h (md_elf_section_type): Define.
4332 (i386_elf_section_type): New prototype.
4336 * config/m68k-parse.h (enum m68k_register): New control register,
4338 * config/tc-m68k.c: Correct control register set for MCF5249.
4343 * config/tc-xtensa.c (absolute_literals_supported): New global flag.
4344 (UNREACHABLE_MAX_WIDTH): Define.
4345 (XTENSA_FETCH_WIDTH): Delete.
4346 (cur_vinsn, xtensa_fetch_width, xt_saved_debug_type, past_xtensa_end,
4347 prefer_const16, prefer_l32r): New global variables.
4348 (LIT4_SECTION_NAME): Define.
4349 (lit4_state struct): Add lit4_seg_name and lit4_seg fields.
4350 (XTENSA_PROP_*, GET_XTENSA_PROP_*, SET_XTENSA_PROP_*): Define.
4351 (frag_flags struct): New.
4352 (xtensa_block_info struct): Move from tc-xtensa.h. Add flags field.
4353 (subseg_map struct): Add cur_total_freq and cur_target_freq fields.
4354 (bitfield, bit_is_set, set_bit, clear_bit): Define.
4355 (MAX_FORMATS): Define.
4356 (op_placement_info struct, op_placement_table): New.
4357 (O_pltrel, O_hi16, O_lo16): Define.
4358 (directiveE enum): Rename directive_generics to directive_transform.
4359 Delete directive_relax. Add directive_schedule,
4360 directive_absolute_literals, and directive_last_directive.
4361 (directive_info): Rename "generics" to "transform". Delete "relax".
4362 Add "schedule" and "absolute-literals".
4363 (directive_state): Adjust entries to match changes in directive_info.
4364 (xtensa_relax_statesE, RELAX_IMMED_MAXSTEPS): Move to tc-xtensa.h.
4365 (xtensa_const16_opcode, xtensa_movi_opcode, xtensa_movi_n_opcode,
4366 xtensa_l32r_opcode, xtensa_nop_opcode, xtensa_rsr_lcount_opcode): New.
4367 (xtensa_j_opcode, xtensa_rsr_opcode): Delete.
4368 (align_only_targets, software_a0_b_retw_interlock,
4369 software_avoid_b_j_loop_end, maybe_has_b_j_loop_end,
4370 software_avoid_short_loop, software_avoid_close_loop_end,
4371 software_avoid_all_short_loops, specific_opcode): Delete.
4372 (warn_unaligned_branch_targets): New.
4373 (workaround_a0_b_retw, workaround_b_j_loop_end, workaround_short_loop,
4374 workaround_close_loop_end, workaround_all_short_loops): Default FALSE.
4375 (option_[no_]link_relax, option_[no_]transform,
4376 option_[no_]absolute_literals, option_warn_unaligned_targets,
4377 option_prefer_l32r, option_prefer_const16, option_target_hardware):
4379 (option_[no_]align_only_targets, option_literal_section_name,
4380 option_text_section_name, option_data_section_name,
4381 option_bss_section_name, option_eb, option_el): Delete.
4382 (md_longopts): Add entries for: [no-]transform, [no-]absolute-literals,
4383 warn-unaligned-targets, prefer-l32r, prefer-const16, [no-]link-relax,
4384 and target-hardware. Delete entries for [no-]target-align-only,
4385 literal-section-name, text-section-name, data-section-name, and
4387 (md_parse_option): Handle new options and remove old ones. Accept but
4388 ignore [no-]density options. Warn for [no-]generics and [no-]relax
4389 and treat them as [no-]transform.
4390 (md_show_usage): Add new options and remove old ones.
4391 (xtensa_setup_hw_workarounds): New.
4392 (md_pseudo_table): Change "word" entry to use xtensa_elf_cons. Add
4393 "long", "short", "loc" and "frequency" entries.
4394 (use_generics): Rename to ...
4395 (use_transform): ... this function. Add past_xtensa_end check.
4396 (use_longcalls): Add past_xtensa_end check.
4397 (code_density_available, can_relax): Delete.
4398 (do_align_targets): New.
4399 (get_directive): Accept dashes in directive names. Warn about
4400 [no-]generics and [no-]relax directives and treat them as
4402 (xtensa_begin_directive): Call md_flush_pending_output only for some
4403 directives. Check for directives inside instruction bundles. Warn
4404 about deprecated ".begin literal" usage. Warn and ignore [no-]density
4405 directives. Handle new directives. Check generating_literals flag
4407 (xtensa_end_directive): Check for directives inside instruction
4408 bundles. Warn and ignore [no-]density directives. Handle new
4409 directives. Call xtensa_set_frag_assembly_state.
4410 (xtensa_loc_directive_seen, xtensa_dwarf2_directive_loc,
4411 xtensa_dwarf2_emit_insn): New.
4412 (xtensa_literal_position): Call md_flush_pending_output. Do not check
4413 use_literal_section flag.
4414 (xtensa_literal_pseudo): Call md_flush_pending_output. Handle absolute
4415 literals. Use xtensa_elf_cons to parse the expression.
4416 (xtensa_literal_prefix): Do not check use_literal_section. Support
4417 ".lit4" sections for absolute literals. Change prefix convention to
4418 replace ".text" (or ".t" in a linkonce section). No need to call
4420 (xtensa_frequency_pseudo, xtensa_elf_cons, xtensa_elf_suffix): New.
4421 (expression_end): Handle closing braces and colons.
4422 (PLT_SUFFIX, plt_suffix): Delete.
4423 (expression_maybe_register): Use new xtensa-isa.h functions. Use
4424 xtensa_elf_suffix instead of checking for plt suffix, and handle O_lo16
4425 and O_hi16 expressions as well.
4426 (tokenize_arguments): Handle closing braces and colons.
4427 (parse_arguments): Use new xtensa-isa.h functions. Handle "invisible"
4428 operands and paired register syntax.
4429 (get_invisible_operands): New.
4430 (xg_translate_sysreg_op): Handle new Xtensa LX RSR/WSR/XSR syntax. Use
4431 new xtensa-isa.h functions.
4432 (xtensa_translate_old_userreg_ops, xtensa_translate_zero_immed): New.
4433 (xg_translate_idioms): Check if inside bundle. Use use_transform.
4434 Handle new Xtensa LX RSR/WSR/XSR syntax. Remove code to widen density
4435 instructions. Use xtensa_translate_zero_immed.
4436 (operand_is_immed, operand_is_pcrel_label): Delete.
4437 (get_relaxable_immed): Use new xtensa-isa.h functions.
4438 (get_opcode_from_buf): Add slot parameter. Use new xtensa-isa.h
4440 (xtensa_print_insn_table, print_vliw_insn): New.
4441 (is_direct_call_opcode): Use new xtensa-isa.h functions.
4442 (is_call_opcode, is_loop_opcode, is_conditional_branch_opcode,
4443 is_branch_or_jump_opcode): Delete.
4444 (is_movi_opcode, decode_reloc, encode_reloc, encode_alt_reloc): New.
4445 (opnum_to_reloc, reloc_to_opnum): Delete.
4446 (xtensa_insnbuf_set_operand, xtensa_insnbuf_get_operand): Use new
4447 xtensa-isa.h functions. Operate on one slot of an instruction.
4448 (xtensa_insnbuf_set_immediate_field, is_negatable_branch,
4449 xg_get_insn_size): Delete.
4450 (xg_get_build_instr_size): Use xg_get_single_size.
4451 (xg_is_narrow_insn, xg_is_single_relaxable_insn): Update calls to
4452 xg_build_widen_table. Use xg_get_single_size.
4453 (xg_get_max_narrow_insn_size): Delete.
4454 (xg_get_max_insn_widen_size, xg_get_max_insn_widen_literal_size,
4455 xg_is_relaxable_insn): Update calls to xg_build_widen_table. Use
4457 (xg_build_to_insn): Record the loc field. Handle OP_OPERAND_HI16U and
4458 OP_OPERAND_LOW16U. Check xg_valid_literal_expression.
4459 (xg_expand_to_stack, xg_expand_narrow): Update calls to
4460 xg_build_widen_table. Use xg_get_single_size.
4461 (xg_immeds_fit): Use new xtensa-isa.h functions. Update call to
4463 (xg_symbolic_immeds_fit): Likewise. Also handle O_lo16 and O_hi16, and
4464 treat weak symbols conservatively.
4465 (xg_check_operand): Use new xtensa-isa.h functions.
4466 (is_dnrange): Delete.
4467 (xg_assembly_relax): Inline previous calls to tinsn_copy.
4468 (xg_finish_frag): Specify separate relax states for the frag and slot0.
4469 (is_branch_jmp_to_next, xg_add_branch_and_loop_targets): Use new
4470 xtensa-isa.h functions.
4471 (xg_instruction_matches_option_term, xg_instruction_matches_or_options,
4472 xg_instruction_matches_options): New.
4473 (xg_instruction_matches_rule): Handle O_register expressions. Call
4474 xg_instruction_matches_options.
4475 (transition_rule_cmp): New.
4476 (xg_instruction_match): Update call to xg_build_simplify_table.
4477 (xg_build_token_insn): Record loc fields.
4478 (xg_simplify_insn): Check is_specific_opcode field and
4479 density_supported flag.
4480 (xg_expand_assembly_insn): Skip checking code_density_available. Use
4481 new xtensa-isa.h functions. Call use_transform instead of can_relax.
4482 (xg_assemble_literal): Add error handling for O_big. Call
4483 record_alignment. Handle O_pltrel.
4484 (xg_valid_literal_expression): New.
4485 (xg_assemble_literal_space): Add slot parameter. Remove call to
4486 set_expr_symbol_offset. Add call to record_alignment. Update call to
4488 (xg_emit_insn): Delete.
4489 (xg_emit_insn_to_buf): Add format parameter. Update calls to
4490 xg_add_opcode_fix and xtensa_insnbuf_to_chars.
4491 (xg_add_opcode_fix): Change opcode parameter to tinsn and add format
4492 and slot parameters. Handle new "alternate" relocations for absolute
4493 literals and CONST16 instructions. Check for bad uses of O_lo16 and
4494 O_hi16. Use new xtensa-isa.h functions.
4495 (xg_assemble_tokens): Delete.
4496 (is_register_writer): Use new xtensa-isa.h functions.
4497 (is_bad_loopend_opcode): Check for xtensa_rsr_lcount_opcode instead of
4498 old-style RSR from LCOUNT.
4499 (next_frag_opcode): Delete.
4500 (next_frag_opcode_is_loop, next_frag_format_size, frag_format_size,
4501 update_next_frag_state): New.
4502 (update_next_frag_nop_state): Delete.
4503 (next_frag_pre_opcode_bytes): Use next_frag_opcode_is_loop.
4504 (xtensa_mark_literal_pool_location): Check use_literal_section flag and
4505 the state of the absolute-literals directive. Add calls to
4506 record_alignment and xtensa_set_frag_assembly_state. Call
4507 xtensa_switch_to_non_abs_literal_fragment instead of
4508 xtensa_switch_to_literal_fragment.
4510 (assemble_nop): Use build_nop. Update call to xtensa_insnbuf_to_chars.
4511 (get_expanded_loop_offset): Change check for undefined opcode to an
4513 (xtensa_set_frag_assembly_state, relaxable_section,
4514 xtensa_find_unmarked_state_frags, xtensa_find_unaligned_branch_targets,
4515 xtensa_find_unaligned_loops, xg_apply_tentative_value): New.
4516 (md_begin): Update call to xtensa_isa_init. Initialize linkrelax to 1.
4517 Set lit4_seg_name. Call xg_init_vinsn. Initialize new global opcodes.
4518 Call init_op_placement_info_table and xtensa_set_frag_assembly_state.
4519 (xtensa_init_fix_data): New.
4520 (xtensa_frob_label): Reset label symbol to the current frag. Check
4521 do_align_targets and generating_literals flag. Propagate frequency
4522 info to new alignment frag. Call xtensa_set_frag_assembly_state.
4523 (xtensa_unrecognized_line): New.
4524 (xtensa_flush_pending_output): Check if inside a bundle. Add a call
4525 to xtensa_set_frag_assembly_state.
4526 (error_reset_cur_vinsn): New.
4527 (md_assemble): Remove check for literal frag. Remove call to
4528 istack_init. Call use_transform instead of use_generics. Parse
4529 explicit instruction format specifiers. Move code for
4530 a0_b_retw_interlock workaround to xg_assemble_vliw_tokens. Call
4531 error_reset_cur_vinsn on errors. Add call to get_invisible_operands.
4532 Add dwarf2_where call. Remote automatic alignment for ENTRY
4533 instructions. Move call to xtensa_clear_insn_labels to the end.
4534 Rearrange to handle bundles.
4535 (xtensa_cons_fix_new): Delete.
4536 (xtensa_handle_align): New.
4537 (xtensa_frag_init): Call xtensa_set_frag_assembly_state. Remove
4538 assignment to is_no_density field.
4539 (md_pcrel_from): Use new xtensa-isa.h functions. Use decode_reloc
4540 instead of reloc_to_opnum. Handle "alternate" relocations.
4541 (xtensa_force_relocation, xtensa_check_inside_bundle,
4542 xtensa_elf_section_change_hook): New.
4543 (xtensa_symbol_new_hook): Delete.
4544 (xtensa_fix_adjustable): Check for difference of symbols with an
4545 offset. Check for external and weak symbols.
4546 (md_apply_fix3): Remove cases for XTENSA_OP{0,1,2} relocs.
4547 (md_estimate_size_before_relax): Return expansion for the first slot.
4548 (tc_gen_reloc): Handle difference of symbols by producing
4549 XTENSA_DIFF{8,16,32} relocs and by writing the value of the difference
4550 into the output. Handle new XTENSA_SLOT*_OP relocs by storing the
4551 tentative values into the output when linkrelax is set.
4552 (XTENSA_PROP_SEC_NAME): Define.
4553 (xtensa_post_relax_hook): Call xtensa_find_unmarked_state_frags.
4554 Create literal tables only if using literal sections. Create new
4555 property tables instead of old instruction tables. Check for unaligned
4556 branch targets and loops.
4557 (finish_vinsn, find_vinsn_conflicts, check_t1_t2_reads_and_writes,
4558 new_resource_table, clear_resource_table, resize_resource_table,
4559 resources_available, reserve_resources, release_resources,
4560 opcode_funcUnit_use_unit, opcode_funcUnit_use_stage,
4561 resources_conflict, xg_find_narrowest_format, relaxation_requirements,
4562 bundle_single_op, emit_single_op, xg_assemble_vliw_tokens): New.
4563 (xtensa_end): Call xtensa_flush_pending_output. Set past_xtensa_end
4564 flag. Update checks for workaround options. Call
4565 xtensa_mark_narrow_branches and xtensa_mark_zcl_first_insns.
4566 (xtensa_cleanup_align_frags): Add special case for branch targets.
4567 Check for and mark unreachable frags.
4568 (xtensa_fix_target_frags): Remove use of align_only_targets flag.
4569 Use RELAX_LOOP_END_BYTES in special case for negatable branch at the
4570 end of a zero-overhead loop body.
4571 (frag_can_negate_branch): Handle instructions with multiple slots.
4572 Use new xtensa-isa.h functions
4573 (xtensa_mark_narrow_branches, is_narrow_branch_guaranteed_in_range,
4574 xtensa_mark_zcl_first_insns): New.
4575 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags): Error if
4576 transformations are disabled.
4577 (next_instrs_are_b_retw): Use new xtensa-isa.h functions. Handle
4578 multislot instructions.
4579 (xtensa_fix_close_loop_end_frags, xtensa_fix_short_loop_frags):
4580 Likewise. Also error if transformations are disabled.
4581 (unrelaxed_frag_max_size): New.
4582 (unrelaxed_frag_min_insn_count, unrelax_frag_has_b_j): Use new
4583 xtensa-isa.h functions.
4584 (xtensa_sanity_check, is_empty_loop, is_local_forward_loop): Use
4585 xtensa_opcode_is_loop instead of is_loop_opcode.
4586 (get_text_align_power): Replace as_fatal with assertion.
4587 (get_text_align_fill_size): Iterate instead of using modulus when
4589 (get_noop_aligned_address): Assert that this is for a machine-dependent
4590 RELAX_ALIGN_NEXT_OPCODE frag. Use next_frag_opcode_is_loop,
4591 xg_get_single_size, and frag_format_size.
4592 (get_widen_aligned_address): Rename to ...
4593 (get_aligned_diff): ... this function. Add max_diff parameter.
4594 Remove handling of rs_align/rs_align_code frags. Use
4595 next_frag_format_size, get_text_align_power, get_text_align_fill_size,
4596 next_frag_opcode_is_loop, and xg_get_single_size. Compute max_diff
4597 and pass it back to caller.
4598 (xtensa_relax_frag): Use relax_frag_loop_align. Add code for new
4599 RELAX_SLOTS, RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN,
4600 RELAX_FILL_NOP, and RELAX_UNREACHABLE frag types. Check relax_seen.
4601 (relax_frag_text_align): Rename to ...
4602 (relax_frag_loop_align): ... this function. Assume loops can only be
4603 in the first slot of an instruction.
4604 (relax_frag_add_nop): Use assemble_nop instead of constructing an OR
4605 instruction. Remove call to frag_wane.
4606 (relax_frag_narrow): Rename to ...
4607 (relax_frag_for_align): ... this function. Extend to handle
4608 RELAX_FILL_NOP and RELAX_UNREACHABLE, as well as RELAX_SLOTS with
4609 RELAX_NARROW for the first slot.
4610 (find_address_of_next_align_frag, bytes_to_stretch): New.
4611 (future_alignment_required): Use find_address_of_next_align_frag and
4612 bytes_to_stretch. Look ahead to subsequent frags to make smarter
4613 alignment decisions.
4614 (relax_frag_immed): Add format, slot, and estimate_only parameters.
4615 Check if transformations are enabled for b_j_loop_end workaround.
4616 Use new xtensa-isa.h functions and handle multislot instructions.
4617 Update call to xg_assembly_relax.
4618 (md_convert_frag): Handle new RELAX_SLOTS, RELAX_UNREACHABLE,
4619 RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN, and RELAX_FILL_NOP
4621 (convert_frag_narrow): Add segP, format and slot parameters. Call
4622 convert_frag_immed for branch instructions. Adjust calls to
4623 tinsn_from_chars, tinsn_immed_from_frag, and xg_emit_insn_to_buf. Use
4624 xg_get_single_size and xg_get_single_format.
4625 (convert_frag_fill_nop): New.
4626 (convert_frag_immed): Add format and slot parameters. Handle multislot
4627 instructions and use new xtensa-isa.h functions. Update calls to
4628 tinsn_immed_from_frag and xg_assembly_relax. Check if transformations
4629 enabled for b_j_loop_end workaround. Use build_nop instead of
4630 assemble_nop. Check is_specific_opcode flag. Check for unreachable
4631 frags. Use xg_get_single_size. Handle O_pltrel.
4632 (fix_new_exp_in_seg): Remove check for old plt flag.
4633 (convert_frag_immed_finish_loop): Update calls to tinsn_from_chars and
4634 xtensa_insnbuf_to_chars. Call tinsn_immed_from_frag. Change check
4635 for loop opcode to an assertion. Mark all frags up to the end of the
4636 loop as not transformable.
4637 (get_last_insn_flags, set_last_insn_flags): Use get_subseg_info.
4638 (get_subseg_info): New.
4639 (xtensa_move_literals): Call xtensa_set_frag_assembly_state. Add null
4641 (xtensa_switch_to_literal_fragment): Rewrite to handle absolute
4642 literals and use xtensa_switch_to_non_abs_literal_fragment otherwise.
4643 (xtensa_switch_to_non_abs_literal_fragment): New.
4644 (cache_literal_section): Add is_code parameter and pass it through to
4645 retrieve_literal_seg.
4646 (retrieve_literal_seg): Add is_code parameter and use it to set the
4647 flags on the literal section. Handle case where head parameter is 0.
4648 (get_frag_is_no_transform, set_frag_is_specific_opcode,
4649 set_frag_is_no_transform): New.
4650 (xtensa_create_property_segments): Add end_property_function parameter
4651 and pass it through to add_xt_block_frags. Call bfd_get_section_flags
4652 and skip SEC_DEBUGGING and !SEC_ALLOC sections.
4653 (xtensa_create_xproperty_segments, section_has_xproperty): New.
4654 (add_xt_block_frags): Add end_property_function parameter and call it
4655 if it is non-zero. Call xtensa_frag_flags_init.
4656 (xtensa_frag_flags_is_empty, xtensa_frag_flags_init,
4657 get_frag_property_flags, frag_flags_to_number,
4658 xtensa_frag_flags_combinable, xt_block_aligned_size,
4659 xtensa_xt_block_combine, add_xt_prop_frags,
4660 init_op_placement_info_table, opcode_fits_format_slot,
4661 xg_get_single_size, xg_get_single_format): New.
4662 (istack_push): Inline call to tinsn_copy.
4663 (tinsn_copy): Delete.
4664 (tinsn_has_invalid_symbolic_operands): Handle O_hi16 and O_lo16 and
4665 CONST16 opcodes. Handle O_big, O_illegal, and O_absent.
4666 (tinsn_has_complex_operands): Handle O_hi16 and O_lo16.
4667 (tinsn_to_insnbuf): Use xg_get_single_format and new xtensa-isa.h
4668 functions. Handle invisible operands.
4669 (tinsn_to_slotbuf): New.
4670 (tinsn_check_arguments): Use new xtensa-isa.h functions.
4671 (tinsn_from_chars): Add slot parameter. Rewrite using xg_init_vinsn,
4672 vinsn_from_chars, and xg_free_vinsn.
4673 (tinsn_from_insnbuf): New.
4674 (tinsn_immed_from_frag): Add slot parameter and handle multislot
4675 instructions. Handle symbol differences.
4676 (get_num_stack_text_bytes): Use xg_get_single_size.
4677 (xg_init_vinsn, xg_clear_vinsn, vinsn_has_specific_opcodes,
4678 xg_free_vinsn, vinsn_to_insnbuf, vinsn_from_chars, expr_is_register,
4679 get_expr_register, set_expr_symbol_offset_diff): New.
4680 * config/tc-xtensa.h (MAX_SLOTS): Define.
4681 (xtensa_relax_statesE): Move from tc-xtensa.c. Add
4682 RELAX_CHECK_ALIGN_NEXT_OPCODE, RELAX_MAYBE_DESIRE_ALIGN, RELAX_SLOTS,
4683 RELAX_FILL_NOP, RELAX_UNREACHABLE, RELAX_MAYBE_UNREACHABLE, and
4685 (RELAX_IMMED_MAXSTEPS): Move from tc-xtensa.c.
4686 (xtensa_frag_type struct): Add is_assembly_state_set,
4687 use_absolute_literals, relax_seen, is_unreachable, is_specific_opcode,
4688 is_align, is_text_align, alignment, and is_first_loop_insn fields.
4689 Replace is_generics and is_relax fields by is_no_transform field.
4690 Delete is_text and is_longcalls fields. Change text_expansion and
4691 literal_expansion to arrays of MAX_SLOTS entries. Add arrays of
4692 per-slot information: literal_frags, slot_subtypes, slot_symbols,
4693 slot_sub_symbols, and slot_offsets. Add fr_prev field.
4694 (xtensa_fix_data struct): New.
4695 (xtensa_symfield_type struct): Delete plt field.
4696 (xtensa_block_info struct): Move definition to tc-xtensa.h. Add
4697 forward declaration here.
4698 (xt_section_type enum): Delete xt_insn_sec. Add xt_prop_sec.
4699 (XTENSA_SECTION_RENAME): Undefine.
4700 (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FORCE_RELOCATION, NO_PSEUDO_DOT,
4701 tc_unrecognized_line, md_do_align, md_elf_section_change_hook,
4702 HANDLE_ALIGN, TC_LINKRELAX_FIXUP, SUB_SEGMENT_ALIGN): Define.
4703 (TC_CONS_FIX_NEW, tc_symbol_new_hook): Delete.
4704 (unit_num_copies_func, opcode_num_units_func,
4705 opcode_funcUnit_use_unit_func, opcode_funcUnit_use_stage_func): New.
4706 (resource_table struct): New.
4707 * config/xtensa-istack.h (MAX_INSN_ARGS): Increase from 6 to 10.
4708 (TInsn struct): Add keep_wide, loc, fixup, record_fix, subtype,
4709 literal_space, symbol, sub_symbol, offset, and literal_frag fields.
4710 (tinsn_copy): Delete prototype.
4711 (vliw_insn struct): New.
4712 * config/xtensa-relax.c (insn_pattern_struct): Add options field.
4713 (widen_spec_list): Add option conditions for density and boolean
4714 instructions. Add expansions using CONST16 and conditions for using
4715 CONST16 vs. L32R. Use new Xtensa LX RSR/WSR syntax. Add entries for
4717 (simplify_spec_list): Add option conditions for density instructions.
4718 Add entry for NOP instruction.
4719 (append_transition): Add cmp function pointer parameter and use it to
4720 insert the new entry in order.
4721 (operand_function_LOW16U, operand_function_HI16U): New.
4722 (xg_has_userdef_op_fn, xg_apply_userdef_op_fn): Handle
4723 OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
4724 (enter_opname, split_string): Use xstrdup instead of strdup.
4725 (init_insn_pattern): Initialize new options field.
4726 (clear_req_or_option_list, clear_req_option_list,
4727 clone_req_or_option_list, clone_req_option_list, parse_option_cond):
4729 (parse_insn_pattern): Parse option conditions.
4730 (transition_applies): New.
4731 (build_transition): Use new xtensa-isa.h functions. Fix incorrectly
4732 swapped last arguments in calls to append_constant_value_condition.
4733 Call clone_req_option_list. Add warning about invalid opcode.
4734 Handle LOW16U and HI16U function names.
4735 (build_transition_table): Add cmp parameter and use it in calls to
4736 append_transition. Use new xtensa-isa.h functions. Check
4737 transition_applies before adding entries.
4738 (xg_build_widen_table, xg_build_simplify_table): Add cmp parameter and
4739 pass it through to build_transition_table.
4740 * config/xtensa-relax.h (ReqOrOptionList, ReqOrOption, ReqOptionList,
4741 ReqOption, transition_cmp_fn): New types.
4742 (OpType enum): Add OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
4743 (transition_rule struct): Add options field.
4744 * doc/as.texinfo (Overview): Update Xtensa options.
4745 * doc/c-xtensa.texi (Xtensa Options): Delete --[no-]density,
4746 --[no-]relax, and --[no-]generics options. Update descriptions of
4747 --text-section-literals and --[no-]longcalls. Add
4748 --[no-]absolute-literals and --[no-]transform.
4749 (Xtensa Syntax): Add description of syntax for FLIX instructions.
4750 Remove use of "generic" and "specific" terminology for opcodes.
4751 (Xtensa Registers): Generalize the syntax description to include
4752 user-defined register files.
4753 (Xtensa Automatic Alignment): Update.
4754 (Xtensa Branch Relaxation): Mention limitation of unconditional jumps.
4755 (Xtensa Call Relaxation): Linker can now remove most of the overhead.
4756 (Xtensa Directives): Remove confusing rules about precedence.
4757 (Density Directive, Relax Directive): Delete.
4758 (Schedule Directive): New.
4759 (Generics Directive): Rename to ...
4760 (Transform Directive): ... this node.
4761 (Literal Directive): Update for absolute literals. Missing
4762 literal_position directive is now an error.
4763 (Literal Position Directive): Update for absolute literals.
4764 (Freeregs Directive): Delete.
4765 (Absolute Literals Directive): New.
4766 (Frame Directive): Minor editing.
4767 * Makefile.am (DEPTC_xtensa_elf, DEPOBJ_xtensa_elf, DEP_xtensa_elf):
4768 Update dependencies.
4769 * Makefile.in: Regenerate.
4773 * config/tc-mips.c (append_insn): Use fix_new rather than fix_new_exp
4774 to build the second and third fixups for a composite relocation.
4775 (macro_read_relocs): New function.
4776 (macro_build): Use it.
4777 (s_cpsetup): Pass all three composite relocation codes to macro_build.
4778 Simplify fragging code accordingly.
4779 (s_gpdword): Use fix_new rather than fix_new_exp for the second part
4780 of the composite relocation. Set fx_tcbit in both fixups.
4784 * config/tc-mips.c (append_insn): Set fx_tcbit for composite relocs.
4785 (md_apply_fix3): Don't treat composite relocs as done.
4789 * macro.c (macro_expand_body): When ELF, use .LL rather than LL as
4790 prefix for symbol names generated from the LOCAL macro directive.
4792 * dw2gencfi.c (select_cie_for_fde): When separating CIE out from
4793 FDE, treat a DW_CFA_remember_state as we do a DW_CFA_advance_loc.
4797 * config/tc-crx.c (preprocess_reglist): Handle Co-processor
4799 (md_assemble): Add error checking for Co-Processor instructions.
4800 (get_cinv_parameters): Add 'b' option to invalidate the
4801 branch-target cache.
4805 * config/tc-arm.c (unwind): New variable.
4806 (vfp_sp_encode_reg): New function.
4807 (vfp_sp_reg_required_here): Use it.
4808 (vfp_sp_reg_list, vfp_dp_reg_list): Remove.
4809 (vfp_parse_reg_list): New function.
4810 (s_arm_unwind_fnstart, s_arm_unwind_fnend, s_arm_unwind_cantunwind,
4811 s_arm_unwind_personality, s_arm_unwind_personalityindex,
4812 s_arm_unwind_handlerdata, s_arm_unwind_save, s_arm_unwind_movsp,
4813 s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): New
4815 (md_pseudo_table): Add them.
4816 (do_vfp_reg2_from_sp2): Use vfp_parse_reg_list and vfp_sp_encode_reg.
4817 (do_vfp_sp2_from_reg2, vfp_sp_ldstm, vfp_dp_ldstm): Ditto.
4818 (set_section, add_unwind_adjustsp, flush_pending_unwind,
4819 finish_unwind_opcodes, start_unwind_section, create_unwind_entry,
4820 require_hashconst, add_unwind_opcode): New functions.
4821 * doc/c-arm.texi: Document unwinding opcodes.
4822 * NEWS: Mention the new feature.
4826 * config/tc-mips.c (md_apply_fix3): Remove erroneous assert.
4830 * config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for
4832 * config/tc-s390.c (md_apply_fix3): Likewise.
4833 * config/tc-sparc.c (md_apply_fix3): Likewise.
4837 * config/tc-arm.c (arm_elf_section_type): New function.
4838 (arm_elf_change_section): Set section link for exidx sections.
4839 * config/tc-arm.h (arm_elf_section_type): Add prototype.
4840 (md_elf_section_type): Define.
4844 * config/tc-pdp11.c (md_apply_fix3): Change to sign of the SOB
4845 instruction's offset.
4849 * (TARGET_FORMAT): Remove LynxOS COFF definition.
4853 * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
4854 asymbol *, instead use symbol_get_bfdsym.
4858 * config/tc-m68k.c (select_control_regs): Add mcf5249.
4862 * config/tc-arm.c (do_smi, do_nop): New functions.
4863 (insns): Add ARMv6ZK instructions.
4864 (md_apply_fix3): Handle BFD_RELOC_ARM_SMI.
4865 (tc_gen_reloc): Ditto.
4866 (arm_cpus): Add mpcore and arm1176.
4867 (arm_archs): Add armv6{k,z,zk}.
4868 * doc/c-arm.texi: Document new cores and architectures.
4872 * config/tc-arm.c: Use ISO C90 formatting.
4876 * config/tc-arm.c (mav_reg_required_here): Allow REG_TYPE_CN
4877 as alternative when REG_TYPE_MVF, REG_TYPE_MVD, REG_TYPE_MVFX or
4878 REG_TYPE_MVDX is expected.
4882 * doc/c-i386.texi (i386-Mnemonics): Fix typo.
4886 * config/tc-ia64.c (ENCODED_PSP_OFFSET): New.
4887 (output_rp_psprel, output_pfs_psprel, output_preds_psprel,
4888 output_spill_base, output_unat_psprel, output_lc_psprel,
4889 output_fpsr_psprel, output_priunat_psprel, output_bsp_psprel,
4890 output_bsprestore_psprel, output_rnat_psprel, output_spill_psprel,
4891 output_spill_psprel_p): Use it.
4895 * config/tc-crx.c (handle_LoadStor): New function.
4896 Handle load/stor unique instructions before parsing.
4900 * config/tc-arm.c (s_arm_rel31): New funciton.
4901 (md_pseudo_table): Add .rel31.
4902 (md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
4903 BFD_RELOC_32_PCREL and BFD_RELOC_ARM_PREL31.
4904 (tc_gen_reloc): Handle BFD_RELOC_ARM_PREL31 and BFD_RELOC_ARM_TARGET2.
4905 (arm_fix_adjustable): Return 0 for BFD_RELOC_ARM_TARGET2.
4906 (arm_parse_reloc): Add (target2).
4910 * Makefile.am: Run "make dep-am".
4911 * Makefile.in: Regenerate.
4912 * aclocal.m4: Regenerate.
4913 * configure: Regenerate.
4914 * doc/Makefile.in: Regenerate.
4915 * po/POTFILES.in: Regenerate.
4916 * po/gas.pot: Regenerate.
4920 * config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
4921 [!LLONG_MAX]: Ditto.
4925 * config/tc-arm.c: Rename RELABS to TARGET1.
4929 * messages.c (as_internal_value_out_of_range): Cast values passed
4930 to as_bad_where or as_warn_where to proper type.
4934 * config/tc-avr.c: Add support for
4935 atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.
4939 * dw2gencfi.c (select_cie_for_fde): When separating CIE out
4940 from FDE, treat a CFI_escape as we do a DW_CFA_advance_loc.
4944 * config/obj-elf.c (obj_elf_section_type): Handle init_array,
4945 fini_array and preinit_array section types.
4946 * config/tc-ia64.c (ia64_elf_section_type): Remove init_array
4948 * doc/as.texinfo: Document extra section types.
4952 * Makefile.am (TARG_ENV_HFILES): Add te-symbian.h.
4953 * Makefile.in: Regenerated.
4954 * configure.in: Set em for arm*-*-symbianelf*.
4955 * configure: Regenerated.
4956 * config/tc-arm.c (elf32_arm_target_format): Use Symbian target
4957 vectors when appropriate.
4958 * config/te-symbian.h: New file.
4962 * config/tc-crx.c (gettrap): Exception vector can be case
4964 (process_label_constant): Fix a 32-bit displacement bug in branch
4966 (get_operandtype) : Bug fix, wrong operand was used.
4967 (process_label_constant): Initialize relocation type to
4972 * tc-arm.c (arm_cpus, arm_fpus): Allow <cpu>-s as well as <cpu>s
4973 for synthesizable cores.
4975 * doc/c-arm.texi (ARM Options): Document canonical names of CPUs.
4979 * config/tc-msp430.c: Clean-up the code.
4980 (md_relax_table): New relax table.
4981 (mcu_types): Sort MCU types.
4982 (md_pseudo_table): Add .profiler pseudo handler.
4983 (pow2value): New function.
4984 (msp430_profiler): New function.
4985 (msp430_operands): Add new insns handlers.
4986 (msp430_srcoperand): Add register operand handler, allow complex
4988 (md_estimate_size_before_relax): Rewritten.
4989 (md_convert_frag): Rewritten.
4990 (msp430_relax_frag): New function.
4991 * config/tc-msp430.h (md_relax_frag): define macro
4992 * doc/c-msp430.texi: Update information.
4996 * as.c (std_shortopts): Allow -g to take an optional argument.
4997 (parse_args): Pass any switch starting with -g on to the backend
5002 * configure.in (arm*-*-symbianelf*): New target.
5003 (arm*-*-eabi*): Likewise.
5004 * configure: Regenerated.
5007 * config/tc-mips.c (append_insn): Handle delay slots in branch likely
5012 * config/tc-ia64.c (start_unwind_section): Add linkonce_empty
5013 argument, don't do anything if current section is not
5014 .gnu.linkonce.t.* and linkonce_empty is set.
5015 (generate_unwind_image, dot_endp): Adjust callers, call
5016 start_unwind_section (*, 1) if nothing will be put into the
5021 * as.c (MD_DEBUG_FORMAT_SELECTOR): Provide default definition.
5022 (show_usage): Add -g.
5023 (std_longopts): Add --gen-debug. Alpha sort the table.
5024 (parse_args): Print an error message if a switch is not handled.
5025 Handle the -g switch, calling md_debug_format_selector() if
5027 * NEWS: Mention new feature.
5028 * doc/as.texinfo: Document new switch.
5029 * doc/internals.texi: Document behaviour of md_parse_option.
5031 * config/tc-arm.c (md_parse_option): Do not issue an error message
5032 if the switch is not recognised.
5033 * config/tc-m68k.c (md_parse_option): Likewise.
5034 * config/tc-pdp11.c (md_parse_option): Likewise.
5035 * config/tc-v850.c (md_parse_option): Likewise.
5037 * as.h: Fix up formatting.
5042 * macro.c (macro_set_alternate): Use ISO C90 formatting.
5044 * configure.in: Sort architecture based tables alphabetically.
5045 * configure: Regenerate.
5049 * config/tc-ppc.c (tc_ppc_regname_to_dw2regnum <regnames>): Replace
5050 { "cc", 68 }, with { "cr", 70 }.
5055 * as.c: Add and handle new --alternate command line option.
5056 * macro.c (macro_set_alternate): New.
5057 * macro.h (macro_set_alternate): Declare.
5058 * read.c: Add and handle new .altmacro and .noaltmacro directives.
5059 * doc/as.texinfo: Document new command line option and pseudo-ops
5060 as well as insert documentation originating from gasp about
5061 alternate macro syntax.
5062 * NEWS: Mention new command line option and pseudo-ops.
5066 * expr.c (operand): Handle the "~", "-", and "!" operators applied
5071 * config/tc-arm.c (md_apply_fix3, tc_gen_reloc, arm_parse_reloc):
5072 Handle new relocations.
5073 * include/elf/arm.h (elf_arm_reloc_type): Add new EABI relocations.
5077 * write.c (relax_segment): Use was_address instead of address when
5078 setting fr_fix field for align frag due to backwards .org.
5082 Introduce SH2a support.
5084 * config/tc-sh.c (get_specific): Change arch_sh2a_up to
5087 * config/tc-sh.c (md_parse_option): Add sh2a-nofpu ISA handling.
5089 * config/tc-sh.c (sh_elf_final_processing): Move sh2a recognition
5090 to end of conditional expression.
5092 * config/tc-sh.c: Add sh2a-nofpu support.
5094 * tc-sh.c: Add sh2a support.
5095 (parse_reg): Add tbr.
5096 (parse_at): Support @@(disp,tbr).
5097 (get_specific): Support sh2a opcodes.
5098 (insert4): New, for 4 byte relocs.
5099 (build_Mytes): Support sh2a opcodes.
5100 (md_apply_fix3_Mytes): Support sh2a opcodes.
5102 * config/tc-sh.c (md_parse_option): Handle sh2a.
5103 (sh_elf_final_processing): Ditto.
5107 * config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
5112 * config/tc-ppc.c (ppc_frob_file_before_adjust): Warn if .toc too big.
5113 (ppc_arch): Expand comment.
5117 * config/tc-crx.c: Support evaluating the difference between two
5119 * config/tc-crx.h: Likewise.
5123 * config/tc-ia64.c (start_unwind_section): Set the linked-to
5125 (ia64_elf_section_change_hook): Set the linked-to section for
5130 * config/tc-msp430.c: Add new subtargets: msp430x1610,
5131 msp430x1611, msp430x1612, msp430x415, msp430x417, msp430xG437,
5132 msp430xG438, msp430xG439.
5136 * doc/as.texinfo (Section, PushSection): Correct documentation
5141 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
5142 permissible for the selected instruction suffix.
5143 (match_template): Don't permit 64-bit general purpose operands in
5145 (finalize_imm): Permit 64-bit immediates.
5146 (build_modrm_byte): Don't treat 32-bit addressing in 64-bit mode
5147 specially except for the width of the used base and/or index
5148 registers. For 32-bit displacements, use sign-extended
5149 relocations only when using 64-bit addressing.
5150 Force zero displacement on rip-relative addressing when there is
5151 no other displacement.
5152 (i386_index_check): Don't treat 32-bit addressing in 64-bit mode
5153 specially except for the width of the used base and/or index
5155 (parse_register): Disallow Reg64 registers in 32-bit mode.
5157 * config/tc-i386.c: For DefaultSize instructions, don't guess a 'q'
5158 suffix if the instruction doesn't support it.
5162 * config/tc-mips.c (append_insn): Handle constant expressions with
5163 no associated relocation.
5164 (mips_ip): Cancel the expression after use for the Q format
5166 (parse_relocation): Return no relocation for unsupported
5168 (my_getSmallExpression): Return no relocation if no relocation
5173 * config/obj-som.c (adjust_stab_sections): Add prototype.
5174 (obj_som_compiler, obj_som_version, obj_som_copyright,
5175 adjust_stab_sections): Add ATTRIBUTE_UNUSED to unused arguments.
5176 * config/tc-hppa.c (update_subspace): Likewise.
5177 (is_defined_subspace): Amplify comment.
5178 * config/obj-som.h (som_frob_file): Add prototype.
5183 * subsegs.c (section_symbol): Don't create a new segment when
5184 existing segment is undefined.
5188 * config/tc-arm.c: Include include/opcode/arm.h.
5189 (ARM_EXT_*, ARM_ARCH_*, ARM_ANY, ARM_ALL, COPROC_ANY): Delete.
5190 (FPU_FPA_EXT_* FPU_VFP_EXT_*, FPU_ANY, FPU_NONE, FPU_MAVERICK): Delete.
5191 (FPU_ARCH_*): Delete.
5192 * Makefile.am: Update dependencies.
5193 * Makefile.in: Regenerate.
5197 * configure.in: Accept armbe as a big-endian arm configuration.
5198 * configure: Regenerate.
5202 * config/tc-i386.c (T_SHIFTOP): New constant.
5203 (intel_e05_1): Handle '&', '|' and T_SHIFTOP.
5204 (intel_el1): Handle '~'.
5205 (intel_get_token): Handle '<>', '&', '|' and '~'.
5209 (md_assemble): Remove spurious newline from end of as_bad error
5211 (intel_e05_1): Likewise.
5212 (intel_e11): Likewise.
5213 (intel_match_token): Likewise.
5217 * config/tc-m68k.c: Convert to C90. Remove redundant
5218 declarations. Indentation fixup.
5219 [M68KCOFF]: Include "obj-coff.h" instead of declaring
5220 obj_coff_section ourselves.
5224 * config/tc-ia64.c (default_big_endian): New.
5225 (dot_byteorder, md_begin): Use it.
5226 (md_parse_option): Set it.
5230 * configure.in: Change sh-sybmian-elf to sh-*-symbianelf.
5231 * configure: Regenerate.
5232 * NEWS: Change sh-sybmian-elf to sh-*-symbianelf.
5233 * config/tc-sh.c (sh_elf_final_processing): Use renamed version of
5234 sh_find_elf_flags if necessary.
5238 * config/tc-mips.c (mips_fix_adjustable): If the full addend is
5239 going to be split into more than one in-place addend, return 0
5240 for relocations against mergeable sections. Associate comments
5245 * Makefile.am (CPU_TYPES): Add crx.
5246 (TARGET_CPU_CFILES): Add config/tc-crx.c.
5247 (TARGET_CPU_HFILES): Add config/tc-crx.h.
5248 (DEPTC_crx_elf): New target.
5249 (DEPOBJ_crx_elf): Likewise.
5250 (DEP_crx_elf): Likewise.
5251 * Makefile.in: Regenerate.
5252 * configure.in: Add crx* target.
5253 * configure: Regenerate.
5254 * config/tc-crx.c: New file.
5255 * config/tc-crx.h: New file.
5256 * NEWS: Mention new target.
5260 * config.in: Undefine TARGET_SYMBIAN by default.
5262 * configure: Regenerate. Add sh-symbian-elf target. If
5263 selected define TARGET_SYMBIAN.
5264 * config/tc-sh.h (TARGET_FORMAT): Select a Symbian target
5265 format if TARGET_SYMBIAN has been defined.
5267 * output-file.c (output_file_create): Report the target format
5268 chosen when bfd_openw reports that it is invalid.
5270 * config/obj-coff.c (coff_pseudo_table): Only define the weak
5271 pseudo for BFD based assemblers.
5276 * config/tc-sh.c (md_assemble): Change isspace to ISSPACE.
5277 (md_parse_option): Remove redundant -isa testing.
5278 Make bfd_arch variable const.
5279 (md_show_usage): Make bfd_arch variable const.
5283 * config/tc-ia64.c (emit_one_bundle): Check and set insn_addr.
5284 * config/tc-ia64.h (md_frag_check): Define.
5288 * config/obj-coff.c (obj_coff_weak): New .weak syntax for PE weak
5290 * doc/as.texinfo (Weak): Document PE weak symbols.
5294 * config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
5295 (reloc_needs_lo_p): Only return true if HAVE_IN_PLACE_ADDENDS.
5296 (mips_frob_file): Rework so that only a single pass through the
5297 relocs is needed. Allow %lo()s to have higher offsets than their
5298 corresponding %hi()s or %got()s.
5302 * config/tc-arm.c (md_apply_fix3:BFD_RELOC_ARM_IMMEDIATE): Do not
5303 allow values which have come from undefined symbols.
5304 Always consider this fixup to have been processed as a reloc
5305 cannot be generated for it.
5309 * frags.h (struct frag): Add has_code and insn_addr fields.
5310 * write.c (cvt_frag_to_fill): Invoke md_frag_check.
5311 * config/tc-ppc.c (md_assemble): Check and set insn_addr.
5312 * config/tc-ppc.h (md_frag_check): Define.
5316 * doc/Makefile.am (info): Rename goal to...
5317 (info-local): ... this, to preserve implicit dependencies.
5318 * doc/Makefile.in: Regenerate with automake 1.8.5.
5322 * config/tc-m32r.c (md_convert_frag): Changed for @PLT.
5323 (m32r_cgen_record_fixup_exp): Changed for @GOTOFF, @GOT.
5324 (m32r_fix_adjustable): Changed for @GOTOFF, @GOT, @PLT.
5325 (tc_gen_reloc): Likewise.
5326 (m32r_end_of_match): Add for @GOTOFF, @GOT, @PLT.
5327 (m32r_parse_name): Likewise.
5328 (m32r_cgen_parse_fix_exp): Likewise.
5329 * config/tc-m32r.h (md_parse_name): Define for @GOTOFF, @GOT, @PLT.
5330 (O_PIC_reloc): Likewise.
5331 (TC_CGEN_PARSE_FIX_EXP): Likewise..
5332 * cgen.c (gas_cgen_parse_operand): Add TC_CGEN_PARSE_FIX_EXP
5333 for @GOTOFF, @GOT, @PLT.
5337 * gas/symbols.c: While discarding ordinary local absolute symbols
5338 when --strip-local-absolute is in effect, retain file symbols.
5342 * config/tc-m68k.c (mri_chip): Replace current_chip, not augment.
5343 (md_parse_option): Likewise.
5347 * config/tc-i386.c: Deal with LEX_QM the same way as with LEX_AT.
5348 * config/te-netware.h: New file.
5349 * config/te-ppcnw.h: Delete: Obsolete.
5350 * configure.in: Eliminate ill NetWare targets. Make generic
5351 NetWare target use proper emulation.
5352 * Makefile.am: Eliminate reference to obsolete te-ppcnw.h, add
5353 reference to new te-netware.h.
5354 * configure: Regenerate.
5355 * Makefile.in: Regenerate.
5359 * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
5360 comparison in .insn pseudo operation.
5364 * config/obj-coff.c (coff_adjust_section_syms): Use
5365 bfd_get_section_size instead of bfd_get_section_size_before_reloc.
5366 (coff_frob_section): Likewise.
5367 * config/tc-mips.c (md_apply_fix3): Likewise.
5368 * config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
5369 (elf_frob_file_after_relocs): Likewise.
5373 * config/tc-hppa.c (log2): Rename to exact_log2.
5374 (pa_next_subseg): Delete unused function.
5375 (create_new_space): Mark unused arguments with ATTRIBUTE_UNUSED.
5376 (create_new_subspace): Likewise.
5379 * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
5380 labels. Fix warning.
5384 * config/tc-mn10300.h (tc_fix_adjustable): Define.
5385 * config/tc-mn10300.c (mn10300_fix_adjustable): Don't adjust debug
5386 or non-merged symbols.
5390 * config/tc-ia64.c (remove_marked_resource): Save, clear and
5391 restore the old slot when inserting srlz.i/srlz.d.
5395 * Makefile.am: Regenerate dependecies.
5396 * Makefile.in: Regenerate.
5397 * config/tc-sh.c (valid_arch): Make unsigned.
5398 (preset_target_arch): Likewise.
5399 (md_begin): Use new architecture flags system.
5400 (get_specific): Likewise.
5401 (assemble_ppi): Likewise.
5402 (md_assemble): Likewise. Also fix error check for bad opcodes.
5403 (md_parse_option): Likewise. Also generate -isa values according
5404 to the table in bfd/cpu-sh.c instead of just constants. Also
5405 allow <arch>-up ISA variants.
5406 (sh_elf_final_processing): Replace if-else chain with a call to
5407 sh_find_elf_flags().
5411 * config/gc-m68k.c(m68k_ip): Convert mode 5 addressing
5412 with zero offset into mode 2 addressing to save a word.
5416 * config/tc-ia64.c (ar_is_in_integer_unit): Removed.
5417 (ar_is_only_in_integer_unit): New.
5418 (ar_is_only_in_memory_unit): New.
5419 (generate_unwind_image): Silence gcc on 32bit host.
5420 (md_assemble): Use ar_is_only_in_integer_unit instead of
5421 ar_is_in_integer_unit. Check AR access.
5425 * config/tc-m68k.c (md_begin): Sort the opcode table into
5427 (m68k_compare_opcode): New function to do the sorting.
5431 * config/m68k-parse.y(operand): Allow for MAC/EMAC mask
5432 addressing on MIT style operands.
5433 * config/m68k-parse.y(yylex): Allow '-&' for predecrement
5435 * config/tc-m68k.c(install_operand): Comment 'G' and 'H' type
5440 * expr.c (operand, operator): Don't reject '++' and '--'.
5444 * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
5449 * configure.in: Add ppc-*-lynxos*. Update i386-*-lynxos* to ELF.
5450 * configure: Regenerate.
5454 * dw2gencfi.c (output_cie): Handle dwarf3 format CIE entries.
5458 * configure.in (or32-*-rtems*): Switch to elf.
5459 * configure: Regenerate.
5463 * po/fr.po: Updated French translation.
5467 * doc/as.texinfo (Section): Document G and T flags to .section
5468 directive. Document the extra arguments that the G flag
5469 requires. Document the #tls flag.
5473 * subsegs.c (section_symbol): Create a new section symbol if
5474 the existing one doesn't match.
5475 * symbols.c (symbol_set_bfdsym): Don't reset BFD section symbol.
5479 * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
5480 to cope with VR4181A errata MD(1) and MD(4).
5484 * NEWS: Mention .secrel32 for pe[i]-i386.
5488 * config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
5489 (HANDLE_ALIGN): New.
5493 * Makefile.am (DIST_SUBDIRS): Define.
5494 * aclocal.m4: Regenerate with automake 1.8.4.
5495 * Makefile.in: Likewise.
5496 * doc/Makefile.in: Likewise.
5500 * config/tc-ia64.c (dot_serialize): Declare.
5501 (dot_serialize): New function.
5502 (md_pseudo_table): Add ".serialize.data" and
5503 ".serialize.instruction" directives.
5507 * messages (as_internal_value_out_of_range): Print a message about
5508 a value being out of range. Be consistent about whether the
5509 values are printed in decimal or hexadecimal.
5510 (as_warn_value_out_of_range): Generate a warning message about an
5512 (as_bad_value_out_of_range): Generate an error message about an
5514 * as.h: Prototype the new functions.
5515 * config/tc-alpha.c (insert_operand): Use new function.
5516 * config/tc-arc.c (arc_insert_operand): Likewise.
5517 * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
5518 * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
5519 * config/tc-ppc.c (ppc_insert_operand): Likewise.
5520 * config/tc-s390.c (s390_insert_operand): Likewise.
5521 * config/tc-v850.c (v850_insert_operand): Likewise.
5525 * configure.in: Set em=linux for frv-*-*linux*.
5526 * configure: Rebuilt.
5527 * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
5528 (frv_md_fdpic_enabled): New.
5529 * config/tc-frv.c (frv_md_fdpic_enabled): New.
5530 (DEFAULT_FDPIC): New.
5531 (frv_flags): Use DEFAULT_FDPIC.
5532 (frv_pic_flag): Likewise.
5533 (OPTION_NOPIC): New.
5534 (md_longopts): Add -mnopic.
5535 (md_parse_option): Handle it.
5536 (md_show_usage): Add -mfdpic and -mnopic.
5540 * config/tc-m68k.c: Add find_cf_chip to print list of valid
5541 chips for invalid coldfire instructions, rename selectors
5542 for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
5543 add current_chip to track which chip is referred to(including save/restore),
5544 use current_chip to select control registers, not current_arch.
5545 (md_show_usage): Add new chips.
5546 * doc/c-m68k.texi: Document new command line switches.
5550 * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
5551 (NOP_OPCODE): Define.
5552 (s390_align_code): Remove prototype.
5553 * tc-s390.c (s390_align_code): Remove.
5557 * config/tc-ia64.c (make_unw_section_name): Removed.
5558 (start_unwind_section): New function.
5559 (generate_unwind_image): Take const segT instead of const
5561 (dot_handlerdata): Adjusted.
5562 (dot_endp): Likewise.
5566 * config/obj-elf.c (obj_elf_change_section): Allow the
5567 ".note.GNU-stack" section has SHF_EXECINSTR.
5571 * config/obj-elf.c (get_section): Return bfd_boolean.
5572 (obj_elf_change_section): Call bfd_get_section_by_name_if
5573 instead of bfd_map_over_sections.
5577 * config/obj-elf.c (get_section): New function.
5578 (obj_elf_change_section): Support multiple sections with same
5583 * config/tc-arm.c (create_register_alias): Fix typo checking for
5584 case sensitive register aliases.
5585 (co_proc_number): Use error message string in all_reg_maps[]
5587 (cp_reg_required_here): Likewise.
5588 (fp_reg_required_here): Likewise.
5592 * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
5596 * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
5597 (load_address, macro, mips_ip, md_parse_option)
5598 (mips_force_relocation, mips_validate_fix, md_apply_fix3)
5599 (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
5600 embedded-PIC handling, and update comments.
5601 (SWITCH_TABLE): Remove.
5602 * config/tc-mips.h (DIFF_EXPR_OK): Delete.
5603 (enum mips_pic_level): Remove EMBEDDED_PIC.
5604 (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
5605 (TC_FORCE_RELOCATION): Update comment.
5606 * ecoff.c (ecoff_build_lineno): Add comment about some code that
5607 might be safe to remove now that MIPS embedded-PIC is gone.
5611 * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
5612 call to obj_set_subsection_attributes.
5613 (obj_som_init_stab_section): Likewise.
5614 * config/tc-hppa.c (default_subspace_dict): Add comdat field.
5615 (pa_def_subspaces): Provide comdat default.
5616 (pa_subspace): Handle new "comdat" parameter. Set SEC_LINK_ONCE and
5617 not SEC_IS_COMMON if section is comdat, common or dup_common. Update
5618 calls to create_new_subspace and update_subspace to pass comdat flag.
5619 (create_new_subspace, update_subspace): Add new comdat argument. Use
5620 it in calls to obj_set_subsection_attributes.
5621 * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
5622 and use of comdat, common and dup_comm parameters.
5626 * config/obj-elf.c (obj_elf_change_section): Check if the old
5627 group name is NULL before comparison.
5631 * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
5635 * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
5639 * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
5640 (OPTION_MEMBEDDED_PIC): Remove.
5641 (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
5642 (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
5643 (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
5644 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
5645 (OPTION_ELF_BASE): Renumber.
5646 (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
5647 (md_show_usage): Remove mention of -membedded-pic.
5648 * doc/as.texinfo: Remove mention of -membedded-pic.
5652 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
5653 * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
5655 (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
5656 s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
5657 USE_GLOBAL_POINTER_OPT.
5661 * config/tc-mips.c (macro): One more use of load_delay_nop.
5665 * config/tc-mips.c (load_delay_nop): New function.
5666 (load_address, macro): Use load_delay_nop() to build a nop
5667 which can be omitted with gpr_interlocks.
5671 * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
5672 cop_interlocks): Remove superfluous CPU entries.
5676 * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
5680 * NEWS: Added support for EMAC instructions and MAC/EMAC
5682 * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
5683 scale factor tokens, trailing_ampersand to mark mask addressing
5684 for MAC/EMAC instructions.
5685 * config/m68k-parse.y: Add options_ampersand clause, '<<',
5687 (yylex): Handle '>', '<', and '&' following '+'.
5688 * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
5689 architectures in archs[].
5690 (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
5691 for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
5693 (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
5694 (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
5696 Add EMAC operands to init_table[].
5700 * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
5702 (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
5703 * config/tc-arm.c (enum mstate): Delete from here.
5704 (mapping_state): Remove the static mapstate variable and instead
5705 store the state in the segment. This allows a per-section mapping
5706 state. Handle and ignore MAP_UNDEFINED states.
5707 (arm_elf_change_section): Get the current mapping state from the
5709 (s_ltorg): Set the mapping state to MAP_DATA.
5710 (arm_cleanup): Use arm_elf_change_section to get the mapping state
5711 for each pool as it is emitted.
5715 * config/tc-arm.h: Formatting tidy ups.
5719 * NEWS: Note that MIPS -membedded-pic option is deprecated.
5723 * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
5724 * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
5725 [TE_PE] (O_secrel): Define.
5726 [TE_PE] (x86_pe_cons_fix_new): New.
5727 [TE_PE] (pe_directive_secrel): Likewise.
5728 (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
5732 * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
5733 of previous patch for fix in gcc.
5737 * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
5741 * read.c (do_align): Call md_flush_pending_output, if defined.
5745 * expr.c (operand): Correct checks for ++ and --.
5749 * config/tc-generic.c: Add some comments.
5753 * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
5754 -{no-}mfix-vr4122-bugs.
5755 * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
5756 (append_insn, mips_emit_delays): Update accordingly.
5757 (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
5758 (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
5759 (md_parse_option): Update after above changes.
5760 (md_show_usage): Add -mfix-vr4120.
5764 * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
5765 of .section directive; add a reference to the ELF .subsection
5770 * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
5775 * Makefile.am: Remove mips from aout targets.
5776 * Makefile.in: Regenerate.
5777 * configure.in: Remove mips-dec-bsd* target.
5778 * configure: Regenerate.
5783 * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
5784 to struct map_bfd. Adjust MAP macro, and define MAP32, MAP64.
5785 Update "mapping". Restrict some @ modifiers to 32 bit.
5790 * config/tc-sh.c (dont_adjust_reloc_32): New variable.
5791 (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
5792 dont_adjust_reloc_32 is set.
5793 (md_longopts): Add option -renesas.
5794 (md_parse_option, md_show_usage): Likewise.
5795 * doc/c-sh.texi: Likewise.
5799 * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
5800 hi16 and lo16 fixS structs.
5801 (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
5802 exactly the same way as for RELOC_DLX_REL16.
5803 (machine_ip): properly respect LO flag in the_insn and
5804 output RELOC_DLX_LO16 rather than RELOC_DLX_16.
5805 (md_apply_fix3): apply RELOC_DLX_LO16.
5809 Remove long-obsolete MPW support.
5810 * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
5811 * configure.in: Remove mention of ppc-*-mpw* config.
5812 * configure.in: Likewise.
5816 * config/tc-arm.c (meabi_flags): Make its use conditional upon
5817 OBJ_ELF being defined.
5821 * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
5825 * config/tc-arm.c (meabi_flags): New variable.
5826 (arm_parse_eabi): New function.
5827 (md_begin): Set flags for EABI v3.
5829 (arm_long_opts): Add meabi.
5830 * doc/as.texinfo <ARM>: Document -meabi.
5831 * doc/c-arm.texi: Ditto.
5835 * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
5836 tables even when use_literal_section flag is not set.
5840 * config/tc-sh.c: Remove trailing whitespace.
5844 * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
5845 --mul-bug-abort and the default behavior.
5846 * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
5847 (err_for_dangerous_mul_placement): New variable.
5848 (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
5850 (md_cris_relax_table): Have placeholder for STATE_MUL.
5851 (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
5852 (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
5854 (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
5855 STATE_BYTE)>: Ditto.
5856 (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
5857 alignment and position of this frag, emit error message if
5859 (md_assemble): For a multiply insn and when checking it,
5860 transform the current frag into a special frag for that purpose.
5861 (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
5862 OPTION_MULBUG_ABORT_ON>: Handle new options.
5866 * config/tc-xtensa.c (mark_literal_frags): New function.
5867 (xtensa_move_literals): Call mark_literal_frags for all literal
5868 segments, including init and fini literal segments.
5869 (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
5873 * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
5874 (pa_comm): Set BSF_OBJECT in symbol flags.
5878 * Makefile.am: Run "make dep-am".
5879 * Makefile.in: Regenerate.
5880 * doc/Makefile.in: Regenerate.
5881 * config.in: Regenerate.
5882 * po/gas.pot: Regenerate.
5886 * read.c (read_a_source_file): Use demand_empty_rest_of_line.
5887 (demand_empty_rest_of_line): Issue an error here.
5888 (ignore_rest_of_line): Silently skip to end.
5889 (demand_copy_string): Issue an error, not warning.
5891 * config/obj-elf.c (obj_elf_section_name): Likewise.
5892 (obj_elf_section): Likewise.
5893 * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
5894 (arc_extinst): Likewise.
5895 * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
5896 (dot_spill): Likewise.
5897 (dot_unwabi): Likewise.
5898 (dot_prologue): Likewise.
5900 * expr.c (operand): Reject ++ and --.
5901 (operator): Likewise.
5905 * config/tc-sh.c: Include dw2gencfi.h.
5906 (sh_cfi_frame_initial_instructions): New function.
5907 (sh_regname_to_dw2regnum): Likewise.
5908 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
5910 (TARGET_USE_CFIPOP): Define.
5911 (tc_cfi_frame_initial_instructions): Likewise.
5912 (tc_regname_to_dw2regnum): Likewise.
5913 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
5914 * Makefile.am: Update dependencies.
5915 * Makefile.in: Regenerate.
5919 * configure.in: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
5920 * configure: Regenerate.
5924 * read.c (s_leb128): Call md_flush_pending_output.
5928 * config/tc-i386.c (output_insn): Handle PadLock instructions.
5929 * config/tc-i386.h (CpuPadLock): New define.
5930 (CpuUnknownFlags): Added CpuPadLock.
5934 * doc/c-hppa.texi (HPPA Directives): Fix typo.
5938 * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
5939 (cfi_finish): Likewise for fde.
5943 * config/tc-ia64.c (md_assemble): Properly handle NULL
5945 (ia64_handle_align): Don't abort if failed to add a stop bit.
5949 * Makefile.in: Regenerated.
5950 * aclocal.m4: Likewise.
5951 * configure: Likewise.
5952 * doc/Makefile.in: Likewise.
5956 * config/tc-ia64.c (dot_align): New.
5957 (ia64_do_align): Make it static.
5958 (md_pseudo_table): Use "dot_align" for "align".
5959 (ia64_md_do_align): Don't set align_frag here.
5960 (ia64_handle_align): Add a stop bit to the previous bundle if
5963 * config/tc-ia64.h (ia64_do_align): Removed.
5967 * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
5968 -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
5969 (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
5970 the most general type or the user specifically requested it.
5971 (md_assemble): Add a new error message for when an instruction
5972 is understood, but is not allowed due to an -isa option.
5976 * config/tc-ia64.c (align_frag): New.
5977 (md_assemble): Set the tc_frag_data field in align_frag for
5978 IA64_OPCODE_FIRST instructions.
5979 (ia64_md_do_align): Set align_frag.
5980 (ia64_handle_align): Add a stop bit if needed.
5982 * config/tc-ia64.h (TC_FRAG_TYPE): New.
5983 (TC_FRAG_INIT): New.
5987 * config/tc-frv.c (fr400_audio): New variable.
5988 (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
5989 (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
5990 (target_implements_insn_p): New function.
5991 (md_assemble): Report an error if the processor doesn't implement
5996 * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
5997 (md_parse_option): Ditto.
5998 (OPTION_NO_SPECIAL_M32R): Added.
5999 (md_show_usage): Document it.
6000 (enable_speial_m32r): Changed a default value from 0 to 1.
6001 * doc/c-m32r.texi: Document the -no-bitinst option.
6005 * config/tc-sh.c (get_operand): Revert previous delta.
6006 (tc_gen_reloc): Check for an unknown reloc type before processing
6011 * config/tc-s390.c (s390_insn): Correct range check for opcode in
6012 .insn pseudo operation.
6016 * config/tc-sh.c (get_operand): In case of #Imm, check has been
6017 added for wrong syntax.
6021 * config/tc-mips.c (mips_dwarf2_addr_size): New.
6022 * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
6026 * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
6027 nibble types to assembler.
6031 * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
6035 * config/tc-ia64.c (slot_index): New arg before_relax. Use instead of
6037 (fixup_unw_records): New arg before_relax. Pass to slot_index.
6038 (ia64_estimate_size_before_relax): New.
6039 (ia64_convert_frag): Pass 0 to fixup_unw_records. Add comment.
6040 (generate_unwind_image): Pass 1 to fixup_unw_records.
6041 * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
6042 (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
6046 * stabs.c (generate_asm_file): Avoid warning about use of
6047 uninitialized variable.
6051 * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
6052 body, and endp, allow unwind records which do not have a "t"
6053 (time/instruction) field.
6057 * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
6058 (do_mav_dspsc_2): Likewise.
6059 Fix accumulator registers move opcodes.
6064 * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
6068 * config/tc-ia64.h (ia64_frob_symbol): New declaration.
6069 (tc_frob_symbol): New macro definition.
6070 * config/tc-ia64.c (ia64_frob_symbol): New routine.
6074 * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
6079 * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
6080 (TC_CASE_SENSITIVE): ... this.
6081 * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
6082 * doc/internals.texi (TC_CASE_SENSITIVE): Document.
6086 * config/tc-ia64.c (dot_endp): Delete call to output_endp.
6087 (generate_unwind_image): Re-add it here.
6091 * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
6092 * read.h (SKIP_WHITESPACE): Turn into an expression.
6093 * read.c (read_a_source_file): A pseudo is removed by having a
6098 * config/tc-ia64.c (output_endp): New.
6099 (count_bits): Delete.
6100 (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
6101 endp unwind records.
6102 (fixup_unw_records): Handle endp unwind records. Delete code for
6103 shortening prologue regions not followed by a body record.
6104 (dot_endp): Call add_unwind_entry to emit endp unwind record.
6105 * config/tc-ia64.h (unw_record_type): Add endp.
6109 * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
6110 fill padding bytes with zeroes.
6111 (emit_one_bundle): New locals last_ptr, end_ptr. Rewrite code that
6112 sets unwind_record slot_number and slot_frag fields.
6116 * config/tc-mips.c (add_got_offset_hilo): New function.
6117 (macro): Use load_register() and add_got_offset_hilo() to load
6118 constants instead of hardcoding code sequences throughout.
6122 * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
6126 * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
6128 * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
6129 of hard-coded test for TARGET_OS=elf.
6133 * config/tc-mips.c (hilo_interlocks): Change definition
6134 so that MIPS32, MIPS64 and later ISAs are included, along with
6135 the already-included machines. Update comments.
6139 * config/tc-arm.c (tc_gen_reloc): Improve error message for
6140 undefined local labels.
6144 * config/tc-mips.c (load_address, macro): Update comments about
6145 NewABI GP relaxation.
6149 * config/tc-mips.c (macro_build): Remove place and counter arguments.
6150 (mips_build_lui, macro_build_ldst_constoffset): Likewise.
6151 (mips16_macro_build, macro_build_jalr): Remove counter argument.
6152 (set_at, load_register, load_address, move_register): Likewise.
6153 (load_got_offset, add_got_offset): Likewise.
6154 Update all calls and tidy accordingly.
6158 * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
6159 (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
6160 (RELAX_USE_SECOND): Bump to 0x10000.
6161 (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
6162 (mips_macro_warning): New variable.
6163 (md_assemble): Wrap macro expansion in macro_start() and macro_end().
6164 (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
6165 (relax_close_frag): Set mips_macro_warning.first_frag. Adjust use
6167 (append_insn): Update mips_macro_warning.sizes.
6168 (macro_start, macro_warning, macro_end): New functions.
6169 (macro_build): Don't emit warnings here.
6170 (macro_build_lui, md_estimate_size_before_relax): ...or here.
6171 (md_convert_frag): Check for cases where one macro alternative
6172 needs a warning and the other doesn't. Emit a warning if the
6173 longer sequence was chosen.
6177 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
6178 * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
6179 the first sequence, the size of the second sequence, and a flag
6180 that says whether we should warn.
6181 (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
6182 (RELAX_FIRST, RELAX_SECOND): New.
6183 (mips_relax): New variable.
6184 (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
6185 (append_insn): Remove "place" argument. Use mips_relax.sequence
6186 rather than "place" to check whether we're expanding the second
6187 alternative of a relaxable macro. Remove redundant check for
6188 branch relaxation. If generating a normal insn, and there
6189 is not enough room in the current frag, call relax_close_frag()
6190 to close it. Update mips_relax.sizes[]. Emit fixups for the
6191 second version of a relaxable macro. Record the first relaxable
6192 fixup in mips_relax. Remove tc_gen_reloc workaround.
6193 (macro_build): Remove all uses of "place". Use mips_relax.sequence
6194 in the same way as in append_insn.
6195 (mips16_macro_build): Remove "place" argument.
6196 (macro_build_lui): As for macro_build. Don't drop the add_symbol
6197 when generating the second version of a relaxable macro.
6198 (load_got_offset, add_got_offset): New functions.
6199 (load_address, macro): Use new relaxation machinery. Remove
6200 tc_gen_reloc workarounds.
6201 (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
6202 version of a relaxable macro is needed. Return -RELAX_SECOND if the
6203 first version is needed.
6204 (tc_gen_reloc): Remove relaxation handling.
6205 (md_convert_frag): Go through the fixups for a relaxable macro and
6206 mark those that belong to the unneeded alternative as done. If the
6207 second alternative is needed, adjust the fixup addresses to account
6208 for the deleted first alternative.
6212 * frags.h (frag_room): Declare.
6213 * frags.c (frag_room): New function.
6214 * doc/internals.texi: Document it.
6218 * config/tc-mips.c (append_insn): Don't do r3900 interlock
6219 optimization for -mtune=r3900, as this will break on other CPUs.
6223 * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
6224 be relaxed, use fixup.
6225 (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
6229 * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
6234 * config/tc-mips.c (append_insn): Properly detect variant frags
6235 that preclude swapping of relaxed branches. Correctly swap
6236 instructions between frags when dealing with relaxed branches.
6240 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
6242 * aclocal.m4: Regenerate.
6243 * configure: Regenerate.
6247 * config/tc-h8300.c (build_bytes): Apply relaxation to bit
6252 * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
6253 reloc, reserve space for the delay slot as well as the jalr itself.
6257 * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
6258 (do_vfp_sp2_from_reg2): New function.
6260 (do_vfp_dp_from_reg2): Check return values properly.
6264 * config/tc-mips.c (warn_nops): Remove static variable.
6265 (macro): Remove test of warn_nops.
6266 (md_shortops): Remove 'n'.
6267 (md_parse_option): Remove 'n' case.
6268 (md_show_usage): Remove -n.
6269 * doc/as.texinfo (Overview): Remove MIPS -n option.
6270 * doc/c-mips.texi (MIPS Opts): Remove mention -n.
6271 * NEWS: Mention removal of MIPS -n option.
6273 * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
6274 (cop_interlocks): Check ISA level.
6275 (cop_mem_interlocks): Define.
6276 (reg_needs_delay): Check cop_interlocks rather than
6277 ISA_HAS_COPROC_DELAYS.
6278 (append_insn): Likewise. Use cop_mem_interlocks rather than
6279 directly checking mips_opts.isa.
6280 (mips_emit_delays): Likewise.
6284 * config/tc-ia64.c (unwind): Move next_slot_number and
6285 next_slot_frag to ...
6286 (unw_rec_list): Here.
6287 (free_list_records): Removed.
6288 (output_unw_records): Likewise.
6289 (generate_unwind_image): Make it void.
6290 (alloc_record): Initialize next_slot_number and next_slot_frag.
6291 (slot_index): Take .org, .space and .align into account.
6292 (fixup_unw_records): Don't set slot_number to 0. Use
6293 list->next_slot_number and list->next_slot_frag instead of
6294 unwind.next_slot_number and unwind.next_slot_frag.
6295 (ia64_convert_frag): New.
6296 (generate_unwind_image): Generate a rs_machine_dependent frag
6298 (emit_one_bundle): Use list->next_slot_number and
6299 list->next_slot_frag instead of unwind.next_slot_number and
6300 unwind.next_slot_frag.
6302 * config/tc-ia64.h (md_convert_frag): Defined as
6304 (md_estimate_size_before_relax): Defined as (f)->fr_var.
6309 * config/tc-frv.h (md_apply_fix3): Don't define.
6310 * config/tc-frv.c (md_apply_fix3): New. Shift/truncate %hi/%lo
6312 * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
6314 * config/tc-frv.c (line_separator_chars): Add `!'.
6316 * config/tc-frv.c (md_assemble): Clear insn upfront.
6318 * config/tc-frv.c (OPTION_FDPIC): New macro.
6319 (md_longopts): Add mfdpic.
6320 (md_parse_option): Handle it.
6322 * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
6323 FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
6324 (frv_pic_ptr): Parse funcdesc.
6328 * doc/as.texinfo: Let texi2pod parse asconfig.texi and
6329 gasver.texi. Remove duplicate symbol definitions for texi2pod.
6333 * Makefile.am (Makefile): Move the dependency on
6334 $(BFDDIR)/configure.in to...
6335 (CONFIG_STATUS_DEPENDENCIES): ... here.
6336 (AUTOMAKE_OPTIONS): Require automake 1.8.
6337 * Makefile.in: Regenerate.
6338 * doc/Makefile.am (BASEDIR, BFDDIR): Define.
6339 (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
6340 $(BFDDIR)/configure.in here as well.
6341 * doc/Makefile.in: Regenerate.
6345 * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
6346 * Makefile.in: Regenerate.
6347 * aclocal.m4: Regenerate.
6348 * doc/Makefile.am (install, install-info): Remove.
6349 (install-data-local): A new hook for install-info.
6350 (AUTOMAKE_OPTIONS): Require automake 1.8.
6351 * doc/Makefile.in: Regenerate.
6355 * doc/c-sh.texi: Update description about floating point behavior
6360 * configure.in: Add m68k-uClinux target.
6361 * configure: Regenerate.
6363 For older changes see ChangeLog-0203
6369 version-control: never