Richard Henderson
7532235c09
* config/tc-sparc.h (md_do_align): New macro.
...
* config/tc-sparc.c (sparc_handle_align): Handle rs_align_code.
Patch from Jakub Jelinek <jj@sunsite.mff.cuni.cz>.
1997-10-23 00:22:51 +00:00
Richard Henderson
36e75fe3ec
* sparc-opc.c (v9notv9a): New insn type.
...
(IMPDEP): Move to the end to not conflict with edge8 et al.
Patch from David Miller <davem@vger.rutgers.edu>.
1997-10-23 00:17:25 +00:00
Jeff Law
b84b918329
* mdebugread.c (psymtab_to_symtab_1): Handle new live range stabs
...
entries.
* dbxread.c: More comment cleanups.
* stabsread.c: Fix various violations of the GNU coding and
formatting standards. Update/add comments to make code clearer.
(resolve_reference): Delete unused function.
(ref_search_val): Remove function. It didn't belong in stabsread.c
(resolve_live_range): No longer returns a value. Do not add it
to the live range list until the entire range stab has been parsed.
(get_substring): Remove duplicate declaration.
(resolve_symbol_reference): Now static. Remove unnecessary code
to deal with cleanups.
(ref_add): Use xrealloc instea of realloc.
(process_reference): Reorganize slightly to make clearer.
* stabsread.h (resolve_symbol_reference): Remove declaration.
(resolve_reference): Likewise.
* symtab.c (find_active_alias): New function.
(lookup_block_symbol): Use find_active_alias.
* symtab.h (struct range_list): Fix dangling struct live_range
reference.
(ref_search_val): Remove decl.
* symtab.h (struct range_list): Renamed from struct live_range.
(struct symbol): Remove struct live_range_info substruct.
Bring the alias list and range list fields up to the toplevel
as "aliases" and "ranges".
(SYMBOL_ALIASES, SYMBOL_RANGES): Corresponding changes.
(SYMBOL_RANGE_START, SYMBOL_RANGE_END, SYMBOL_RANGE_NEXT): Delete.
* stabsread.c: Corresponding changes.
Bring first round of cleanups over from r5900 branch.
1997-10-22 23:28:30 +00:00
Ken Raeburn
01c655cc45
sanitize law's 15 jul r5900 change
1997-10-22 21:34:33 +00:00
Ian Lance Taylor
82b4217bfd
* config/tc-sh.c (sh_small): New variable.
...
(OPTION_SMALL): Define.
(md_longopts): Add "small".
(md_parse_option): Handle OPTION_SMALL.
(md_show_usage): Mention -small.
* config/tc-sh.h (sh_small): Declare.
(SUB_SEGMENT_ALIGN): Handle sh_small.
* config/obj-coff.h (TARGET_FORMAT): Check sh_small in TC_SH
case.
PR 13580.
1997-10-22 20:13:54 +00:00
Ian Lance Taylor
18ed85fd7a
* coff-sh.c (coff_small_object_p): New static function.
...
(coff_small_new_section_hook): New static function.
(bfd_coff_small_swap_table): New static const structure.
(coff_small_close_and_cleanup): Define.
(coff_small_bfd_free_cached_info): Define.
(coff_small_get_section_contents): Define.
(coff_small_get_section_contents_in_window): Define.
(shcoff_small_vec): New static structure.
(shlcoff_small_vec): New static structure.
* targets.c (bfd_target_vector): Add shcoff_small_vec and
shlcoff_small_vec.
* config.bfd (sh-*-elf*): Add shcoff_small_vec and
shlcoff_small_vec to targ_selvecs.
(sh-*-*): Likewise.
* configure.in: Add shcoff_small_vec and shlcoff_small_vec cases.
* configure: Rebuild.
PR 13580.
1997-10-22 20:12:02 +00:00
Jeff Law
a259afccd8
More comment fixes to make the code clearer.
1997-10-22 19:15:44 +00:00
Jeff Law
ab41527bce
* dbxread.c: Fix various violations of the GNU coding and
...
formatting standards. Update/add comments to make code
clearer.
(process_later): Use xrealloc instead of realloc.
1997-10-22 19:04:30 +00:00
Jeff Law
f109cc3d9e
Minor comment fix.
1997-10-22 18:28:25 +00:00
Jeff Law
1a490ebc92
* symtab.c: Include inferior.h.
...
Brought over from r5900 branch.
1997-10-22 18:12:30 +00:00
Ian Lance Taylor
517640d9b5
* config/tc-mips.c (macro): Correct handling of constant in M_LI_D
...
case in little endian mode.
1997-10-22 16:52:46 +00:00
Ian Lance Taylor
34ed833edd
* scripttempl/pe.sc: Put .eh_frame in .rdata.
1997-10-22 15:29:48 +00:00
Andrew Cagney
9e03a68f13
Add LMA_P and DO_WRITE arguments to sim/common/sim-load.c:sim_load_file().
...
Update all simulators.
Clarify behavour of sim_load in remote-sim.h
1997-10-22 05:26:27 +00:00
Doug Evans
2328ef1c98
* nrun.c (main): Exit if bfd_openr fails.
...
Call bfd_check_format after bfd_openr.
1997-10-22 02:12:41 +00:00
Doug Evans
897a1d7863
* nrun.c (main): Remove useless test of name != NULL.
1997-10-22 01:38:49 +00:00
Per Bothner
fbb09651da
* ch-exp.c: Rename FIELD_NAME to DOT_FIELD_NAME (to avoid conflict).
1997-10-21 21:15:52 +00:00
Doug Evans
61a60a8a70
* config/tc-sparc.c (md_apply_fix3, cases ..._H44, ..._HIX22): Leave
...
overflow signalling to linker.
1997-10-21 17:23:12 +00:00
Jeff Law
f4ab2b2fdc
* simops.c: Correctly handle register restores for "ret" and "retf"
...
instructions.
pr13306 related stuff.
1997-10-21 16:07:53 +00:00
Andrew Cagney
92ad193bb0
Use SIM*_OVERFLOW_RESULT defined in sim-alu.h
1997-10-21 07:57:33 +00:00
Andrew Cagney
b7432f0f27
Pacify GCC -Wall
1997-10-21 07:41:46 +00:00
Andrew Cagney
aa324b9b1e
Output pc profile statistics once gathered.
1997-10-21 07:40:00 +00:00
Andrew Cagney
e2f8ffb736
Delete profile support from MIPS simulator, use sim/common/sim-profile
...
module instead.
Generate a "gmon.out" (gprof) when profiling the target PC.
Add target PC profiling option --profile-pc-granularity (bucket size)
1997-10-21 03:41:21 +00:00
Doug Evans
70ee778220
* configure.in (sparc64): Set arch to v9-64.
...
* configure: Regenerated.
1997-10-20 20:02:28 +00:00
Ian Lance Taylor
9659c18b39
Various fixes for openvms/alpha.
1997-10-20 19:43:05 +00:00
Ian Lance Taylor
c773781e73
Mon Oct 20 15:31:43 1997 Klaus K"ampf <kkaempf@progis.de>
...
* configure.com (HAVE_SBRK): Undefine.
1997-10-20 19:33:16 +00:00
Ian Lance Taylor
2319b893ee
Mon Oct 20 15:28:49 1997 Klaus K"ampf <kkaempf@progis.de>
...
* makefile.vms: Fix to work with DEC C.
1997-10-20 19:30:47 +00:00
Ian Lance Taylor
412222d910
various evax patches
1997-10-20 19:23:09 +00:00
Ian Lance Taylor
d5241511db
Mon Oct 20 15:01:27 1997 Klaus K"ampf <kkaempf@progis.de>
...
* evax-egsd.c: make section flags dec c compatible
1997-10-20 19:08:15 +00:00
Ian Lance Taylor
71e0e8f9e8
Mon Oct 20 14:54:06 1997 Klaus K"ampf <kkaempf@progis.de>
...
* config/obj-evax.c: support .weak pseudo-op
1997-10-20 18:56:21 +00:00
Ian Lance Taylor
43093ad9e3
* ld-srec/sr3.cc: Add definitions for terminate, __terminate, and
...
__throw, since the current g++ expects them to be defined.
1997-10-20 18:37:48 +00:00
Doug Evans
595da85d72
* tc-sparc.c (default_arch_size): New static local.
...
(struct sparc_arch): Rename arch_size to default_arch_size.
New member user_option_p.
(sparc_arch_table): Always include v9, v9a. New entry v9-64.
(init_default_arch): Check whether default arch is valid.
Set default_arch_size in addition to sparc_arch_size.
(OPTION_32,OPTION_64): Define.
(md_longopts): New entries for -32, -64.
(md_parse_option): Handle them.
(md_show_usage): Print them. Ensure init_default_arch called.
1997-10-20 17:23:10 +00:00
Jeff Law
5efcd35925
* som.c (normalize): Delete function.
...
(som_bfd_ar_write_symbol_stuff): New parameter elength. All callers
changed. Use passed in elength to determine size of the extended
name table instead of computing it again.
1997-10-20 15:37:44 +00:00
Ian Lance Taylor
263378e763
fix ChangeLog entry
1997-10-20 14:56:55 +00:00
Ian Lance Taylor
e232f1aaf3
* peicode.h (coff_swap_scnhdr_out): Don't clobber other flag
...
settings when setting IMAGE_SCN_MEM_READ. From Jim Wilson
<wilson@cygnus.com>.
1997-10-20 14:55:58 +00:00
Andrew Cagney
293a0876f8
Have single bit macros return an unsigned result. Avoids risk (and
...
need) of sign extending results.
1997-10-20 07:27:55 +00:00
Andrew Cagney
fb5a2a3e39
Make mips registers of type unsigned_word.
...
Ensure all references to MIPS registers use same type.
1997-10-20 06:28:53 +00:00
Jeff Law
27637913f0
* som.c (som_bfd_ar_write_symbol_stuff): Account for trailing
...
'/' in the extended name table.
1997-10-20 03:01:55 +00:00
Andrew Cagney
0a0ecb2120
Add 8 bit arithmetic to sim-alu.
...
Fix flags (Carry, oVerflow) for negate and subtract.
Add ALU*_RESULT macros for accessing final result of ALU op.
1997-10-20 02:03:06 +00:00
Ian Lance Taylor
66a6a38139
* write.c (subsegs_finish): New function, broken out of
...
write_object_file.
(write_object_file): Some code moves into subsegs_finish.
* write.c (subsegs_finish): Declare.
* as.c (main): Call subsegs_finish.
Fixes last frag when generating a listing for a file with an error.
1997-10-19 18:14:01 +00:00
Ian Lance Taylor
891a158431
* read.c (s_include): Check for error return from
...
demand_copy_string.
PR 13566.
1997-10-19 17:51:31 +00:00
Stan Shebs
08655f154a
* infcmd.c: Improve grammar of "set args" help.
1997-10-17 20:24:02 +00:00
Gavin Romig-Koch
d7727fe96b
opcodes/mips-opc.c (bnezl,beqzl): Mark these as also tx39.
1997-10-17 17:26:45 +00:00
Richard Henderson
b038ec7bd9
* ldlang.c (lang_register_vers_node): Only check globals<=>locals,
...
since we need to be able to export different versions of the same
symbol.
1997-10-17 07:05:05 +00:00
Richard Henderson
bccab6306f
* elflink.h (elf_link_assign_sym_version): For explicitly versioned
...
symbols, check globals list before matching on locals.
1997-10-17 07:04:28 +00:00
Andrew Cagney
afb1dbe851
Preliminary tests for sim-alu module.
1997-10-17 03:57:53 +00:00
Michael Meissner
9d59cbb13c
Make decl of sds_load static
1997-10-16 19:06:25 +00:00
Gavin Romig-Koch
b7dd310d55
opcodes/mips-opc.c: Note that 'jalx' is (probably incorrectly) marked I1.
1997-10-16 16:03:22 +00:00
Michael Meissner
3cd99cc646
fix typo
1997-10-16 12:22:05 +00:00
Michael Meissner
04e4681226
Fix mangled patch
1997-10-16 12:19:16 +00:00
Andrew Cagney
ea985d2472
Move register definitions and macros out of interp.c and into sim-main.h
1997-10-16 03:50:48 +00:00