Alan Modra
050be34e82
* write.c (relax_segment <rs_space>): Account for fr_fix.
2001-07-26 03:39:29 +00:00
H.J. Lu
46bac6de18
2001-07-25 H.J. Lu <hjl@gnu.org>
...
* config/tc-mips.c (md_estimate_size_before_relax): Make sure
we treat weak like extern only for ELF.
(mips_fix_adjustable): Make sure we don't adjust extern/weak
symbols only for ELF.
2001-07-25 22:27:46 +00:00
Chris Demetriou
2f4dcb115b
2001-07-25 Chris Demetriou <cgd@broadcom.com>
...
* config/tc-mips.c: Fix spelling error in comment.
2001-07-25 20:34:39 +00:00
Dave Brolley
62f65a7b06
2001-07-25 Dave Brolley <brolley@redhat.com>
...
* app.c (LEX_IS_PARALLEL_SEPARATOR): New macro.
(IS_PARALLEL_SEPARATOR): New macro.
(do_scrub_begin): Set up characters in tc_parallel_separator_chars
as LEX_IS_PARALLEL_SEPARATOR, if it is defined.
(do_scrub_chars): Handle LEX_PARALLEL_SEPARATOR chars like
LEX_LINE_SEPARATOR except that we go to state 1 (as if the label has
been seen).
2001-07-25 15:23:19 +00:00
Alan Modra
3817f22269
* Makefile.am (DEP_FLAGS): Define, add -DOBJ_MAYBE_ELF.
...
(DEP1, DEPTC, DEPOBJ, DEP2): Use it.
Update dependencies with "make dep-am".
2001-07-24 10:07:15 +00:00
Kazu Hirata
0772685173
* config/tc-alpha.h: Fix formatting.
...
* config/tc-arc.c: Likewise.
* config/tc-d10v.h: Likewise.
* config/tc-hppa.c: Likewise.
* config/tc-i370.c: Likewise.
* config/tc-i386.h: Likewise.
* config/tc-i960.h: Likewise.
* config/tc-ia64.c: Likewise.
* config/tc-ia64.h: Likewise.
* config/tc-m32r.c: Likewise.
* config/tc-m68k.c: Likewise.
* config/tc-m88k.c: Likewise.
* config/tc-ns32k.c: Likewise.
* config/tc-pdp11.c: Likewise.
* config/tc-pj.h: Likewise.
* config/tc-s390.c: Likewise.
* config/tc-sparc.c: Likewise.
* config/tc-sparc.h: Likewise.
* config/tc-tic80.c: Likewise.
* config/tc-w65.h: Likewise.
2001-07-23 14:02:13 +00:00
Alan Modra
ac62c3468d
* symbols.c (S_GET_VALUE): Don't treat O_constant and local
...
symbols specially. Always resolve, adding fr_address to value.
* write.c (write_object_file): Don't add fr_address to sym values.
(relax_frag): Likewise.
(relax_segment): Likewise.
* config/obj-ieee.c (do_symbols): Likewise.
* config/tc-cris.c (md_convert_frag): Likewise.
* config/tc-fr30.c (md_convert_frag): Likewise.
* config/tc-i386.c (md_convert_frag): Likewise.
* config/tc-m32r.c (md_convert_frag): Likewise.
* config/tc-m68hc11.c (md_convert_frag): Likewise.
* config/tc-mcore.c (md_convert_frag): Likewise.
* config/tc-mips.c (mips16_extended_frag): Likewise.
* config/tc-ns32k.c (md_convert_frag): Likewise.
* config/tc-m68k.c (md_convert_frag_1): Likewise.
(BRANCHBWL, BRABSJUNC, BRABSJCOND, BRANCHBW, FBRANCH, DBCCLBR,
DBCCABSJ, PCREL1632, PCINDEX, ABSTOPCREL): Decrement.
(md_relax_table): Remove first four entries. Format.
(md_estimate_size_before_relax): Remove old_fix. Don't bother
setting fr_var. Simplify byte branch checks.
2001-07-23 13:03:40 +00:00
Alan Modra
677537c186
* config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Remove
...
"isbranch" param as all calls have it set.
(pa_parse_neg_cmpsub_cmpltr): Likewise.
(pa_parse_nonneg_add_cmpltr): Likewise. Remember result of
strcasecmp in "nullify" var.
(pa_parse_neg_add_cmpltr): Likewise.
(pa_ip): Don't "save_s" unnecessarily. Update calls to above
functions. Don't print wrong conditions in error messages.
2001-07-23 12:50:22 +00:00
Andreas Jaeger
c745b67a33
* config/tc-s390.c (s390_force_relocation): Removed.
...
* config/tc-s390.h: Remove double declaration of
TC_FORCE_RELOCATION.
2001-07-23 10:21:22 +00:00
H.J. Lu
2b3c5a5dc1
2001-07-22 H.J. Lu <hjl@gnu.org>
...
* config/tc-mips.c (s_mips_end): Remove unused variables.
(s_mips_frame): Add ATTRIBUTE_UNUSED.
2001-07-22 18:11:29 +00:00
Andreas Schwab
f27a38390b
* config/tc-m68k.c (md_pseudo_table) [OBJ_ELF]: Add .file and
...
.loc.
(md_assemble) [OBJ_ELF]: Call dwarf2_emit_insn before emitting
insn.
* config/tc-m68k.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2001-07-18 10:25:58 +00:00
Matthew Green
5bae9b28a0
* config/tc-i386.c (comment_chars): Don't use '/' as comment start if
...
TE_NetBSD.
(line_comment_chars): Set to '/' if TE_NetBSD.
2001-07-17 09:57:52 +00:00
Matthew Green
92c077a32b
fix formatting goof in previous.
2001-07-14 15:36:22 +00:00
Matthew Green
7ed28e6531
* configure.in (i386-*-netbsdelf*): New target.
...
configure: Regenerate.
2001-07-14 14:44:39 +00:00
Jakub Jelinek
20278fa326
* elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
...
R_SPARC_UA64.
(elf32_sparc_check_relocs): Likewise.
Only create .rela section for alloced sections in shared libraries.
(elf32_sparc_relocate_section): Likewise.
Remove redundant check.
Optimize unaligned reloc usage.
* elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
check.
* testsuite/gas/sparc/unalign.s: Remove .uaxword test.
* testsuite/gas/sparc/unalign.d: Adjust accordingly.
2001-07-11 19:40:32 +00:00
John Healy
cdbb0887ba
*** empty log message ***
2001-07-11 19:35:17 +00:00
Nick Clifton
bdbe95c8c5
Don't merge if the storage class of the non-debug symbol is C_NULL.
2001-07-11 09:26:27 +00:00
John Healy
07e97ae2e3
2001-07-10 John Healy <jhealy@redhat.com>
...
* config/obj-elf.c (obj_elf_section): md_elf_section_change_data_hook
added to grab section information after it's been extracted from the
.section directive.
2001-07-10 21:49:11 +00:00
Nick Clifton
15dcfbc30f
Fix grammatical errors
2001-07-10 10:11:35 +00:00
Nick Clifton
f740e790c7
Use FOPEN_.. macros in calls to fopen().
2001-07-10 09:45:50 +00:00
Nick Clifton
7e005732aa
Add .incbin pseudo op
2001-07-09 08:19:18 +00:00
Nick Clifton
ae341099a8
Only set debug_type to DEBUG_NONE if it is DEBUG_UNSPECIFIED.
2001-07-07 15:43:04 +00:00
John Healy
002de68b31
2001-07-06 John Healy <jhealy@redhat.com>
...
* cgen.c (gas_cgen_save_fixups): Modified to allow more than one
set of fixups to be stored.
(gas_cgen_restore_fixups): Modified to allow the fixup chain to be
restored to be chosen from any that are saved.
(gas_cgen_swap_fixups): Modified to allow the current set of
fixups to be swapped with any other set that has been saved.
(gas_cgen_initialize_saved_fixups_array): New routine.
* cgen.h: Modifed prototypes for gas_cgen_save_fixups,
gas_cgen_restore_fixups, and gas_cgen_swap_fixups. Added definitions
or MAX_SAVED_FIXUP_CHAINS.
* config/tc-m32r.c (assemble_two_insns): Changed calls to fixup
store, swap and restore fuctions to reflect the new interface.
2001-07-06 19:09:23 +00:00
Nick Clifton
7099f9f917
Catch and ignore empty, ineffectual alignment frags when deciding if a
...
branch can be short.
2001-07-06 08:21:35 +00:00
Jim Wilson
557debbaef
32-bit unwind data for ia64-hpux, from Steve Ellcey
...
* config/tc-ia64.c (special_section): Add SPECIAL_SECTION_INIT_ARRAY
and SPECIAL_SECTION_FINI_ARRAY.
(special_section_name): Add .init_array and .fini_array.
(md_pseudo_table): Add init_array and fini_array.
(md): Add pointer_size and pointer_size_shift fields.
(setup_unwind_header): New static function.
(output_unw_records): Modify to use setup_unwind_header.
(generate_unwind_image, dot_endp): Modify to use md.pointer_size and
md.pointer_size_shift.
(md_begin): Initialize md.pointer_size and md.pointer_size_shift.
2001-07-06 07:32:42 +00:00
Alan Modra
7fb088be89
Oops, missed committing entry for 2001-07-05 change.
2001-07-06 02:02:42 +00:00
Ben Elliston
464bb47cc9
2001-07-05 Ben Elliston <bje@redhat.com>
...
* README (Supported platforms): m88k no longer suffers bitrot.
2001-07-05 11:28:57 +00:00
Ben Elliston
4ad0936356
2001-07-05 Ben Elliston <bje@redhat.com>
...
* config/tc-m88k.c (md_pseudo_table): Remove redundant "global".
2001-07-05 07:28:06 +00:00
Jim Wilson
87885043df
Fix ia64-linux gas ehopt testsuite failure.
...
* config/tc-ia64.c (md_pseudo_table): Add 2byte, 4byte, and 8byte.
2001-07-05 03:34:42 +00:00
Jim Wilson
3e37788f8d
Fix 2 ia64-linux gas testsuite failures.
...
* config/tc-ia64.c (is_conditional_branch): Rewrite to exclude mod
sched branches.
2001-07-05 02:30:21 +00:00
Ben Elliston
2a1e2a6d6e
2001-07-05 Ben Elliston <bje@redhat.com>
...
* read.c (s_fill): Correct spelling error in comments.
2001-07-05 00:36:50 +00:00
Ben Elliston
81b0b3f175
2001-07-05 Ben Elliston <bje@redhat.com>
...
* doc/c-m88k.texi: New file.
* doc/Makefile.am (CPU_DOCS): Add c-m88k.texi.
* doc/Makefile.in: Regenerate.
* doc/all.texi: Set M880X0.
* doc/as.texinfo: Hook in m88k-dependent documentation.
2001-07-05 00:25:28 +00:00
Eric Christopher
18ae5d728b
2001-07-04 Eric Christopher <echristo@redhat.com>
...
* doc/c-mips.texi (MIPS Opts): Document 12000 as valid cpu.
* config/tc-mips.c (mips_cpu_info_table): Add rm5200, rm5231, rm5261,
and rm5721 as valid cpu strings.
(md_show_usage): Add rm5200, rm5231, rm5261, rm5721.
2001-07-04 12:32:07 +00:00
Richard Sandiford
7461da6e23
[gas]
...
* config/tc-mips.c (md_apply_fix): Prevent addend from becoming zero
if it's expected to be non-zero.
[gas/testsuite]
* gas/mips/elf-rel3.s: Add zero word to end of file.
2001-07-04 09:49:29 +00:00
Nick Clifton
7bcad3e505
Fix seg fault by replacing symbol_get_frag() with fscan->fx_frag.
2001-07-03 15:22:19 +00:00
Nick Clifton
8754881645
Fix mips16 testsuite failure by allowing finalize_syms to be set before
...
size_segs is called.
2001-07-03 15:04:19 +00:00
Alan Modra
99a814a1cc
* config/tc-ppc.c: Formatting fixes.
2001-07-02 10:54:49 +00:00
Ben Elliston
bd59b34f1e
2001-07-01 Ben Elliston <bje@redhat.com>
...
* config/tc-m88k.c: Back out warning fixes from 2001-06-24, as
they cause some subtle breakage. Will fix them again later.
2001-07-01 06:36:43 +00:00
Ben Elliston
551b1d8931
* fix tabs in this change:
...
2001-06-28 Eric Christopher <echristo@redhat.com>
H.J. Lu <hjl@gnu.org>
2001-07-01 06:32:07 +00:00
Nick Clifton
e237d851a4
Treat a .ln directive outside of a function as a .appline directive.
2001-06-30 10:09:40 +00:00
Eric Christopher
ec68c924f0
2001-06-28 Eric Christopher <echristo@redhat.com>
...
H.J. Lu <hjl@gnu.org>
* config/tc-mips.c (mips_arch): New. Use mips_arch instead
of mips_cpu for the ISA selection.
(md_longopts): Add OPTION_MARCH and OPTION_MTUNE.
(md_parse_option): Handle OPTION_MARCH and OPTION_MTUNE.
(mips_tune): New. Use mips_tune for scheduling and optimization
issues.
(append_insn): Use mips_tune and mips_arch.
(macro_build): Ditto.
(mips_ip): Ditto.
(md_begin): Handle mips_arch, mips_tune and mips_cpu. For
backwards compatability mips_cpu generates arch and tune.
(md_show_usage): Document new behavior.
* doc/c-mips.texi (MIPS Opts): Document -march and -mtune.
Deprecate -mcpu.
* NEWS: Update.
2001-06-28 Eric Christopher <echristo@redhat.com>
* gas/mips/usd.d: Change for march/mtune.
* gas/mips/ulh-xgot.d: Ditto.
* gas/mips/uld.d: Ditto.
* gas/mips/trunc.d: Ditto.
* gas/mips/rol.d: Ditto.
* gas/mips/nodelay.d: Ditto.
* gas/mips/mul.d: Ditto.
* gas/mips/mul-ilocks.d: Ditto.
* gas/mips/trap20.d: Ditto.
* gas/mips/mips4.d: Ditto.
* gas/mips/mips16.d: Ditto.
* gas/mips/lif-xgot.d: Ditto.
* gas/mips/lif-svr4pic.d: Ditto.
* gas/mips/ld-xgot.d: Ditto.
* gas/mips/ld-svr4pic.d: Ditto.
* gas/mips/ld-ilocks-addr32.d: Ditto.
* gas/mips/lb-xgot.d: Ditto.
* gas/mips/jal-xgot.d: Ditto.
* gas/mips/jal-svr4pic.d: Ditto.
* gas/mips/delay.d: Ditto.
* gas/mips/lb-xgot-ilocks.d: Ditto.
* gas/mips/div.d: Ditto.
* gas/mips/break20.d: Ditto.
* gas/mips/delay.d: Ditto.
* gas/mips/elf_e_flags3.d: Ditto.
* gas/mips/elf_e_flags4.d: Ditto.
* gas/mips/lineno.d: Ditto.
* gas/mips/mips16.d: Ditto.
* gas/mips/mips4.d: Ditto.
* gas/mips/mips4010.d: Ditto.
* gas/mips/mips4650.d: Ditto.
2001-06-29 21:27:43 +00:00
Nick Clifton
38b87a1b80
Do not set finalize_syms until after the segments have been sized.
...
Some backends may still need to access the syms's frags in order to
adjust relaxed frags.
2001-06-27 08:49:42 +00:00
Nick Clifton
d827344236
Use MVN to build simple inverted constants.
2001-06-27 08:15:52 +00:00
Alan Modra
1a16aca4b4
* write.c (fixup_segment <Difference of 2 syms same seg>): Don't
...
subtract MD_PCREL_FROM_SECTION for 68k.
(fixup_segment <Difference of 2 syms different seg>): Only fudge
by adding MD_PCREL_FROM_SECTION for 68k or if not already pcrel.
2001-06-27 07:02:24 +00:00
Alan Modra
d48019e088
* write.c (fixup_segment <Difference of 2 syms same seg>): If
...
pcrel, subtract MD_PCREL_FROM_SECTION value.
2001-06-27 03:14:47 +00:00
Ben Elliston
37ffda1076
2001-06-24 Ben Elliston <bje@redhat.com>
...
* stabs.c (generate_asm_file): Make local variable `len' a size_t.
2001-06-25 07:57:09 +00:00
Jakub Jelinek
6f112c47dc
* config/tc-alpha.c (tc_gen_reloc): Handle relocs against SEC_MERGE
...
section symbols the same way as externs.
2001-06-24 16:43:31 +00:00
Ben Elliston
453520d7ad
2001-06-24 Ben Elliston <bje@redhat.com>
...
* config/tc-m88k.c (md_number_to_imm): Remove; unused since 1993.
(emit_relocations): Ditto.
(s_bss): Ditto.
(md_begin): Reformat comments to conform to the GNU standards.
(md_assemble): Ditto.
2001-06-24 06:01:49 +00:00
Ben Elliston
e21e484e83
* fixes to silence all compiler warnings.
...
2001-06-24 Ben Elliston <bje@redhat.com>
* config/tc-m88k.c (get_reg): Adjust type of `reg_prefix' to char.
(md_parse_option): Mark parameters as unused.
(md_show_usage): Ditto.
(calcop): Adjust type of `reg_prefix' to char.
(get_reg): Ditto.
(getval): Adjust type of local `c' to char.
(md_create_short_jump): Mark from_addr, to_addr params as unused.
(md_create_long_jump): Ditto.
(md_estimate_size_before_relax): Mark parameters as unused.
2001-06-24 01:56:48 +00:00
Ben Elliston
a181d81e0c
2001-06-24 Ben Elliston <bje@redhat.com>
...
* config/tc-m88k.c (md_pseudo_table): Properly terminate the table
to allay a possible compiler warning.
2001-06-23 23:02:57 +00:00