aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-08-27 11:09:43 +0000
committerAlan Modra <amodra@gmail.com>2002-08-27 11:09:43 +0000
commit7065849339c3e156a2a3176f91664e3fa87d549e (patch)
tree55c6dbb4bd91dbafb34317194ad0abbbe9d961b6 /gas/read.c
parent88f7bcd5a785b91a33632bea6682c3d31f2df034 (diff)
downloadgdb-7065849339c3e156a2a3176f91664e3fa87d549e.zip
gdb-7065849339c3e156a2a3176f91664e3fa87d549e.tar.gz
gdb-7065849339c3e156a2a3176f91664e3fa87d549e.tar.bz2
* dwarf2dbg.c: Always include dwarf2dbg.h.
(dwarf2_directive_file): Adjust dummy version args. * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED. * expr.c (clean_up_expression <O_subtract>): Allow subtraction when symbol values differ. * read.c (do_align): Add ATTRIBUTE_UNUSED to label. (pseudo_set <O_subtract>): Remove unnecessary segment test. * config/obj-bout.c (obj_pseudo_table): Warning fix.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gas/read.c b/gas/read.c
index 934d270..70662c9 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -1,6 +1,6 @@
/* read.c - read a source file -
Copyright 1986, 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
- 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+ 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -1197,7 +1197,7 @@ do_align (n, fill, len, max)
}
#ifdef md_do_align
- just_record_alignment:
+ just_record_alignment: ATTRIBUTE_UNUSED
#endif
record_alignment (now_seg, n - OCTETS_PER_BYTE_POWER);
@@ -3232,8 +3232,6 @@ pseudo_set (symbolP)
as_bad (_("floating point number invalid"));
}
else if (exp.X_op == O_subtract
- && (S_GET_SEGMENT (exp.X_add_symbol)
- == S_GET_SEGMENT (exp.X_op_symbol))
&& SEG_NORMAL (S_GET_SEGMENT (exp.X_add_symbol))
&& (symbol_get_frag (exp.X_add_symbol)
== symbol_get_frag (exp.X_op_symbol)))