Commit Graph

1086 Commits

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