Commit Graph

601 Commits

Author SHA1 Message Date
Nick Clifton 6b2539e3e6 Do not allow EITHER_BUT_PREFER_MU opcodes to be packed into reverse
sequential buckets, and warn if the user does so.
2000-06-27 18:21:39 +00:00
Nick Clifton 65aa24b6e8 Applied Marek Michalkiewicz <marekm@linux.org.pl>'s patch to ehance the AVR port. 2000-06-27 01:45:30 +00:00
Nick Clifton 1994a7c76c Fix spelling typos.
Remove use of DEFUN().
2000-06-25 17:59:22 +00:00
Nick Clifton f0c56b9036 Assemble ldmac correctly. 2000-06-25 16:49:47 +00:00
DJ Delorie 6d249963bc 386.c (md_estimate_size_before_relax): Revert
more changes from Sept 1999
(tc_i386_fix_adjustable): ditto
(md_apply_fix3): ditto
2000-06-25 01:33:31 +00:00
Frank Ch. Eigler 680d285772 * cgen assembler fixes; approved by original author <devans>
2000-06-24  Frank Ch. Eigler  <fche@redhat.com>

	* cgen.c (expr_jmp_buf_p): New validity flag for expr_jmp_buf.
	(gas_cgen_parse_operand): Set it around expression() call.
	(gas_cgen_md_operand): Test for it before longjmp().
2000-06-24 15:10:45 +00:00
Alan Modra c0fecd35a1 Blow away DEFUN. 2000-06-24 11:51:53 +00:00
Alan Modra e7b305a27f Fix comment typos. 2000-06-24 08:07:01 +00:00
Alan Modra 3e87a7603f Duh! What double-increment? 2000-06-23 11:58:00 +00:00
Frank Ch. Eigler ed6d6fd3c4 * $literal support
2000-06-23  Frank Ch. Eigler  <fche@redhat.com>

	* expr.c (operand): Permit $hex literals if LITERAL_PREFIXDOLLAR_HEX
	is defined.
2000-06-23 10:51:28 +00:00
Alan Modra f7c8887211 (operand): Do not as_bad() if RELAX_PAREN_GROUPING is
defined.  Fix error message and double increment of
input_line_pointer for `[' grouping.
2000-06-23 10:12:48 +00:00
Alan Modra 70d6ecf3bf Kazu Hirata's formatting and comment typo fixes. 2000-06-23 05:44:30 +00:00
Timothy Wall e9718fe12e Move premature QP notation clearing to it's appropriate location. 2000-06-23 03:31:06 +00:00
Alan Modra 1581f8c9fe Ensure /usr/include and the like stay out of dependencies. 2000-06-22 13:01:43 +00:00
Alan Modra 45288df104 Fix a problem with 32-bit displacements in .code16gcc mode. 2000-06-22 10:49:13 +00:00
H.J. Lu 0158099299 2000-06-21 H.J. Lu <hjl@gnu.org>
* Makefile.am: Rebuild dependency.
	* Makefile.in: Rebuild.
2000-06-22 03:35:54 +00:00
Jeff Law 40f09f82cc * config/tc-h8300.c (parse_reg): Make the function static.
(parse_exp): Likewise.
2000-06-21 21:31:24 +00:00
DJ Delorie 78295804c3 * config/tc-i386.c (tc_i386_fix_adjustable): Revert change from
Sept 1999; RVA relocs need to be treated more like DIR32 relocs
for cygwin import libraries to work properly.
2000-06-21 02:18:17 +00:00
H.J. Lu 45f85b088a 2000-06-20 H.J. Lu <hjl@gnu.org>
* Makefile.am: Rebuild dependency.
	* Makefile.in: Rebuild.
	* configure: Likewise.
	* doc/Makefile.in: Likewise.
2000-06-20 20:40:40 +00:00
Timothy Wall 39bec121fb TI C54x target. 2000-06-20 13:52:32 +00:00
Nick Clifton 60bcf0fa8c Applied Stephane Carrez <Stephane.Carrez@worldnet.fr> patches to add support
for m68hc11 and m68hc12 processors.
2000-06-19 01:22:44 +00:00
Nick Clifton 24ef815251 Use bfd_octets_per_byte instead of OCTETS_PER_BYTE 2000-06-19 01:01:04 +00:00
Nick Clifton 5480ccf375 Fix compile time warnings 2000-06-19 00:59:43 +00:00
Nick Clifton ec05f67439 Fix compile time warnings 2000-06-19 00:58:34 +00:00
H.J. Lu 119caedd35 2000-06-18 H.J. Lu <hjl@gnu.org>
* configure.in: Don't emulate i386-pc-pe-coff with i386coff.
	* configure: Rebuild.
2000-06-18 23:47:18 +00:00
Nick Clifton 607723e496 Typo fix: Change BFD_ASSEMLER to BFD_ASSEMBLER. 2000-06-17 22:00:30 +00:00
Alan Modra 55d98a80d4 Don't start directives in first column. 2000-06-17 12:09:58 +00:00
Nick Clifton b946ec34e6 Add -mcpu=rmXXXX switch. 2000-06-16 19:11:27 +00:00
Ulf Carlsson 37ce37b139 * config/tc-mips.h: Remove definition of ONLY_STANDARD_ESCAPES. 2000-06-15 09:30:30 +00:00
H.J. Lu 8e1b6ed697 2000-06-14 H.J. Lu <hjl@gnu.org>
* gas/macros/strings.d: Support a.out and coff.
2000-06-14 18:12:26 +00:00
Nick Clifton 88830cd102 Remove 'mrs r9, cpsr_all' since the cpsr_all flag is no longer legal syntax. 2000-06-14 18:08:24 +00:00
Ulf Carlsson c06ae4f232 2000-06-13 Ulf Carlsson <ulfc@engr.sgi.com>
* macro.c (getstring): Make it possible to escape the quote
	character.
2000-06-14 04:58:50 +00:00
Jeff Law 20348649cc * config/tc-hppa.c (pa_export): Weak symbols can be global. 2000-06-14 02:58:49 +00:00
Nick Clifton aa787a8959 Add test of macro expansion of string arguments. 2000-06-13 21:23:28 +00:00
H.J. Lu bcef29e60c 2000-06-13 H.J. Lu <hjl@gnu.org>
* configure: Regenerate.
2000-06-13 19:11:54 +00:00
Alan Modra 63a0b638d4 Don't treat `;' as a line separator by default.
Explicitly mention `;' in line_separator_chars in each backend.
2000-06-09 00:00:04 +00:00
Nick Clifton 9bab93495a Assign correct reloc value to size 1 constant valued fixes. 2000-06-08 19:19:23 +00:00
David O'Brien 946efd95b8 * configure.in (VERSION): Update to show this is the CVS mainline.
Approved by:	Nick Clifton <nickc@cygnus.com>
		Message-Id: <200005222205.PAA14565@elmo.cygnus.com>
2000-06-08 19:00:02 +00:00
David O'Brien 6480b79a19 * config/tc-alpha.c (md_undefined_symbol): Properly understand that $at
is the integer register $r28, vs. both $r28 and the floating point
register $f28.

This quiets a bogus warning about needing ".set noat".

Approved by:	Nick Clifton <nickc@cygnus.com>
		Message-Id: <200006081749.KAA12558@elmo.cygnus.com>
2000-06-08 18:34:06 +00:00
Jim Wilson 10850f29fe unwind bug fixes needed for today's gcc patch.
* config/tc-ia64.c (generate_unwind_image): Call ia64_flush_insns.
	(dot_endp): Don't call ia64_flush_insns.
	(emit_one_bundle): Don't delete prologue/body records from
	unwind_record list in first loop.  Rewrite second loop to account for
	this.
2000-06-08 17:07:48 +00:00
Jim Wilson 150f24a284 Patch from David Mosberger, cleanups to improve 32b-x-64b cross support.
* config/tc-ia64.c: Add missing prototypes.
	(generate_unwind_image): Cast argument to output_unw_records call.
2000-06-07 23:14:22 +00:00
Denis Chertykov e38c9cc203 * config/tc-avr.c (avr_operand): fix the fomratting of the comment. 2000-06-07 18:56:15 +00:00
Denis Chertykov 1188e08253 * config/tc-avr.c (AVR_ISA_???): moved to include/opcode/avr.h
(REGISTER_P): likewise.
	(avr_opcodes): uses include/opcode/avr.h
	(avr_operand): enable ld r,Z or st r,Z for at90s1200.
2000-06-07 17:42:44 +00:00
Alan Modra a6b9488aec Modify test to check line separator works. 2000-06-04 23:14:30 +00:00
Alan Modra 0b5454486c (is_end_of_line): Add three missing lines of 0 initializers. 2000-06-04 05:03:31 +00:00
Alan Modra ac743b2c9d (is_end_of_line): No ';' for TC_HPPA. 2000-06-04 03:28:38 +00:00
H.J. Lu 969e1a7b86 2000-06-03 H.J. Lu <hjl@gnu.org>
* read.c (is_end_of_line): Put back `;'.
2000-06-03 22:33:09 +00:00
Alan Modra 65172ab8f7 Update md_shortopts to what we actually handle. 2000-06-03 13:06:33 +00:00
Alan Modra b75c0c920f is_end_of_line fixes. 2000-06-02 02:52:10 +00:00
Scott Bambrough a6836251f6 The ARM assembler is not assembling the following instruction
correctly.

	mrs	lr, spsr

The string pointer is advanced to far before the check to set
the SPSR bit.

Thu Jun 01 2000  Scott Bambrough <scottb@netwinder.org>

	* config/tc-arm.c (do_mrs): Allow SPSR_BIT to be set correctly.
2000-06-01 19:07:54 +00:00
Nick Clifton 43841e9116 Fix compile time warning messages. 2000-05-29 22:05:27 +00:00
Nick Clifton dcb87e5cf4 Minor formatting tweak to make synchronisation easier. 2000-05-29 20:25:14 +00:00
Nick Clifton 992403b686 Update copyright dates 2000-05-29 20:10:32 +00:00
Nick Clifton 4b62050960 Do not run test sfor c54x 2000-05-29 20:04:54 +00:00
Nick Clifton 43da67e8e0 Remove RCS date string in order to make synchronisation easier. 2000-05-29 19:56:44 +00:00
Phil Blundell a81d9f0ccc 2000-05-29 Philip Blundell <philb@gnu.org>
* doc/as.texinfo: (Local Labels): Delete misplaced mention of ARM.
2000-05-29 18:48:26 +00:00
Phil Blundell a057431b43 2000-05-29 Philip Blundell <philb@gnu.org>
* doc/as.texinfo: Update copyright dates.
	* NEWS: Mention ARM ELF support.
2000-05-29 18:18:42 +00:00
Alexandre Oliva 3c07fb76e6 * config/tc-mn10300.c (md_assemble): Copy size to real_size before
it is modified, and use the real_size to compute the frag address
for dwarf2 line info.
2000-05-27 21:40:22 +00:00
Alan Modra ad4d6ccf5c Fix "make dep-in" and "make dep"
Previous rules had problems due to automake moving variables around.
2000-05-27 13:41:11 +00:00
Jakub Jelinek 6faf3d667f * config/tc-sparc.c (sparc_relax): New.
(md_longopts): Add -relax and -no-relax options.
	(md_parse_options, md_show_usage): Likewise.
	(md_apply_fix3): Optimize tail call into branch always if possible.
2000-05-26 06:45:55 +00:00
Donald Lindsay 0a44c2b16f New short-conditional-branch packing rules for D10V. 2000-05-25 22:35:05 +00:00
Jim Wilson e0c9811a90 IA-64 unwind info changes, fix errors, add missing pieces, and some cleanup.
* config/tc-ia64.c (dot_restorereg_p): New function.
	(md_pseudo_table): Add restorereg.p.
	...
2000-05-25 02:00:14 +00:00
Hans-Peter Nilsson 4c8d9ec67a Oops. Forgot to say "configure: Regenerate". 2000-05-23 10:03:32 +00:00
Hans-Peter Nilsson f98fd99f67 * configure.in (i386-*-freebsd a.out entry): Quote properly. 2000-05-23 08:53:54 +00:00
Alan Modra 5a327c7ac2 Missed copyright update in last patch. 2000-05-23 05:07:47 +00:00
Alan Modra ee7fcc42b1 Pass jump reloc in fr_var so it can be used in
md_estimate_size_before_relax, replacing old kludge.
2000-05-23 04:48:21 +00:00
Richard Henderson c67e42c950 * config/tc-ia64.c (FUNC_PC_RELATIVE): New.
(pseudo_func): Add pcrel.
        (operand_match):  Handle IA64_OPND_TGT64.
        (build_insn): Likewise.
        (md_begin): Initialize pseudo_func[FUNC_PC_RELATIVE].
        (ia64_gen_real_reloc_type): Handle FUNC_PC_RELATIVE.
        (fix_insn): Handle all three 64-bit relocation types.
2000-05-23 01:48:04 +00:00
Hans-Peter Nilsson 5110c57e8e * obj.h (struct format_ops): New members begin, app_file,
s_set_other, s_set_desc, s_get_type, s_set_type,
	separate_stab_sections, init_stab_section.

	* config/obj-multi.h: Update GPL notice to v2.
	(obj_begin): New.
	(obj_app_file): New.
	(S_SET_SIZE): Test s_set_size for NULL before calling.
	(S_SET_ALIGN): Similar for s_set_align.
	(S_SET_OTHER): New.
	(S_SET_DESC): New.
	(S_GET_TYPE): New.
	(S_SET_TYPE): New.
	(SEPARATE_STAB_SECTIONS): New.
	(INIT_STAB_SECTION): New.
	(EMIT_SECTION_SYMBOLS): New.
	(AOUT_STABS) [OBJ_MAYBE_AOUT]: Define.

	* config/obj-elf.h: Update GPL notice to v2.
	Mention that this file is included from obj-multi.h.
	(obj_begin): Wrap definition in ifndef.
	(elf_file_symbol): Constify declaration.
	(obj_app_file): Ditto.
	(SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
	Wrap in ifndef SEPARATE_STAB_SECTIONS.

	* config/obj-elf.c (elf_s_set_other): New.
	(elf_file_symbol): Constify argument.
	(elf_separate_stab_sections): New.
	(elf_init_stab_section): New.
	(elf_format_ops): Add new members.  Remove comma at end.

	* config/obj-ecoff.c (ecoff_separate_stab_sections): New.
	(ecoff_format_ops): Add new fields.  Remove comma at end.
	Mention inconsistency for emit_section_symbols.

	* config/obj-coff.h (c_dot_file_symbol): Constify declaration.

	* config/obj-coff.c (c_dot_file_symbol): Constify argument.
	(coff_separate_stab_sections): New.
	(coff_format_ops): Add new members.

	* config/obj-aout.c (obj_aout_sec_sym_ok_for_reloc): New.
	(obj_aout_s_set_other): New.
	(obj_aout_s_set_desc): New.
	(obj_aout_s_get_type): New.
	(obj_aout_s_set_type): New.
	(obj_aout_separate_stab_sections): New.
	(aout_format_ops): New members added.  Use obj_aout_process_stab,
	not 0.  Use obj_aout_sec_sym_ok_for_reloc, not 0.
	(obj_aout_frob_symbol): Add ATTRIBUTE_UNUSED to args as
	appropriate.
	(obj_aout_line, obj_aout_weak, obj_aout_type): Ditto.
2000-05-22 21:19:43 +00:00
Alan Modra b98ef14717 Keep a reloc for jumps to weak and external symbols. 2000-05-22 11:38:43 +00:00
Hans-Peter Nilsson 0aa5d42641 * stabs.c (aout_process_stab): Make global.
(s_desc): Add ATTRIBUTE_UNUSED to args as appropriate.
	* read.h (aout_process_stab): Declare.

	* configure.in (EMULATIONS) [i386aout, i386coff, i386elf]:
	Generalize to *aout, *coff *elf.
	* configure: Regenerated.

	* doc/internals.texi (Object format backend): Say
	SEPARATE_STAB_SECTIONS needs to be nonzero, not just defined.
2000-05-21 18:26:10 +00:00
Hans-Peter Nilsson f48026f7d7 * gas/elf/elf.exp: Exclude *-*-linux*coff* as non-elf. 2000-05-21 18:06:40 +00:00
Hans-Peter Nilsson b8166459e1 * Makefile.am (TARG_ENV_HFILES): Delete te-multi.h.
* Makefile.in: Regenerated.
2000-05-20 02:03:38 +00:00
Catherine Moore 7c3dc350c9 * cgen.h (GAS_CGEN_MAX_FIXUPS): Check if already defined. 2000-05-19 21:36:14 +00:00
Jeff Law b3b6a3fe2b * config/tc-hppa.c (md_apply_fix): Mask out immediate bits of
instruction to reflect change in re_assemble_*.
2000-05-19 00:21:12 +00:00
Jeff Law c9e10a082c * configure.in (hppa-*-hpux11*): If the cpu is hppa*64*, then
build PA64 ELF tools.
        * configure: Rebuilt.
2000-05-18 16:52:11 +00:00
Alan Modra 3043679fe7 Update dependencies. 2000-05-17 14:24:25 +00:00
Nick Clifton 322f2c4579 Add support for _x and _s flags to MSR instruction 2000-05-15 19:25:22 +00:00
Phil Blundell 5e6cbf410d Apply David O'Brien's comment patch. 2000-05-14 18:53:18 +00:00
Alan Modra 4132022df1 Kazu Hirata's output reloc for mov.
Don't rely on short being 16 bits.
2000-05-14 11:48:42 +00:00
Alan Modra b4fd930a27 New file 2000-05-14 09:37:07 +00:00
Alan Modra 897083bdcd Quell some gcc warnings by defining textdomain and bindtextdomain
as intl/libgettext.h does.
2000-05-13 13:05:36 +00:00
Alan Modra a38cf1db3a Add x86 gas -q option to quiet some x86 gas warnings.
Remove useless -m flag_do_long_jump from x86 gas.
If BFD_ASSEMBLER, store --defsym value in a bfd_vma, and use scan_bfd_vma.
2000-05-13 12:49:55 +00:00
Alan Modra e413e4e996 `.arch cpu_type' pseudo for x86. 2000-05-13 09:26:23 +00:00
Alexandre Oliva e8b1cae533 * config/tc-mn10300.h (md_end): Define.
(mn10300_finalize): Declare.
* config/tc-mn10300.c: Include dwarf2dbg.h.
(debug_line): Define.
(md_assemble): Generate dwarf2 line info.
(mn10300_finalize): New function.  Finalize dwarf2 info.
2000-05-12 06:16:30 +00:00
Alan Modra de950844b3 Ulf Carlsson's patches:
Include *-*-linux* in svr4pic tests
Test weak symbol handling.
2000-05-11 01:55:11 +00:00
Alan Modra 426b040396 (md_estimate_size_before_relax): Use the external version of
the relocation for weak symbols.
2000-05-11 01:48:09 +00:00
Jim Wilson e4c58b2551 Unwind info bug fixes from David Mosberger.
* config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed
	frame size in units of 16 bytes, as required per SW Conventions manual.
	(output_unw_records): Output info-block header as a dword to get
	byte-order right.
2000-05-09 01:54:37 +00:00
Alan Modra 8fce3f5ef7 Michael Sokolov's 68000 patches + assorted compiler warning fixes. 2000-05-08 10:24:06 +00:00
Alan Modra 575bc3d64a Fix breakage from 2000-03-31 bfd/srec.c change. 2000-05-08 10:11:19 +00:00
Alan Modra fb166ee3a7 Just mention current year in printed copyright message. 2000-05-04 03:53:00 +00:00
J.T. Conklin 7a899fff9a * config/tc-ppc.c (pre_defined_registers): Add entries for vector
unit registers.
(md_parse_option): Recognize -m7400.
2000-05-03 22:23:01 +00:00
Ian Lance Taylor 44877466ff * config/atof-ieee.c (gen_to_words): When adding carry back in,
don't permit lp to become less than the words array.
2000-05-03 21:23:52 +00:00
Nick Clifton eaa15ab811 Fix little endian relocs 2000-05-03 18:50:55 +00:00
Alan Modra 7c4f6a035a Update copyright message. 2000-05-03 06:38:40 +00:00
Alan Modra da5d444c29 go32 bss alignment. 2000-05-03 04:25:33 +00:00
Alan Modra 3f9b03b5da Assorted code cleanup and fixes for hppa. Re-enable elf32-hppa as
it now compiles even if it doesn't work too well.
2000-05-02 00:12:52 +00:00
Alan Modra 36f8992610 Duplicate hppa*-*-*elf* behaviour for hppa*-*-linux*.
Fix elf tests for targets that define LABELS_WITHOUT_COLONS.
2000-05-01 23:56:49 +00:00
Nick Clifton 7fca9a7240 Fix tests to remove leading zeroes from labels 2000-05-01 18:08:39 +00:00
Catherine Moore a298424885 * macro.c (macro_expand_body): Don't prepend macro number with zeroes. 2000-05-01 14:01:06 +00:00
Denis Chertykov df13624506 * config/tc-avr.c: ATTRIBUTE_UNUSED added to the necessary places.
More comments added.
	(md_begin): Removed "construct symbols for each register name".
	Because register names conflicts with GCC generated function
	names.
	(avr_operand): Now constant numbers can be used as a register
	identifiers (0 as r0, 31 as r31).
	(md_assemble): use skip_space () before parsing instruction
	operands.
2000-05-01 11:14:05 +00:00