Commit Graph

1281 Commits

Author SHA1 Message Date
Ken Raeburn 2d33b3aacb tc-alpha.c (md_atof): Warn that FP vals might not assemble properly 1994-02-07 21:36:35 +00:00
Ken Raeburn c3591adb28 configure.in, tc-alpha, atof-generic changes 1994-02-07 21:14:39 +00:00
Ken Raeburn 34de45f9a6 Enable alpha-*-osf* configuration. 1994-02-07 21:12:55 +00:00
Ken Raeburn cf272f0244 (load_expression): Parenthesize operations in range checking, to avoid
precedence questions.

(addr32): New static variable.
(md_parse_option): Set it for "-32addr".
(load_symbol_address): If addr32 is set, use ldl instead of ldq.
1994-02-07 21:12:03 +00:00
Ken Raeburn 5facbfd428 tc-alpha, obj-ecoff changes 1994-02-07 10:13:59 +00:00
Ken Raeburn 4a6e1a39e7 * tc-alpha.c (md_section_align): Change second argument and
return type to valueT, to agree with tc.h.
(alpha_do_align): Local static array nop_pattern is now unsigned
char, to avoid overflow warnings.
* tc-alpha.h (md_section_align): Delete declaration.

* obj-ecoff.c (ecoff_frob_file): Ensure that ecoff_data for
output bfd is non-null before indirecting through it.

Crock to get GP set right:
* tc-alpha.c (alpha_frob_ecoff_data): Renamed from alpha_frob_file.
* tc-alpha.h (tc_frob_file): Macro deleted.
* obj-ecoff.c (ecoff_frob_file) [TC_ALPHA]: Call alpha_frob_ecoff_data, then
fill in optional-header info with gp value and register masks.
1994-02-07 10:11:43 +00:00
Ken Raeburn fc6b54fdf5 atof-generic.c, ecoff.c, literal.c, write.c changes 1994-02-07 09:58:29 +00:00
Ken Raeburn a5ac3a14a1 (atof_generic): Calculate maximum number of useful digits in integer
arithmetic, to eliminate only source of dependence on floating point support,
which currently doesn't work yet on the Alpha.
1994-02-07 09:56:47 +00:00
Jeff Law f8693e71a7 * configure.in (hiux): Fixes from m-kasahr@sramhc.sra.co.JP. 1994-02-07 00:34:59 +00:00
Jeff Law dc536cc0ca * config/obj-som.c (obj_som_init_stab_section): Same change
as coffbfd and elf below.  Zero the initial stab symbol after
        allocating it.
1994-02-07 00:15:01 +00:00
Ian Lance Taylor 3a0e38ee59 Don't refer to new fields unless BFD_ASSEMBLER (from sac). 1994-02-05 22:17:20 +00:00
Stan Shebs 41b5ef0f76 Sat Feb 5 12:30:32 1994 Stan Shebs (shebs@andros.cygnus.com)
* config/obj-coffbfd.c (obj_coff_init_stab_section): Zero the
	initial stab symbol after allocating it.
	* config/obj-elf.c (obj_elf_init_stab_section): Ditto.

This fixes a critical bug observed in Q4 for Lynx.
1994-02-05 21:45:51 +00:00
Jeff Law fa4beb7e8f * config/tc-hppa.c (pa_ip): addb[tf] should only accept
non-negated condition completers.  Add support for addb pseudo-op
        which accepts both negated and non-negated completers.
1994-02-05 19:54:51 +00:00
Jeff Law 4fc3b3b493 * gas/hppa/more.parse/xmpyubug.s: New test.
* gas/hppa/more.parse/parse.exp: Run it.
1994-02-05 07:43:29 +00:00
Ian Lance Taylor 1c11ab0e7f * configure.in (rs6000*): Use cpu_type ppc.
(ppc-*-aix*): New target; use coff and force bfd_gas.
1994-02-05 05:38:24 +00:00
Ian Lance Taylor af46c203df New files for PowerPC/POWER (RS/6000) support. 1994-02-05 05:35:11 +00:00
Ian Lance Taylor 262b22cd10 Changed relocs to be based on subsegments (when BFD_ASSEMBLER).
* subsegs.h (struct frchain): If BFD_ASSEMBLER, added new fields
	fix_root and fix_tail.
	(segment_info_type): If BFD_ASSEMBLER, don't define fix_tail
	field.
	* write.c (fix_new_internal): If BFD_ASSEMBLER, set fix_rootP and
	fix_tailP based on frchain_now, not seg_info (now_seg).
	(chain_frchains_together_1): Chain the subsegment relocs together.
	* subsegs.c (subseg_change): Don't clear fix_tail field.
	(subseg_get): Likewise.
	* literal.c (add_to_literal_pool): Look through the relocs via
	frchain_now, not seginfo.

	* write.c (write_object_file): Simplified usage of obj_frob_symbol
	and tc_frob_symbol.  Always call both if the symbol is going to be
	output.

	* write.c (relax_segment): Use %ld rather than %d when printing
	fragP->fr_var, and cast it to long.
1994-02-05 05:29:42 +00:00
Ken Raeburn 9ebe52b3b9 * lib/gas-defs.exp (regexp_diff): New procedure, vaguely based on
"simple_diff" from linker test suite.
* gas/sun4/addend.exp: Use it.
* gas/sun4/addend.d: New file.
1994-02-04 22:19:31 +00:00
Ian Lance Taylor f85ad9d5c5 * ecoff.c (ecoff_symbol_new_hook): Clear ecoff_extern_size, not
ecoff_undefined.
	(ecoff_frob_symbol): Don't check ecoff_undefined.
	(ecoff_build_symbols): Get size of an undefined symbol from
	sym->ecoff_extern_size, not S_GET_VALUE (sym).
1994-02-04 04:14:24 +00:00
Ian Lance Taylor 11c0749600 Revert last change. 1994-02-04 03:17:30 +00:00
Ian Lance Taylor fdb3408e12 * config/tc-mips.c (md_apply_fix): If this is an undefined symbol,
subtract the value from fx_addnumber to since
	bfd_perform_relocation is going to add it in.
1994-02-04 02:32:54 +00:00
Jeff Law b4bd2c92c5 * Makefile.in: Avoid bug in losing hpux sed. 1994-02-02 21:58:54 +00:00
Ian Lance Taylor 1051c97f63 * config/tc-mips.c (file_mips_isa): New static variable.
(md_begin): Set it.
	(s_mipsset): Add support for .set mipN to set the ISA level.
1994-02-02 17:06:24 +00:00
Ian Lance Taylor 950df4212c * gasp.c (kinfo): Fully bracket initializer. 1994-02-02 16:43:00 +00:00
Roland Pesch cd41d0672a Stop claiming MIPS li.d and li.s insns are not supported, now that they are. 1994-02-02 03:44:39 +00:00
Roland Pesch 65fbb2d722 Three scattered fixes (nearly lost!) from early suggestions by Jeff Law. 1994-02-02 03:32:31 +00:00
Roland Pesch 03d2167461 Better organization, indexing, for MIPS-dep section. 1994-02-02 01:43:26 +00:00
Ken Raeburn f2cdeec493 gasp.c, atof-ieee.c, ho-i386aix.h changes 1994-02-02 00:40:29 +00:00
Ken Raeburn 6761eb8b9e * gasp.c (malloc): Don't declare, since host.h or system header files may
declare it differently.

(Actually, the only use is in xmalloc; if xmalloc didn't also zero out the
region of memory, I'd delete the function altogether and use the libiberty
version...)
1994-02-02 00:35:37 +00:00
Ken Raeburn 5ca42ea386 * config/ho-i386aix.h: Include sys/types.h and stdlib.h, not ho-sysv.h. Based
loosely on a patch from Minh Tran-Le.
1994-02-02 00:32:10 +00:00
Roland Pesch fb5bec4950 (1) use new flag SMALL to control whether or not insn tables appear
where avail (see comments in src)
(2) minor proofreading improvements to HPPA sec, and page break
    improvement (for Cygnus format) to M68K sec
1994-02-02 00:01:44 +00:00
Ian Lance Taylor 8bbad6fda8 * config/tc-mips.c (mips_ip): Make an unsupported instruction a
warning, not an error.
1994-02-01 23:10:05 +00:00
Steve Chamberlain e2847e64ff * gasp.c: Include host.h. 1994-02-01 18:58:32 +00:00
Ian Lance Taylor 9cbf9e57c2 obj-coff, obj-coffbfd changes. 1994-02-01 17:19:54 +00:00
Ian Lance Taylor 96a8876071 * config/obj-coffbfd.c (symbol_to_chars): bfd_coff_swap_aux_out
now takes more arguments.
1994-02-01 17:18:42 +00:00
Ian Lance Taylor 257df7914d * config/obj-coff.c (dot_text_symbol, dot_data_symbol,
dot_bss_symbol): Don't define if BFD_ASSEMBLER.
	(obj_symbol_to_chars): bfd_coff_swap_aux_out now takes more
	arguments.
	(coff_line_base): Renamed from line_base.  Changed all uses.
	(coff_add_linesym): Renamed from add_line_sym.  Made non-static.
	Changed all uses.
	* config/obj-coff.h: If TC_PPC, include coff/rs6000.h.
	(S_SET_STORAGE_CLASS, S_GET_STORAGE_CLASS): Declare if
	BFD_ASSEMBLER.
	(coff_line_base): Declare.
	(coff_add_linesym): Declare if BFD_ASSEMBLER.
1994-02-01 17:17:52 +00:00
Roland Pesch 60ce6e743c Revisions from Jeff Law to HPPA-directives section.
This version formats cleanly under makeinfo, and in Cygnus format.

Default FSF format works without error, but tables of machine
instructions for some machines have stupid page boundaries (FSF
version uses larger page size).
1994-02-01 05:27:07 +00:00
Roland Pesch 81fcb3ff69 (1) eliminate GPL and refs thereto, as authorized by RMS
(2) enable MIPS-specific docn (cf PR 4434)
1994-02-01 04:36:50 +00:00
Roland Pesch e680d73781 (1) summary descriptions of HPPA-specific directives
(2) leading comments for future updates, about places to check for new
    directives
(3) doc for new portable ".string" directive
(4) minor updates to dates etc.
1994-02-01 03:48:35 +00:00
Stan Shebs 392e46a1c8 Mon Jan 31 18:08:16 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-xconfig.in: Get opcode/mips.h from the right place.
1994-02-01 02:09:26 +00:00
Stan Shebs f1c1227a59 Mon Jan 31 18:06:41 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-make.in (CFLAGS): Add more include paths.
1994-02-01 02:07:53 +00:00
Stan Shebs 2abb453d8b Mon Jan 31 17:55:14 1994 Stan Shebs (shebs@andros.cygnus.com)
* as.c (statistics_flag): Renamed from quiet_flag.
	(main): Get statistics with --statistics instead of -noquiet.
1994-02-01 02:03:06 +00:00
Roland Pesch 62e59d28c2 correct typo in as cmdline synopsis (-w for -W);
describe --statistics (nee -noquiet);
describe -Z
1994-02-01 00:36:50 +00:00
Roland Pesch 47c7ceb59c Acknowlegements: surely John Gilmore's one-bit fix was proverbial,
not apocryphal.

apoc-ry-phal \-fel\ adj
(1590)
1 often cap: of or resembling the Apocrypha
2: of doubtful authenticity: SPURIOUS
syn see FICTITIOUS

pro-ver-bi-al \pre-'ver-be^--el\ adj
(1548)
1: of, relating to, or resembling a proverb
2: that has become a proverb or byword: commonly spoken of
1994-01-31 20:47:07 +00:00
Ken Raeburn 0ce4d62e74 test code for fp handling -- no .exp file yet 1994-01-31 19:11:28 +00:00
Steve Chamberlain 3981bad3ee New files for testing gasp. 1994-01-31 16:53:03 +00:00
Steve Chamberlain a5a4b5acdc Support for gasp. 1994-01-31 16:44:53 +00:00
Steve Chamberlain b0f2092b3d New file. 1994-01-31 16:40:55 +00:00
Steve Chamberlain 7cb520f090 New file. 1994-01-31 16:37:19 +00:00
Steve Chamberlain ede7bc1c60 * read.c (s_lcomm): Align lcomm data.
* config/tc-z8k.c (tc_reloc_mangle): Don't allow subtraction
	from different sections.
1994-01-31 15:28:06 +00:00
Ken Raeburn 9e929d320a fix regexp for all/x930509.s 1994-01-31 04:39:12 +00:00
Ken Raeburn 7909261f79 alpha & vax changes 1994-01-30 23:32:56 +00:00
Ken Raeburn 5677c0288d * configure.in: Handle host vax-*-ultrix* like vax-*-bsd*. Don't bother with
*-*-ultrix or *-*-sysv*, except *-*-sysv, since only the last has an existing
host support file.  Do handle vax-bsd and vax-ultrix targets.
1994-01-30 23:31:44 +00:00
Ken Raeburn 4075afe126 * read.c (do_align): New function, most of guts of s_align_* functions. Look
for md_do_align macro, give it a chance to bypass all but recording of section
alignment.
(s_align_bytes, s_align_ptwo): Call do_align.
(s_lcomm) [TC_ALPHA]: Align object to largest power of two that divides object
size.
1994-01-30 23:29:20 +00:00
Ken Raeburn 4242632039 (Already checked in write.c and config/tc-alpha.c, but no log msg went
out because $CVSROOT was wrong...)

	* write.c (write_object_file): If tc_frob_file is defined, call it
	just before calling obj_frob_file.
	* config/tc-alpha.c (alpha_gp_value): Renamed from gp_value
	(references changed), and made non-static.
	(getExpression): Return void.
	(select_gp_value): Abort if gp_value is non-zero.  Delete call to
	non-existent bfd_set_gp_value.
	(alpha_validate_fix): Function deleted.
	(alpha_frob_symbol): Function deleted.
	(alpha_local_label): Function deleted.
	(alpha_frob_file): Renamed from alpha_end.
	* config/tc-alpha.h (alpha_frob_symbol, alpha_validate_fix,
	alpha_local_label, alpha_end): Declarations deleted.
	(alpha_gp_value, alpha_frob_file): Declare.
	(tc_frob_symbol, TC_VALIDATE_FIX, md_end): Macros deleted.
	(LOCAL_LABEL): Move code here from tc-alpha.c:alpha_local_label.
	(md_convert_frag): Simplified slightly.
	(tc_frob_file): New macro.
1994-01-30 23:26:55 +00:00
Ken Raeburn c79e67a3b7 * write.c (write_object_file): If tc_frob_file is defined, call it
just before calling obj_frob_file.
* config/tc-alpha.c (alpha_gp_value): Renamed from gp_value (refs changed), made
non-static.
(getExpression): Return void.
(select_gp_value): Abort if gp_value is non-zero.  Delete call to non-existent
bfd_set_gp_value.
(alpha_validate_fix): Function deleted.
(alpha_frob_symbol): Function deleted.
(alpha_local_label): Function deleted.
(alpha_frob_file): Renamed from alpha_end.
* config/tc-alpha.h (alpha_frob_symbol, alpha_validate_fix, alpha_local_label,
alpha_end): Declarations deleted.
(alpha_gp_value, alpha_frob_file): Declare.
(tc_frob_symbol, TC_VALIDATE_FIX, md_end): Macros deleted.
(LOCAL_LABEL): Move code here from tc-alpha.c:alpha_local_label.
(md_convert_frag): Simplified slightly.
(tc_frob_file): New macro.
1994-01-30 23:21:55 +00:00
Ian Lance Taylor 1f029792a2 * config/obj-coff.c (obj_coff_section_header_append): Do not
declare if BFD_ASSEMBLER.
	(stack_pop): Correct test for stack underflow.
	(obj_coff_endef, obj_coff_dim, obj_coff_line, obj_coff_size,
	obj_coff_scl, obj_coff_tag, obj_coff_type, obj_coff_val): Declare
	type of ignored argument to avoid gcc warning.
	(align): Removed unused function.
1994-01-28 16:30:29 +00:00
Ken Raeburn 0b233d31df removed rcs cruft 1994-01-28 05:38:41 +00:00
Roland Pesch 05a0e43b83 Many scattered edits, primarily on recent mods.
Ancient "Internals" text deleted.
1994-01-28 04:32:37 +00:00
Ken Raeburn 81f6013aa2 Various changes: alpha support, fx_done handling, EMIT_SECTION_SYMBOLS, ... 1994-01-28 01:42:05 +00:00
Ken Raeburn d5bd8e851d Comment change: Soften recommendations against supplying sym+addend operands,
since it works, and gas does it.  It's merely wasteful of space.
1994-01-28 01:40:22 +00:00
Ken Raeburn 5749c49700 New Alpha support files, based on files from CMU.
Still to do:
 - fix floating-point handling
 - figure out if we can adapt to using ../opcodes/alpha-opc.h
 - gcc bootstrap testing
 - 32-bit mode support?
 - test cross-assembly
1994-01-28 01:37:02 +00:00
Ken Raeburn 98c6bbbe43 * as.h: If __GNUC__ and inline are both undefined, define inline away.
* write.c (cvt_frag_to_fill): Don't assume that fr_var for rs_align or rs_org
frags will be 1.
(relax_segment): For rs_align, if fr_var is not 1, complain if
required padding is not a multiple of the size of the pad pattern.
(fixup_segment): Leave gp-relative relocations alone.  For pcrel relocations
referring to the same segment, clear fx_pcrel when clearing fx_addsy.
* as.h: Adjust comments on rs_align.

* write.c, config/obj-{aout,bout,coff*}.c, config/tc-sparc.c: Query the fx_done
field instead of fx_addsy to see if the fixup still needs to be applied.  Set
fx_done and clear fx_addsy both, for now.  If TC_HANDLES_FX_DONE isn't defined,
assume md_apply_fix will only clear fx_addsy, and set fx_done accordingly after
returning.
* config/tc-sparc.h (TC_HANDLES_FX_DONE): Define.

* config/obj-coff.c (dot_text_symbol, dot_data_symbol, dot_bss_symbol): Defined
here, static.

* config/obj-aout.c [BFD_ASSEMBLER]: Undef NO_RELOC before including aout/aout64.h.

* write.c (write_object_file): If EMIT_SECTION_SYMBOLS is false, don't write
out a section symbol even if it's used in a relocation; assume relocations will
handle section numbers somehow.  Rename "punt_it" label to "punt_it_if_unused"
to reflect it's true use.
(EMIT_SECTION_SYMBOLS): Default to 1.
(adjust_reloc_syms): Don't create a new symbol for an absolute
reference; just use the absolute section symbol.
(write_relocs): Make printout of reloc values dependent on flag DEBUG3, not
DEBUG2.
* config/obj-aout.h (EMIT_SECTION_SYMBOLS): Define as 0.
* config/obj-ecoff.h (EMIT_SECTION_SYMBOLS): Ditto.
1994-01-28 01:21:53 +00:00
Ken Raeburn 351878df5a whitespace/formatting changes 1994-01-28 00:58:00 +00:00
Ken Raeburn c1b625be7b whitespace/comment changes 1994-01-28 00:21:03 +00:00
Ken Raeburn eec0de3f43 * symbols.c (dot_text_symbol, dot_data_symbol, dot_bss_symbol): Deleted.
(symbol_begin): Moved to end of file, so function inlining can work better.
(fb_label_count, fb_label_max): Default C static initializers are sufficient.
* symbols.h (dot_text_symbol, dot_data_symbol, dot_bss_symbol): Declarations
deleted.
1994-01-28 00:03:38 +00:00
Ken Raeburn 6221fe2090 * atof-generic.c: Some reformatting.
(atof_generic): Be careful when mixing signed/unsigned values of different
sizes.
1994-01-27 23:39:00 +00:00
Ian Lance Taylor ec7a69ea23 * read.c (lex_type): No longer make '{' a valid character for
symbol names.
1994-01-27 23:10:19 +00:00
Ian Lance Taylor fe9205735e * as.c (main): Print long values using %ld. 1994-01-27 21:53:17 +00:00
Ian Lance Taylor a57180adea * messages.c (as_warn_internal): New static function.
(as_warn, 3 versions): Use as_warn_internal.
	(as_warn_where, 3 versions): New function.
	* as.h (as_warn_where): Declare.
1994-01-27 21:50:46 +00:00
Rob Savoye 03372cf4ab Change all occurances of RUNTEST_FLAGS to RUNTESTFLAGS to be consistant with
everything else. (and now work recursively too)
1994-01-26 21:44:50 +00:00
Jeff Law 509d5555dc More changes as suggested by Roland. Fix buglets so that it passes makeinfo. 1994-01-26 06:00:44 +00:00
Stan Shebs ca7bd5579a Tue Jan 25 18:30:34 1994 Stan Shebs (shebs@andros.cygnus.com)
* as.c (quiet_flag): New flag.
	(main): If -noquiet given, display execution time and memory used.
1994-01-26 02:34:20 +00:00
Jeff Law 9dcf805766 * doc/{all.texi,as.texinfo}: Add documentation for HPPA port. 1994-01-25 23:54:34 +00:00
Stan Shebs 6d15011d40 Tue Jan 25 10:49:31 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-config.in (varargs.h, sys/*.h): Don't create when
	configuring.
	(host.h): Create with forward-include.
	* mpw-make.in (CFLAGS): Add -w flag.
	* mpw-build.in: New file, build script fragment.
1994-01-25 18:59:27 +00:00
Stan Shebs 7c805df052 Tue Jan 25 10:52:22 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-xconfig.in: Use forward-include to create include files.
1994-01-25 18:57:17 +00:00
Ian Lance Taylor e4fc9376b2 Use <= in ecoff_frob_symbol, not <. 1994-01-25 18:52:01 +00:00
Ian Lance Taylor f71babce75 Various entries. 1994-01-25 00:27:25 +00:00
Ian Lance Taylor c6858c1be5 * ecoff.c (ecoff_frob_symbol): New function. Put undefined
symbols of known size in the undefined section.  Put small common
	symbols in a .scommon section.
	* ecoff.h (ecoff_frob_symbol): Declare.
	* config/obj-ecoff.h (obj_frob_symbol): Define.
	* config/obj-elf.c (obj_elf_write_symbol_p, obj_elf_write_symbol,
	obj_elf_frob_symbol): Removed unused functions.
	* config/obj-elf.h (obj_frob_symbol, obj_write_symbol): Removed
	unused macros.
	(obj_elf_frob_symbol, obj_elf_write_symbol): Removed declarations
	of unused functions.
	(obj_frob_symbol): Define if ECOFF_DEBUGGING.
1994-01-25 00:26:33 +00:00
Ian Lance Taylor 425625680a * tc-mips.c (g_switch_seen): New static variable.
(md_parse_option): Set g_switch_seen for -G option.
	(s_option): If creating PIC code, force the GP size to be 0.  Warn
	if -G switch used with a non-zero value.
1994-01-25 00:24:57 +00:00
Ian Lance Taylor 0cafaab1f0 * symbols.c (S_IS_COMMON): Use bfd_is_com_section rather than
comparing against bfd_com_section.
1994-01-25 00:20:48 +00:00
Ken Raeburn 2ef7731dee read.c (s_lcomm): Treat Alpha like MIPS in handling of .sbss section. 1994-01-24 19:17:03 +00:00
Rob Savoye 23c6150b6f Fix gas_version. 1994-01-21 00:35:57 +00:00
Rob Savoye 2d9f80791a * gas/all/gas.exp, lib/gas-defs.exp, sun4/addend.exp,
sparc-solaris/addend.exp: Tweaked to fix a few bugs and to run
	well under either version of expect
1994-01-20 23:47:09 +00:00
Rob Savoye ae61c2de71 Tweak to run under either version of expect. Add a hack-around for a
dejagnu 1.1.1 (only) bug.
1994-01-20 23:44:10 +00:00
Rob Savoye fd9b8885e1 Tweak to work with either version of expect. Use the verbose function, fix
gas_version.
1994-01-20 23:30:51 +00:00
Rob Savoye 6caa29338b Tweaked to run under either version of expect. 1994-01-20 23:10:41 +00:00
Ken Raeburn 7691379e7f * expr.c (operand): For floating point operand with unusual fp char from
FLT_CHARS, preserve the character.  Patch from Lisa Repka.
1994-01-20 18:26:17 +00:00
Ian Lance Taylor eb8fd0e9b4 * config/tc-mips.c (md_pseudo_table): Add all data allocation
pseudo-ops: .hword, .int, .long, .octa, .quad, .short, .single.
1994-01-20 04:18:14 +00:00
Ian Lance Taylor 13655af625 Smuggle N_WARNING symbols into BFD in obj_aout_frob_symbol. 1994-01-19 05:02:24 +00:00
Steve Chamberlain d9420fc11c Get implicit val . right. 1994-01-19 00:26:59 +00:00
Jeff Law 2f156c92bd * config/tc-hppa.c: Disable multiple $CODE$ subspace code. It
confuses GDB for some unknown reason.
        * cofnig/obj-som.c: Likewise.
1994-01-19 00:21:16 +00:00
Steve Chamberlain ec0bcbbaa1 * config/obj-coffbfd.c (obj_coff_endef): For C_EFCN, C_BLOCK and
C_FCN assume .val has been set to .
1994-01-19 00:16:03 +00:00
Ken Raeburn 19302e449a * literal.c (add_to_literal_pool): Handle duplicates of values already written
to literal pool.
1994-01-19 00:08:50 +00:00
Ian Lance Taylor 4bda835f61 * config/obj-aout.c (obj_aout_frob_symbol): Try to get symbols
with explicitly marked stabs through BFD: if a symbol marked
	N_UNDF | N_EXT is in the absolute section, move it to the
	undefined section; move a symbol marked N_INDR into
	bfd_ind_section and set the BSF_INDIRECT flag.
1994-01-18 22:27:26 +00:00
Ian Lance Taylor 17ed84edb5 * ecoff.h (ecoff_set_gp_prolog_size): Declare.
* ecoff.c (ecoff_set_gp_prolog_size): Return type is void.
1994-01-17 20:44:33 +00:00
Ian Lance Taylor 04cb3372f3 Comment and whitespace changes. 1994-01-17 20:39:26 +00:00
Jeff Law 51517966bc * config/tc-hppa.c (pa_ip): Explicitly check for comma before 'u'
and 'f' template operand.
1994-01-17 09:30:07 +00:00
Jeff Law 3df8598e73 * gas/hppa/basic/fp_misc.s: Delete copr instruction. It's tested
elsewhere now.
        * gas/hppa/basic/{copr, coprmem, spop}.s: New tests.
        * gas/hppa/basic/basic.exp: Run them.
1994-01-17 08:25:42 +00:00
Jeff Law d0286a2112 * config/tc-hppa.c (pa_ip): Handle 'N', 'O', 'o', '0', '1', 'u',
and '2' in copr and sfu instruction templates.
1994-01-17 08:19:56 +00:00
Jeff Law e7501ac710 * as.h (subseg_force_new): Add prototype. 1994-01-17 00:45:15 +00:00
David Edelsohn d307fed126 * app.c (do_scrub_next_char): Allow lines like " foolab :". 1994-01-15 19:00:32 +00:00
David Edelsohn d2550c72df * read.c (emit_expr): Fix computation of mask. 1994-01-15 17:33:16 +00:00
David Edelsohn e79cb10bbe * config/obj-elf.c (obj_elf_section): Fix loop termination test. 1994-01-15 17:31:05 +00:00
Ken Raeburn 642709633f ecoff.c, as.c changes 1994-01-14 02:05:28 +00:00
Ken Raeburn 012353f7d1 (ecoff_set_gp_prolog_size): New function.
(current_file_idx): New static variable.
(add_file): Use and increment current_file_idx instead of indx parameter.

Also removed trailing whitespace from lines.
1994-01-14 02:01:52 +00:00
Ken Raeburn 69ecc03f3d Oops. Didn't mean to change reject_dev_configs. 1994-01-14 01:55:59 +00:00
Ken Raeburn 398527f2a8 Don't include config.h directly any more. 1994-01-14 01:54:01 +00:00
Ken Raeburn ff4325cb9b * struc-symbol.h (struct symbol): Make all bitfields unsigned. 1994-01-14 01:28:19 +00:00
Ken Raeburn d211303dc0 Changes for i960_validate_fix, i386-netbsd* configs, BFDDEF handling, literal
pool offset bugs, config.h handling.
1994-01-13 21:34:15 +00:00
Ken Raeburn acf6404e0b (add_to_literal_pool): Take symbol and addend as arguments, instead of
expression, for now.  Fix calculation of offset to return.
1994-01-13 21:31:50 +00:00
Ken Raeburn 939b21d207 (segment_info_type) [NEED_LITERAL_POOL]: Add field literal_pool_size. 1994-01-13 21:30:18 +00:00
Ken Raeburn 7f955c18aa * as.h: Include config.h. Added forward declaration for struct symbol.
(add_to_literal_pool): Fix declaration.
1994-01-13 21:27:49 +00:00
Ken Raeburn 420065a54e * configure.in (i386-*-netbsd*): New target, using te-netbsd.h.
(i386-*-netbsd0.8): New target, like 386bsd.

* configure.in: Set BFDDEF in Makefile to "define" or "undef".
* Makefile.in (config.h): Protect against multiple inclusions.  Define or undef
BFD_ASSEMBLER as specified by $(BFDDEF).
(ALL_CFLAGS): Omit $(BFDDEF).
1994-01-13 21:24:27 +00:00
Jeff Law 86066d063b * config/obj-som.c (som_frob_file): Call adjust_code_sections
for each section.
        (adjust_code_sections): New function.  Adjusts the VMA for all the
        $CODE$ subspaces.

        * config/tc-hppa.c (md_assemble): Also handle creating a fixup
        for the unwind descriptors if a function's label follows the
        .PROC and .ENTRY directives.
        (pa_entry): Don't set BSF_FUNCTION for the label symbol here; it
        is done elsewhere.  Don't create a fixup for the unwind
        descriptors if the function's label has not been defined yet.
        (pa_proc): For SOM, place each procedure within a new $CODE$
        subspace.  Adjust the segment and frag for the associated
        function label if it exists.
1994-01-13 20:17:39 +00:00
Jeff Law 500828a095 * subsegs.c (subseg_get): Accept new argument "force_new". If
set then a new segment is always created.  All callers changed.
        (subseg_force_new): New function.  Similar to subseg_new, but
        always force a new segment to be created.

        * config/obj-som.c (som_frob_file): Call adjust_code_sections
        for each section.
        (adjust_code_sections): New function.  Adjusts the VMA for all the
        $CODE$ subspaces.

        * config/tc-hppa.c (md_assemble): Also handle creating a fixup
        for the unwind descriptors if a function's label follows the
        .PROC and .ENTRY directives.
        (pa_entry): Don't set BSF_FUNCTION for the label symbol here; it
        is done elsewhere.  Don't create a fixup for the unwind
        descriptors if the function's label has not been defined yet.
        (pa_proc): For SOM, place each procedure within a new $CODE$
        subspace.  Adjust the segment and frag for the associated
        function label if it exists.
1994-01-13 20:17:07 +00:00
Jeff Law d025bc7b6f * subsegs.c (subseg_get): Accept new argument "force_new". If
set then a new segment is always created.  All callers changed.
        (subseg_force_new): New function.  Similar to subseg_new, but
        always force a new segment to be created.
1994-01-13 20:16:44 +00:00
Jeff Law 644df6f6c2 * gas/all/gas.exp: No longer expect difference of forward
references to fail.
        * gas/all/x930509.s: Fix testcase to match how the expect code was
        written.
1994-01-13 20:01:22 +00:00
Jeff Law fca59f9d42 * config/tc-hppa.c (hppa_fix_struct): Add new "segment" field.
(hppa_fix_new): Initialize segment field.
        (md_apply_fix): Do nothing for pc-relative fixup which involves
        crossing a segment boundary.
        (pa_procend): Undefine the current label after handling .PROC
        and .PROCEND directives.
        (dummy_symbol): Make type "symbolS *".  Change references as
        appropriate.
1994-01-13 06:06:35 +00:00
Jeff Law 96f147a095 * gas/hppa/more.parse/procbug.s: Add test for another bug relating
to having a function's label follow the .PROC directive.
1994-01-12 21:42:55 +00:00
Ian Lance Taylor 4a99cebf62 Remove CVS merge markers. 1994-01-12 19:18:56 +00:00
Ian Lance Taylor bbf7e43ddc * read.c (read_a_source_file): Cast array argument to unsigned
char.
	* write.c (adjust_reloc_syms): Remove unused variable symseginfo.
	(write_object_file): Don't define punt_it if it won't be used.
	(fixup_segment): Don't define skip if it won't be used.
1994-01-12 18:40:11 +00:00
Jeff Law a1c91916e8 * app.c (do_scrub_next_char): Another attempt to fix bugs
dealing with labels without colons (for HPPA and MRI).
1994-01-12 05:55:09 +00:00
Jeff Law 61bfefd79a * gas/hppa/reloc/reloc.exp: Add test for cross-subspace call bug
found while working on multiple $CODE$ subspace support.
1994-01-12 05:49:12 +00:00
David Edelsohn e9ca7a1951 * config/tc-sparc.c (sparc_ip): Truncate args to %hi/%lo to 32 bits. 1994-01-12 01:11:26 +00:00
David Edelsohn 44ce2f3221 * expr.c (integer_constant): Fix computation of too_many_digits. Variable
digit_2 renamed to start.  Fix check for whether number will fit in 32 bits.
* read.c (emit_expr): Use valueT instead of long.
1994-01-12 01:04:10 +00:00
Ian Lance Taylor f34e27a18a * config/obj-elf.c: If TC_MIPS, include elf/mips.h.
(special_sections): Define.
	(obj_elf_special_section): Get default types and attributes from
	list of special sections.
	* config/tc-mips.c (ELF_TC_SPECIAL_SECTIONS): Define.
1994-01-11 22:35:16 +00:00
Ian Lance Taylor 4e76ae53fc * config/obj-ecoff.c (ecoff_frob_file): Force .sdata and .sbss
sections to be close together.
1994-01-11 21:31:30 +00:00
Ken Raeburn 6f1c6a6796 log for netbsd changes checked in a couple of days ago 1994-01-11 19:53:28 +00:00
Ian Lance Taylor 8197b58995 * config/tc-mips.c (macro): Corrected $at warnings in a couple of
spots.
1994-01-11 19:18:45 +00:00
Ian Lance Taylor af255ca0bb * listing.c (listing_prev_line): New function.
* listing.c: Include subsegs.h.
	(listing_prev_line): New function.
	(calc_hex): Reset byte_in_frag to zero for each new frag.
	* config/tc-mips.c (append_insn): Call listing_prev_line after
	emitting nop instructions.
	* Makefile.in (listing.o): Depends upon subsegs.h.
1994-01-11 18:06:01 +00:00
Stan Shebs 2a79b2028e Set lose_these_too correctly 1994-01-11 02:55:30 +00:00
Jeff Law 378cbfe1c9 * gas/hppa/more.parse/parse.exp: procbug.s is no longer expected
to fail.
        * gas/hppa/more.parse/procbug.s: Add missing .procend.
1994-01-10 17:55:19 +00:00
Jeff Law 4047ff1d24 * config/tc-hppa.c (pa_ip): Put check for missing label on .PROC
here.  Handle case where label may be defined after the .PROC.
        (pa_proc): It is not an error if the procedure's label isn't
        defined before the .PROC directive.
1994-01-10 17:54:01 +00:00
Ken Raeburn 34e4120b45 keep te-netbsd.h 1994-01-09 21:03:39 +00:00
Ken Raeburn 91176af626 te-netbsd.h: New file.
tc-i386.h (TARGET_FORMAT) [TE_NetBSD]: Use a.out-netbsd-386 for this config.
1994-01-09 20:49:23 +00:00
Ian Lance Taylor fe4e32905b * ecoff.c (ecoff_stab): Don't clobber the ECOFF symbol information
with the associate stabs information.
	(ecoff_build_symbols): Never set the type of stabs symbols to
	st_Global.  Don't update the symbol index or ifd if the gas symbol
	is not the same as the ECOFF symbol (which is now the case for
	stabs symbols).
1994-01-07 22:42:23 +00:00
Stan Shebs 0f8cb88de1 Fri Jan 7 11:18:48 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-make.in: Replace 8-bit chars with their names.
	* config/ho-mpw.h (LOSING_COMPILER): Define.
1994-01-07 19:22:15 +00:00
Stan Shebs 917fae09f9 Fri Jan 7 11:14:07 1994 Stan Shebs (shebs@andros.cygnus.com)
* config/tc-mips.c (macro): Add a LOSING_COMPILER ifdef that
	splits the function.
	(macro2): New function, if LOSING_COMPILER defined.
1994-01-07 19:18:16 +00:00
Steve Chamberlain 03a372ed70 * config/obj-coffbfd.c (fill_section): Don't ever fill past the
end of a section. (write_object_file): Temporary fix - setup
	stdoutput.
1994-01-07 17:42:34 +00:00
Ken Raeburn fd0e2cf2d5 fix sparc-solaris reloc bug 1994-01-06 23:17:44 +00:00
Ian Lance Taylor 13fe1379a6 * config/tc-mips.c (mips_ip): Warn about using $1 as well as $at
without .set noat.
1994-01-06 06:09:22 +00:00
Ken Raeburn d4aad2b441 Makefile.in, as.h changes 1994-01-06 01:17:18 +00:00
Ken Raeburn dffc8b9eb4 include literal.c, .o 1994-01-06 01:16:51 +00:00
Ken Raeburn 2d29d89dcf new file literal.c 1994-01-06 01:14:04 +00:00
Ken Raeburn 311ff8d65d tc-mips.h, subsegs.c changes 1994-01-06 01:11:05 +00:00
Ken Raeburn 166d9f909a (TARGET_FORMAT) [OBJ_AOUT]: Fix for new names in bfd. 1994-01-06 01:10:35 +00:00
Rob Savoye fce98d637f * config/ho-vsta.h, configure.in, .Sanitize: Add support for VSTa
micro-kernel.
1994-01-05 05:26:47 +00:00
Rob Savoye 5fdb3602a6 Add default values for AS and ASFLAGS. 1994-01-05 05:21:34 +00:00
Stan Shebs 5a0517735a Tue Jan 4 15:12:43 1994 Stan Shebs (shebs@andros.cygnus.com)
* Makefile.in (INCLUDES): Add $(srcdir)/.. to places to search.
	* config/obj-ecoff.c: Include files as "bfd/" instead of "../bfd/".
	* app.c, flonum.h, hex-value.c (const): Change #if to be more
	portable.
1994-01-04 23:35:56 +00:00