aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1994-01-28 00:03:38 +0000
committerKen Raeburn <raeburn@cygnus>1994-01-28 00:03:38 +0000
commiteec0de3f43237b21c220b253740d8eec012f6217 (patch)
treec6207d5d3b92fab3ce3b16b74dfbb788c2047733 /gas/symbols.c
parent0e4ad984b1d48b4fb12c3438abc6dec50b12786c (diff)
downloadgdb-eec0de3f43237b21c220b253740d8eec012f6217.zip
gdb-eec0de3f43237b21c220b253740d8eec012f6217.tar.gz
gdb-eec0de3f43237b21c220b253740d8eec012f6217.tar.bz2
* 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.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c44
1 files changed, 20 insertions, 24 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index b63e6eb..c177902 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -38,32 +38,10 @@ symbolS *symbol_rootP;
symbolS *symbol_lastP;
symbolS abs_symbol;
-symbolS *dot_text_symbol;
-symbolS *dot_data_symbol;
-symbolS *dot_bss_symbol;
-
struct obstack notes;
static void fb_label_init PARAMS ((void));
-void
-symbol_begin ()
-{
- symbol_lastP = NULL;
- symbol_rootP = NULL; /* In case we have 0 symbols (!!) */
- sy_hash = hash_new ();
- memset ((char *) (&abs_symbol), '\0', sizeof (abs_symbol));
-#ifdef BFD_ASSEMBLER
- abs_symbol.bsym = bfd_abs_section.symbol;
-#else
- /* Can't initialise a union. Sigh. */
- S_SET_SEGMENT (&abs_symbol, absolute_section);
-#endif
-#ifdef LOCAL_LABELS_FB
- fb_label_init ();
-#endif /* LOCAL_LABELS_FB */
-}
-
/*
* symbol_new()
*
@@ -896,8 +874,8 @@ dollar_label_name (n, augend)
static long fb_low_counter[FB_LABEL_SPECIAL];
static long *fb_labels;
static long *fb_label_instances;
-static long fb_label_count = 0;
-static long fb_label_max = 0;
+static long fb_label_count;
+static long fb_label_max;
/* this must be more than FB_LABEL_SPECIAL */
#define FB_LABEL_BUMP_BY (FB_LABEL_SPECIAL + 6)
@@ -1243,4 +1221,22 @@ S_SET_NAME (s, name)
}
#endif /* BFD_ASSEMBLER */
+void
+symbol_begin ()
+{
+ symbol_lastP = NULL;
+ symbol_rootP = NULL; /* In case we have 0 symbols (!!) */
+ sy_hash = hash_new ();
+ memset ((char *) (&abs_symbol), '\0', sizeof (abs_symbol));
+#ifdef BFD_ASSEMBLER
+ abs_symbol.bsym = bfd_abs_section.symbol;
+#else
+ /* Can't initialise a union. Sigh. */
+ S_SET_SEGMENT (&abs_symbol, absolute_section);
+#endif
+#ifdef LOCAL_LABELS_FB
+ fb_label_init ();
+#endif /* LOCAL_LABELS_FB */
+}
+
/* end of symbols.c */