Commit graph

1126 commits

Author SHA1 Message Date
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