aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-12-12 22:46:47 +0000
committerAlan Modra <amodra@gmail.com>2002-12-12 22:46:47 +0000
commit17fc154eac5503ae2db721f05601da56d80f7493 (patch)
treee6b2b2e00d5a9367000a08cafeb844cfb27c3010
parentbfc866a6e6fbc8d3ec3907d1e4d0f9f69c3682ff (diff)
downloadgdb-17fc154eac5503ae2db721f05601da56d80f7493.zip
gdb-17fc154eac5503ae2db721f05601da56d80f7493.tar.gz
gdb-17fc154eac5503ae2db721f05601da56d80f7493.tar.bz2
* write.c (write_object_file): Fix signed/unsigned warning.
* config/e-crisaout.c (crisaout_bfd_name): Prototype. * config/e-criself.c (criself_bfd_name): Prototype. * config/obj-aout.c (s_sect): Remove unused function. * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED. * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF. (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED. * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise. * config/obj-vms.c (setup_basic_type <spnt>): Likewise. (VMS_RSYM_Parse <Current_Routine>): Likewise. (vms_fixup_text_section <text_siz>): Likewise. (synthesize_data_segment <data_size>): Likewise. (vms_fixup_xtors_section <sect_no>): Likewise. (structure_count): Don't use implicit int type.
-rw-r--r--gas/ChangeLog14
-rw-r--r--gas/config/e-crisaout.c2
-rw-r--r--gas/config/e-criself.c2
-rw-r--r--gas/config/obj-aout.c56
-rw-r--r--gas/config/obj-bout.c2
-rw-r--r--gas/config/obj-coff.c6
-rw-r--r--gas/config/obj-ecoff.c2
-rw-r--r--gas/config/obj-vms.c14
-rw-r--r--gas/write.c2
9 files changed, 33 insertions, 67 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 921ffeb..a158cd8 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,19 @@
2002-12-13 Alan Modra <amodra@bigpond.net.au>
+ * write.c (write_object_file): Fix signed/unsigned warning.
+ * config/e-crisaout.c (crisaout_bfd_name): Prototype.
+ * config/e-criself.c (criself_bfd_name): Prototype.
+ * config/obj-aout.c (s_sect): Remove unused function.
+ * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
+ * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
+ (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
+ * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
+ * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
+ (VMS_RSYM_Parse <Current_Routine>): Likewise.
+ (vms_fixup_text_section <text_siz>): Likewise.
+ (synthesize_data_segment <data_size>): Likewise.
+ (vms_fixup_xtors_section <sect_no>): Likewise.
+ (structure_count): Don't use implicit int type.
* config/tc-a29k.c (insert_sreg): Prototype.
(define_some_regs): Prototype, make static.
(parse_operand): Likewise.
diff --git a/gas/config/e-crisaout.c b/gas/config/e-crisaout.c
index b10bb2c..4f23449 100644
--- a/gas/config/e-crisaout.c
+++ b/gas/config/e-crisaout.c
@@ -1,6 +1,8 @@
#include "as.h"
#include "emul.h"
+static const char *crisaout_bfd_name PARAMS ((void));
+
static const char *
crisaout_bfd_name ()
{
diff --git a/gas/config/e-criself.c b/gas/config/e-criself.c
index e1826a1..e3e9ac1 100644
--- a/gas/config/e-criself.c
+++ b/gas/config/e-criself.c
@@ -1,6 +1,8 @@
#include "as.h"
#include "emul.h"
+static const char *crisaout_bfd_name PARAMS ((void));
+
static const char *
criself_bfd_name ()
{
diff --git a/gas/config/obj-aout.c b/gas/config/obj-aout.c
index c89d3ac..3fe0de8 100644
--- a/gas/config/obj-aout.c
+++ b/gas/config/obj-aout.c
@@ -572,62 +572,6 @@ obj_pre_write_hook (headers)
tc_aout_pre_write_hook (headers);
}
-void
-s_sect ()
-{
- /* Strip out the section name */
- char *section_name;
- char *section_name_end;
- char c;
-
- unsigned int len;
- unsigned int exp;
- char *save;
-
- section_name = input_line_pointer;
- c = get_symbol_end ();
- section_name_end = input_line_pointer;
-
- len = section_name_end - section_name;
- input_line_pointer++;
- save = input_line_pointer;
-
- SKIP_WHITESPACE ();
- if (c == ',')
- {
- exp = get_absolute_expression ();
- }
- else if (*input_line_pointer == ',')
- {
- input_line_pointer++;
- exp = get_absolute_expression ();
- }
- else
- {
- input_line_pointer = save;
- exp = 0;
- }
- if (exp >= 1000)
- {
- as_bad (_("subsegment index too high"));
- }
-
- if (strcmp (section_name, ".text") == 0)
- {
- subseg_set (SEG_TEXT, (subsegT) exp);
- }
-
- if (strcmp (section_name, ".data") == 0)
- {
- if (flag_readonly_data_in_text)
- subseg_set (SEG_TEXT, (subsegT) exp + 1000);
- else
- subseg_set (SEG_DATA, (subsegT) exp);
- }
-
- *section_name_end = c;
-}
-
#endif /* ! BFD_ASSEMBLER */
#ifdef BFD_ASSEMBLER
diff --git a/gas/config/obj-bout.c b/gas/config/obj-bout.c
index 05c8e00..76fce6d 100644
--- a/gas/config/obj-bout.c
+++ b/gas/config/obj-bout.c
@@ -228,7 +228,7 @@ obj_symbol_new_hook (symbolP)
static void
obj_bout_line (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
/* Assume delimiter is part of expression. */
/* BSD4.2 as fails with delightful bug, so we are not being
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c
index a143265..5ab0ec6 100644
--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -1147,7 +1147,9 @@ coff_obj_read_begin_hook ()
}
symbolS *coff_last_function;
+#ifndef OBJ_XCOFF
static symbolS *coff_last_bf;
+#endif
void
coff_frob_symbol (symp, punt)
@@ -4100,8 +4102,8 @@ obj_coff_lcomm (ignore)
static void
fixup_mdeps (frags, h, this_segment)
- fragS * frags;
- object_headers * h;
+ fragS *frags;
+ object_headers *h ATTRIBUTE_UNUSED;
segT this_segment;
{
subseg_change (this_segment, 0);
diff --git a/gas/config/obj-ecoff.c b/gas/config/obj-ecoff.c
index 32d4425..69f8d9a 100644
--- a/gas/config/obj-ecoff.c
+++ b/gas/config/obj-ecoff.c
@@ -207,7 +207,7 @@ ecoff_frob_file ()
{
const struct ecoff_debug_swap * const debug_swap
= &ecoff_backend (stdoutput)->debug_swap;
- bfd_vma addr;
+ bfd_vma addr ATTRIBUTE_UNUSED;
HDRR *hdr;
char *buf;
char *set;
diff --git a/gas/config/obj-vms.c b/gas/config/obj-vms.c
index cd36a38..6ad29fd 100644
--- a/gas/config/obj-vms.c
+++ b/gas/config/obj-vms.c
@@ -193,7 +193,7 @@ static const char *symbol_name;
* whole thing each time.
*/
-static structure_count = 0;
+static int structure_count = 0;
/* This variable is used to indicate that we are making the last attempt to
parse the stabs, and that we should define as much as we can, and ignore
@@ -1862,7 +1862,7 @@ bitfield_suffix (spnt, width)
static void
setup_basic_type (spnt)
- struct VMS_DBG_Symbol *spnt;
+ struct VMS_DBG_Symbol *spnt ATTRIBUTE_UNUSED;
{
#ifdef SETUP_BASIC_TYPES
/* This would be very useful if "novel length" fields actually worked
@@ -2169,7 +2169,8 @@ VMS_STSYM_Parse (sp, Text_Psect)
static void
VMS_RSYM_Parse (sp, Current_Routine, Text_Psect)
- symbolS *sp, *Current_Routine;
+ symbolS *sp;
+ symbolS *Current_Routine ATTRIBUTE_UNUSED;
int Text_Psect;
{
symbolS *symbolP;
@@ -4494,7 +4495,7 @@ struct vms_obj_state {
static void
vms_fixup_text_section (text_siz, text_frag_root, data_frag_root)
- unsigned text_siz;
+ unsigned text_siz ATTRIBUTE_UNUSED;
struct frag *text_frag_root;
struct frag *data_frag_root;
{
@@ -4591,7 +4592,8 @@ vms_fixup_text_section (text_siz, text_frag_root, data_frag_root)
static void
synthesize_data_segment (data_siz, text_siz, data_frag_root)
- unsigned data_siz, text_siz;
+ unsigned data_siz ATTRIBUTE_UNUSED;
+ unsigned text_siz;
struct frag *data_frag_root;
{
register fragS *fragP;
@@ -4731,7 +4733,7 @@ vms_fixup_data_section (data_siz, text_siz)
static void
vms_fixup_xtors_section (symbols, sect_no)
struct VMS_Symbol *symbols;
- int sect_no;
+ int sect_no ATTRIBUTE_UNUSED;
{
register struct VMS_Symbol *vsp;
diff --git a/gas/write.c b/gas/write.c
index 14e23fb..f46bbac 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -1624,7 +1624,7 @@ write_object_file ()
#ifdef OBJ_BOUT
|| fragP->fr_next == data_frag_root
#endif
- || ((fragP->fr_next->fr_address - fragP->fr_address)
+ || ((offsetT) (fragP->fr_next->fr_address - fragP->fr_address)
== (fragP->fr_fix + fragP->fr_offset * fragP->fr_var))))
abort ();
#endif