aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1998-05-29 22:25:56 +0000
committerIan Lance Taylor <ian@airs.com>1998-05-29 22:25:56 +0000
commit04e6b63b72d72d29b1a5ff81c3a33ca75126114a (patch)
treeef21853f848dec1f865f7ecf991a3605b07653b8
parentf668d839e50e59321d62ca54e414463ad24929ef (diff)
downloadgdb-04e6b63b72d72d29b1a5ff81c3a33ca75126114a.zip
gdb-04e6b63b72d72d29b1a5ff81c3a33ca75126114a.tar.gz
gdb-04e6b63b72d72d29b1a5ff81c3a33ca75126114a.tar.bz2
* config/tc-a29k.h (WORKING_DOT_WORD): Define.
* config/tc-alpha.h (WORKING_DOT_WORD): Define. * config/tc-arm.h (WORKING_DOT_WORD): Define. * config/tc-h8300.h (WORKING_DOT_WORD): Define. * config/tc-h8500.h (WORKING_DOT_WORD): Define. * config/tc-hppa.h (WORKING_DOT_WORD): Define. * config/tc-i860.h (WORKING_DOT_WORD): Define. * config/tc-i960.h (WORKING_DOT_WORD): Define. * config/tc-tic30.h (WORKING_DOT_WORD): Define. * config/tc-w65.h (WORKING_DOT_WORD): Define. * config/tc-z8k.h (WORKING_DOT_WORD): Define. * config/tc-a29k.c: Don't define md_short_jump_size, md_long_jump_size, md_create_short_jump or md_create_long_jump. * config/tc-alpha.c: Likewise. * config/tc-alpha.h: Likewise. * config/tc-arm.c: Likewise. * config/tc-h8300.c: Likewise. * config/tc-h8500.c: Likewise. * config/tc-hppa.c: Likewise. * config/tc-i860.c: Likewise. * config/tc-i960.c: Likewise. * config/tc-ppc.c: Likewise. * config/tc-sh.c: Likewise. * config/tc-sparc.h: Likewise. * config/tc-tic30.c: Likewise. * config/tc-w65.c: Likewise. * config/tc-z8k.c: Likewise.
-rw-r--r--gas/ChangeLog30
-rw-r--r--gas/config/tc-a29k.c33
-rw-r--r--gas/config/tc-a29k.h9
-rw-r--r--gas/config/tc-alpha.c58
-rw-r--r--gas/config/tc-h8500.c32
-rw-r--r--gas/config/tc-h8500.h4
-rw-r--r--gas/config/tc-w65.c32
-rw-r--r--gas/config/tc-w65.h4
8 files changed, 91 insertions, 111 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index b722108..87f21ed 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,33 @@
+Fri May 29 18:13:12 1998 Ian Lance Taylor <ian@cygnus.com>
+
+ * config/tc-a29k.h (WORKING_DOT_WORD): Define.
+ * config/tc-alpha.h (WORKING_DOT_WORD): Define.
+ * config/tc-arm.h (WORKING_DOT_WORD): Define.
+ * config/tc-h8300.h (WORKING_DOT_WORD): Define.
+ * config/tc-h8500.h (WORKING_DOT_WORD): Define.
+ * config/tc-hppa.h (WORKING_DOT_WORD): Define.
+ * config/tc-i860.h (WORKING_DOT_WORD): Define.
+ * config/tc-i960.h (WORKING_DOT_WORD): Define.
+ * config/tc-tic30.h (WORKING_DOT_WORD): Define.
+ * config/tc-w65.h (WORKING_DOT_WORD): Define.
+ * config/tc-z8k.h (WORKING_DOT_WORD): Define.
+ * config/tc-a29k.c: Don't define md_short_jump_size,
+ md_long_jump_size, md_create_short_jump or md_create_long_jump.
+ * config/tc-alpha.c: Likewise.
+ * config/tc-alpha.h: Likewise.
+ * config/tc-arm.c: Likewise.
+ * config/tc-h8300.c: Likewise.
+ * config/tc-h8500.c: Likewise.
+ * config/tc-hppa.c: Likewise.
+ * config/tc-i860.c: Likewise.
+ * config/tc-i960.c: Likewise.
+ * config/tc-ppc.c: Likewise.
+ * config/tc-sh.c: Likewise.
+ * config/tc-sparc.h: Likewise.
+ * config/tc-tic30.c: Likewise.
+ * config/tc-w65.c: Likewise.
+ * config/tc-z8k.c: Likewise.
+
Fri May 29 16:03:26 1998 Pat Rankin <rankin@eql.caltech.edu>
* config/tc-vax.c (_): Delete this macro used for placeholder
diff --git a/gas/config/tc-a29k.c b/gas/config/tc-a29k.c
index 8debcf0..600fec5 100644
--- a/gas/config/tc-a29k.c
+++ b/gas/config/tc-a29k.c
@@ -1,5 +1,6 @@
/* tc-a29k.c -- Assemble for the AMD 29000.
- Copyright (C) 1989, 1990, 1991, 1992, 1993, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1989, 90, 91, 92, 93, 94, 95, 1998
+ Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -14,8 +15,9 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with GAS; see the file COPYING. If not, write to
- the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ along with GAS; see the file COPYING. If not, write to the Free
+ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA. */
/* John Gilmore has reorganized this module somewhat, to make it easier
to convert it to new machines' assemblers as desired. There was too
@@ -77,8 +79,6 @@ md_pseudo_table[] =
{NULL, 0, 0},
};
-int md_short_jump_size = 4;
-int md_long_jump_size = 4;
#if defined(BFD_HEADERS)
#ifdef RELSZ
const int md_reloc_size = RELSZ; /* Coff headers */
@@ -924,17 +924,6 @@ tc_coff_fix2rtype (fixP)
/* should never be called for 29k */
void
-md_create_short_jump (ptr, from_addr, to_addr, frag, to_symbol)
- char *ptr;
- addressT from_addr, to_addr;
- fragS *frag;
- symbolS *to_symbol;
-{
- as_fatal (_("a29k_create_short_jmp\n"));
-}
-
-/* should never be called for 29k */
-void
md_convert_frag (headers, seg, fragP)
object_headers *headers;
segT seg;
@@ -943,18 +932,6 @@ md_convert_frag (headers, seg, fragP)
as_fatal (_("a29k_convert_frag\n"));
}
-/* should never be called for 29k */
-void
-md_create_long_jump (ptr, from_addr, to_addr, frag, to_symbol)
- char *ptr;
- addressT from_addr;
- addressT to_addr;
- fragS *frag;
- symbolS *to_symbol;
-{
- as_fatal (_("a29k_create_long_jump\n"));
-}
-
/* should never be called for a29k */
int
md_estimate_size_before_relax (fragP, segtype)
diff --git a/gas/config/tc-a29k.h b/gas/config/tc-a29k.h
index a63864f..b60f605 100644
--- a/gas/config/tc-a29k.h
+++ b/gas/config/tc-a29k.h
@@ -1,5 +1,5 @@
/* tc-a29k.h -- Assemble for the AMD 29000.
- Copyright (C) 1989, 1990, 1991 Free Software Foundation, Inc.
+ Copyright (C) 1989, 90, 91, 92, 93, 95, 1998 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -14,13 +14,16 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with GAS; see the file COPYING. If not, write to
-the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+along with GAS; see the file COPYING. If not, write to the Free
+Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA. */
#define TC_A29K
#define TARGET_BYTES_BIG_ENDIAN 1
+#define WORKING_DOT_WORD
+
#define LEX_DOLLAR 1
#define tc_unrecognized_line(c) a29k_unrecognized_line (c)
diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c
index 9533cba..89b4f1a 100644
--- a/gas/config/tc-alpha.c
+++ b/gas/config/tc-alpha.c
@@ -1,5 +1,5 @@
/* tc-alpha.c - Processor-specific code for the DEC Alpha AXP CPU.
- Copyright (C) 1989, 93, 94, 95, 96, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1989, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
Contributed by Carnegie Mellon University, 1993.
Written by Alessandro Forin, based on earlier gas-1.38 target CPU files.
Modified by Ken Raeburn for gas-2.x and ECOFF support.
@@ -203,8 +203,6 @@ static void s_alpha_text PARAMS ((int));
static void s_alpha_data PARAMS ((int));
#ifndef OBJ_ELF
static void s_alpha_comm PARAMS ((int));
-#endif
-#if defined (OBJ_ECOFF) || defined (OBJ_EVAX)
static void s_alpha_rdata PARAMS ((int));
#endif
#ifdef OBJ_ECOFF
@@ -212,6 +210,7 @@ static void s_alpha_sdata PARAMS ((int));
#endif
#ifdef OBJ_ELF
static void s_alpha_section PARAMS ((int));
+static void s_alpha_prologue PARAMS ((int));
#endif
#ifdef OBJ_EVAX
static void s_alpha_section PARAMS ((int));
@@ -235,11 +234,6 @@ static void alpha_align PARAMS ((int, char *, symbolS *, int));
/* Generic assembler global variables which must be defined by all
targets. */
-/* These are exported to relaxing code, even though we don't do any
- relaxing on this processor currently. */
-int md_short_jump_size = 4;
-int md_long_jump_size = 4;
-
/* Characters which always start a comment. */
const char comment_chars[] = "#";
@@ -3486,6 +3480,36 @@ s_alpha_section (ignore)
alpha_current_align = 0;
}
+static void
+s_alpha_prologue (ignore)
+ int ignore;
+{
+ symbolS *sym;
+ int arg;
+
+ arg = get_absolute_expression ();
+ demand_empty_rest_of_line ();
+
+ sym = ecoff_get_cur_proc_sym ();
+ know (sym != NULL);
+
+ switch (arg)
+ {
+ case 0: /* No PV required. */
+ S_SET_OTHER (sym, STO_ALPHA_NOPV);
+ break;
+ case 1: /* Std GP load. */
+ S_SET_OTHER (sym, STO_ALPHA_STD_GPLOAD);
+ break;
+ case 2: /* Non-std use of PV. */
+ break;
+
+ default:
+ as_bad (_("Invalid argument %d to .prologue."), arg);
+ break;
+ }
+}
+
#endif
#ifdef OBJ_EVAX
@@ -3516,18 +3540,6 @@ s_alpha_section (secid)
}
-/* .prologue */
-
-static void
-s_alpha_prologue (ignore)
- int ignore;
-{
- demand_empty_rest_of_line ();
-
- return;
-}
-
-
/* Parse .ent directives. */
static void
@@ -4346,6 +4358,11 @@ const pseudo_typeS md_pseudo_table[] =
{ "ctors", s_alpha_section, 4},
{ "dtors", s_alpha_section, 5},
#endif
+#ifdef OBJ_ELF
+ {"prologue", s_alpha_prologue, 0},
+#else
+ {"prologue", s_ignore, 0},
+#endif
{"gprel32", s_alpha_gprel32, 0},
{"t_floating", s_alpha_float_cons, 'd'},
{"s_floating", s_alpha_float_cons, 'f'},
@@ -4360,7 +4377,6 @@ const pseudo_typeS md_pseudo_table[] =
{"livereg", s_ignore, 0},
{"base", s_alpha_base, 0}, /*??*/
{"option", s_ignore, 0},
- {"prologue", s_ignore, 0},
{"aent", s_ignore, 0},
{"ugen", s_ignore, 0},
{"eflag", s_ignore, 0},
diff --git a/gas/config/tc-h8500.c b/gas/config/tc-h8500.c
index 68e7757..9dec3e2 100644
--- a/gas/config/tc-h8500.c
+++ b/gas/config/tc-h8500.c
@@ -1,5 +1,5 @@
/* tc-h8500.c -- Assemble code for the Hitachi H8/500
- Copyright (C) 1993, 1998 Free Software Foundation.
+ Copyright (C) 1993, 94, 95, 1998 Free Software Foundation.
This file is part of GAS, the GNU Assembler.
@@ -14,8 +14,9 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with GAS; see the file COPYING. If not, write to
- the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ along with GAS; see the file COPYING. If not, write to the Free
+ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA. */
/*
Written By Steve Chamberlain
@@ -1253,8 +1254,6 @@ md_show_usage (stream)
{
}
-int md_short_jump_size;
-
void
tc_aout_fix_to_chars ()
{
@@ -1262,27 +1261,6 @@ tc_aout_fix_to_chars ()
abort ();
}
-void
-md_create_short_jump (ptr, from_addr, to_addr, frag, to_symbol)
- char *ptr;
- addressT from_addr;
- addressT to_addr;
- fragS *frag;
- symbolS *to_symbol;
-{
- as_fatal (_("failed sanity check."));
-}
-
-void
-md_create_long_jump (ptr, from_addr, to_addr, frag, to_symbol)
- char *ptr;
- addressT from_addr, to_addr;
- fragS *frag;
- symbolS *to_symbol;
-{
- as_fatal (_("failed sanity check."));
-}
-
static
void
wordify_scb (buffer, disp_size, inst_size)
@@ -1480,8 +1458,6 @@ md_apply_fix (fixP, val)
}
}
-int md_long_jump_size;
-
/*
called just before address relaxation, return the length
by which a fragment must grow to reach it's destination
diff --git a/gas/config/tc-h8500.h b/gas/config/tc-h8500.h
index 95a393c..d5c2ffe 100644
--- a/gas/config/tc-h8500.h
+++ b/gas/config/tc-h8500.h
@@ -1,5 +1,5 @@
/* This file is tc-h8500.h
- Copyright (C) 1993, 95, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1993, 95, 97, 1998 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -23,6 +23,8 @@
#define TARGET_BYTES_BIG_ENDIAN 1
+#define WORKING_DOT_WORD
+
/* This macro translates between an internal fix and an coff reloc type */
#define TC_COFF_FIX2RTYPE(fixP) tc_coff_fix2rtype(fixP)
diff --git a/gas/config/tc-w65.c b/gas/config/tc-w65.c
index f291d89..72201e7 100644
--- a/gas/config/tc-w65.c
+++ b/gas/config/tc-w65.c
@@ -1,5 +1,4 @@
/* tc-w65.c -- Assemble code for the W65816
-
Copyright (C) 1995, 1998 Free Software Foundation.
This file is part of GAS, the GNU Assembler.
@@ -15,8 +14,9 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with GAS; see the file COPYING. If not, write to
- the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ along with GAS; see the file COPYING. If not, write to the Free
+ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA. */
/*
Written By Steve Chamberlain
@@ -877,8 +877,6 @@ md_parse_option (c,a)
return 1;
}
-int md_short_jump_size;
-
void
tc_Nout_fix_to_chars ()
{
@@ -886,28 +884,6 @@ tc_Nout_fix_to_chars ()
abort ();
}
-void
-md_create_short_jump (ptr, from_Nddr, to_Nddr, frag, to_symbol)
- char *ptr;
- addressT from_Nddr;
- addressT to_Nddr;
- fragS *frag;
- symbolS *to_symbol;
-{
- as_fatal (_("failed sanity check."));
-}
-
-void
-md_create_long_jump (ptr, from_Nddr, to_Nddr, frag, to_symbol)
- char *ptr;
- addressT from_Nddr, to_Nddr;
- fragS *frag;
- symbolS *to_symbol;
-{
- as_fatal (_("failed sanity check."));
-}
-
-
/*
called after relaxing, change the frags so they know how big they are
*/
@@ -1084,8 +1060,6 @@ md_apply_fix (fixP, val)
}
}
-int md_long_jump_size;
-
/* Put number into target byte order */
void
diff --git a/gas/config/tc-w65.h b/gas/config/tc-w65.h
index 6e25713..6321376 100644
--- a/gas/config/tc-w65.h
+++ b/gas/config/tc-w65.h
@@ -1,5 +1,5 @@
/* This file is tc-w65.h
- Copyright (C) 1995, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -23,6 +23,8 @@
#define TARGET_BYTES_BIG_ENDIAN 0
+#define WORKING_DOT_WORD
+
/* This macro translates between an internal fix and an coff reloc type */
#define TC_COFF_FIX2RTYPE(fixP) tc_coff_fix2rtype(fixP)