Commit Graph

8419 Commits

Author SHA1 Message Date
Jeff Law
93df4ec5fe * ldmain.c (lprefix): Change default from a char to a string
with only one character.
        (lprefix_len): Set default to one.

        * ldmain.h (lprefix_len): Declare.

        * ldsym.c (write_file_locals): Use strncmp rather than a character
        comparison for lprefix.

        * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
        correctly.

        * emultmpl/hppaosf.em: Include ldexp.h.
        (before_parse): Set lprefix and lprefix_len correctly.
1993-12-17 05:21:33 +00:00
Jeff Law
5ea18b5dd9 * config/tc-hppa.c (md_begin): Initialize "dummy_label".
(tc_gen_reloc, SOM version): For relocations which have no symbol,
        set sym_ptr_ptr to dummy_label.  Avoids lossage in generic BFD code.
1993-12-17 05:16:01 +00:00
Ken Raeburn
50f75add59 recent config/* & section_symbol changes 1993-12-16 21:56:03 +00:00
Ian Lance Taylor
5ddff1344f * mips-tdep.c (read_next_frame_reg): If SIGFRAME_REG_SIZE is not
defined, define it as 4.
1993-12-16 21:47:59 +00:00
Ken Raeburn
c999fd9fc2 * config/tc-vax.c (tc_aout_fix_to_chars): Local variable NBYTES_R_LENGTH now
const.

* config/obj-*.c, config/tc-*.c: Omit superfluous "return" statements at ends
of functions.  Don't check for null return from hash_new, since it won't return
at all if there's no memory available.  Also, check for null return from
hash_insert, rather than zero-length string, as success indicator.
1993-12-16 21:31:22 +00:00
Ken Raeburn
a8a72d7480 read.c(lex_type): Don't make '[' a valid symbol name char. 1993-12-16 21:12:43 +00:00
Jeff Law
27405a282e * config/m68k/nm-hp300bsd.h: Correctly identify 4.3BSD vs 4.4BSD.
* config/m68k/tm-hp300bsd.h (REMOTE_BPT_VECTOR): Define.

        * config/m68k/tm-m68k.h (REMOTE_BPT_VECTOR): Allow targets to
        override.
        (REMOTE_BREAKPOINT): Likewise.
1993-12-16 21:10:24 +00:00
Jeff Law
277b2d2b23 * hosts/hp300bsd.h: Correctly identify 4.3BSD vs 4.4BSD. 1993-12-16 21:07:44 +00:00
David D. Zuhn
fc3a75fb2b update rev to 5.6(Cygnus) 1993-12-16 04:24:16 +00:00
David D. Zuhn
4db865d01a remove gratitious s 1993-12-16 04:22:10 +00:00
David D. Zuhn
4fe2350be4 document -v flag 1993-12-16 04:18:17 +00:00
David D. Zuhn
b4f476e939 add -v flag to gprof (print version number) 1993-12-16 04:14:45 +00:00
Ken Raeburn
7387c35523 Makefile.in (RUNTEST): New variable.
(CHECKFLAGS): Pass it down.
1993-12-15 20:46:54 +00:00
Ken Raeburn
cf4aca575b forgot to check in some log messages last week 1993-12-15 20:44:45 +00:00
David MacKenzie
f8af9b40a2 cleanups and mach3 changes 1993-12-15 17:08:52 +00:00
Ken Raeburn
29f5c3cb15 Some changes from trying to run test suite in California last week:
* Makefile.in (site.exp): Don't set ASFLAGS.  Quote value of OBJDUMPFLAGS in
case it's empty.  Use temporary names until the end; make creating site.exp the
final step.
(check): Pass in ASFLAGS.

* gas/all/gas.exp: Use all_ones proc.  Change regexp for matching
C comments to avoid bugs in latest expect code.
1993-12-15 16:28:46 +00:00
Ken Raeburn
30d3a445c4 removed an unnecessary comment 1993-12-15 16:23:27 +00:00
Jeff Law
c97ae6e42d * som.c (som_begin_writing): Fix thinkos in auxiliary header
support.
        (bfd_som_attach_aux_hdr): Likewise.
1993-12-15 05:50:44 +00:00
Jeff Law
26da035165 * configure.in (hppa*-*-osf*): Do not consider this a developmental
configuration.
1993-12-15 05:45:45 +00:00
Jeff Law
551d2fd4cf * config/tc-hppa.c (md_apply_fix): Handle cases where no
relocation will be emitted for 32bit formats.
1993-12-15 05:41:11 +00:00
Per Bothner
7509106c26 * config.guess: Recognize some Tektronix configurations.
From Kaveh R. Ghazi <ghazi@noc.rutgers.edu>.
1993-12-15 05:28:09 +00:00
Ian Lance Taylor
553b002162 * ldlex.h: Don't declare yywrap if it is a macro.
* ldlex.l: Include sysdep.h.
1993-12-14 22:34:41 +00:00
Ian Lance Taylor
498fbd3c56 * ldlang.c (lang_for_each_statement_worker,
lang_for_each_statement): Forgot to use PARAMS.
1993-12-14 22:20:35 +00:00
Jeff Law
a36b6f1d05 * elf32-hppa.c (hppa_elf_gen_reloc_type): Handle 'T' field
selectors for PIC code.

        * som.c (hppa_som_gen_reloc_type): Handle 'T' field selectors.
        (som_write_fixups): Handle R_DLT_REL, R_FSEL, R_RSEL, R_LSEL
        relocations needed by PIC.
1993-12-14 07:36:15 +00:00
Jeff Law
9d5a9b20fe * config/tc-hppa.c (md_apply_fix): Do not call hppa_field_adjust
for any of the 'T' field selectors.
1993-12-14 07:34:37 +00:00
Per Bothner
e909f287a8 Implement support for Chill POWERSETs.
* ch-exp.y (operand_2):  Implement 'Element IN PowerSet'.
	* ch-typeprint.c (chill_type_print_base):  Handle POWERSETs.
	* ch-valprint.c (chill_val_print):  Handle TYPE_CODE_SET.
	* eval.c (evaluate_subexp):  Implement BINOP_IN.
	* expression.h (enum exp_opcode):  Added BINOP_IN.
	* gdbtypes.c (create_set_type), gdbtypes.h:  New function.
	* stabsread.c (read_type):  If 'S', create a set type.
	* valarith.c (value_bit_index, value_in), value.h:  New functions,
	for indexing in SETs.
1993-12-14 04:32:51 +00:00
Ian Lance Taylor
1400cdc51d * Makefile.in: Added .PHONY targets where appropriate. Added some
comments.  Also:
	(gcclibdir, version): Removed unused variables.
	(DEP): New variable, set to mkdep.
	(ALL_CFLAGS): New variable.  Used in .c.o target.
	(CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
	variables.
	(HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
	GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
	mostly obsolete variables.  Adjusted remaining uses.
	(DEF_EMUL): Removed variable.
	(ldmain.o): Handle undefined EMUL error correctly.
	(ldemul-list.h): Depend on config.status rather than Makefile.
	Create via temporary file.
	(ver960.c, roll, make): Removed obsolete targets.
	(.dep, .dep1, dep.sed, dep, dep-in): New targets.  Used to rebuild
	dependencies.
1993-12-13 19:46:45 +00:00
Ian Lance Taylor
f80837391e New file used for rebuilding dependencies. 1993-12-13 19:37:22 +00:00
Fred Fish
f3628b3985 * paread.c (pa_symfile_init): Check for the existance of stabs
after DBX_TEXT_SECT has been initialized.
1993-12-13 14:46:21 +00:00
Ian Lance Taylor
9f6294075e More gcc lint. 1993-12-12 00:54:14 +00:00
Steve Chamberlain
aa53cd6714 * readline.c (rl_getc): If GO32, trim high bit from getkey,
otherwise fancy PC keys cause grief.
1993-12-12 00:31:44 +00:00
Steve Chamberlain
23a0b2d019 * config/h8300/tm-h8300.h (BREAKPOINT): Insn changed to sleep.
(DECP_PC_AFTER_BREAK): Now is 0.
	* config/h8500/tm-h8500.h (REGISTER_BYTES, REGISTER_BYTE,
	REGISTER_NAMES): update to new view.  (INIT_EXTRA_FRAME_INFO): No
	extra frame info now.
	* config/sh/sh.h (NOP): Define NOP insn.
	* config/z8k/tm-z8k.h (BIG): is now sim_z8001_mode.
	* config/z8k/z8ksim.mt (TDEPFILES): Add remote-sim.o to list.
1993-12-12 00:08:33 +00:00
Steve Chamberlain
e34f4a4305 * config/z8k/tm-z8k.h (BIG): is now sim_z8001_mode.
* config/z8k/z8ksim.mt (TDEPFILES): Add remote-sim.o to list.
1993-12-12 00:07:12 +00:00
Steve Chamberlain
b4d3d0e5de * config/sh/sh.h (NOP): Define NOP insn. 1993-12-12 00:05:54 +00:00
Steve Chamberlain
3b5b507559 * config/h8500/tm-h8500.h (REGISTER_BYTES, REGISTER_BYTE,
REGISTER_NAMES): update to new view.  (INIT_EXTRA_FRAME_INFO): No
	extra frame info now.
1993-12-12 00:05:25 +00:00
Steve Chamberlain
34f07efe01 * config/h8300/tm-h8300.h (BREAKPOINT): Insn changed to sleep.
(DECP_PC_AFTER_BREAK): Now is 0.
1993-12-12 00:03:31 +00:00
Steve Chamberlain
08c0d7b84f * ser-go32.c: Lint. (strncasecmp): Removed, now in libiberty.
(go32_readchar): Special handling for faster polling. (async
	structure): Volatile.
	* h8300-tdep.c (print_register_hook): Allocate and use the right
	number bytes for the raw register.
	* h8500-tdep.c (regoff, frame_find_saved_reg, examine_prologue):
	deleted. (h8500_register_size, h8500_register_virtual_type, ):
	Use new way of counting registers.
	* remote-e7000.c (echo_index): deleted. (expect): Better handling
	of user interrupts. (expect_prompt): Remove never used log file
	support. (want, want_nopc): Add support for H8/300H.
	(fetch_regs_from_dump): Treat \r and \n as whitespace.
	(e7000_drain): Send an "end" command before waiting for output to
	stop.  (e7000_wait): Cope with H8/300H, better handling of user
	interrupts.  (why_stop, expect_n, sub2_from_pc): New function.
	* remote-utils.c (gr_load_image): call fflush and QUIT more regularly.
	* utils.c (notice_quit): New function for polling for user interrupts.
1993-12-12 00:00:53 +00:00
Ian Lance Taylor
fcf276c495 Made many changes to eliminate gcc warnings. Made various
cosmetic changes, declared various things in header files, removed
	various extern declarations from .c files.  No substantive
	changes.
1993-12-11 22:55:55 +00:00
Ian Lance Taylor
2c6635a46f * ldlang.c (lang_process): Ifdef out final call to
lang_size_sections again (reverting change of Nove 2), since it
	breaks the Sun4 linker.
1993-12-11 22:46:15 +00:00
Steve Chamberlain
2b5936ff87 * config/tc-h8500.c (build_bytes): Get reloc type right for a
%page operation. (md_assemble): Don't modify input_line_pointer.
	(mdcoff_sizemachdep): New function.
	* config/tc-h8500.h (TC_COFF_SIZEMACHDEP): New macro.
	* config/tc-z8k.c (get_operand): Delete bogus check.
1993-12-11 19:28:41 +00:00
Steve Chamberlain
816153a3e3 Recognise SH. 1993-12-11 19:21:19 +00:00
Steve Chamberlain
4c57fc9c4b * config.sub: Match any flavor of SH. 1993-12-11 19:18:41 +00:00
Fred Fish
11b959da9c * stabsread.c (read_array_type): Allow negative array bounds,
without interpreting that to mean "adjustable."
	* ch-valprint.c (chill_val_print):  Handle RANGE types.
	* ch-typeprint.c (chill_type_print_base):  Handle BOOL.
	Handle variant records.  Handle RANGE types.
1993-12-11 01:27:23 +00:00
Ian Lance Taylor
6972011b96 * nlmheader.y (command): Accept MAP and FULLMAP without arguments.
* nlmconv.c (main): Change error message for MAP and FULLMAP.
1993-12-10 19:29:10 +00:00
Ian Lance Taylor
4e58b3ebfc * nlmconv.c (main): Warn about imported symbols that are not in
the IMPORT list even if the IMPORT keyword is not used.

Fixes PR 4006.
1993-12-10 05:51:25 +00:00
Ian Lance Taylor
0f6df2eee0 * nlmconv.c (debug, unlink_on_exit): New static variables.
(long_options): Add "debug" and "linker".
	(main): Handle -d and -l arguments.  Make command line input and
	output files optional.  Parse the command file before opening the
	BFD's, which requires storing more information in local variables.
	If INPUT names multiple files, link them together.  Use OUTPUT for
	the output file name if not named on command line.
	(show_usage): Changed for new options.
	(link_inputs): New function to automatically invoke linker to
	handle multiple INPUT files.
	(choose_temp_base_try, choose_temp_base, pexecute): New functions,
	mostly copied from gcc/gcc.c.
	* nlmconv.h (input_files, output_file): Declare.
	* nlmheader.y (input_files, output_file): Define.
	(command): Support INPUT with a string_list argument.  Support
	OUTPUT.
	(string_list): Renamed from module_list.
	* Makefile.in (nlmconv.o): Define LD_NAME based on
	program_transform_name.

Fixes PR 3974.
1993-12-10 05:33:49 +00:00
Ken Raeburn
a1328e79d0 output-file.c, write.c changes 1993-12-09 01:13:10 +00:00
Ken Raeburn
f5c324244d (number_to_chars_*): Delete bogus range checks. 1993-12-09 01:08:37 +00:00
Jeff Law
28b9501dcd * gas/m68k/disperr.s: New test.
* gas/m68k/all.exp: Run it.
1993-12-08 22:32:05 +00:00
Ian Lance Taylor
627703f982 * nlmheader.y (nlmheader_identify): New function. Use it to print
the program name just once, instead of with every error message.

Fixes PR 3973.
1993-12-08 18:10:11 +00:00