From 7065849339c3e156a2a3176f91664e3fa87d549e Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 27 Aug 2002 11:09:43 +0000 Subject: * 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 ): Allow subtraction when symbol values differ. * read.c (do_align): Add ATTRIBUTE_UNUSED to label. (pseudo_set ): Remove unnecessary segment test. * config/obj-bout.c (obj_pseudo_table): Warning fix. --- gas/expr.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gas/expr.c') diff --git a/gas/expr.c b/gas/expr.c index 13c167a..64c92ca 100644 --- a/gas/expr.c +++ b/gas/expr.c @@ -1,6 +1,6 @@ /* expr.c -operands, expressions- Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001 + 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -1375,9 +1375,7 @@ clean_up_expression (expressionP) if (expressionP->X_op_symbol == expressionP->X_add_symbol || ((symbol_get_frag (expressionP->X_op_symbol) == symbol_get_frag (expressionP->X_add_symbol)) - && SEG_NORMAL (S_GET_SEGMENT (expressionP->X_add_symbol)) - && (S_GET_VALUE (expressionP->X_op_symbol) - == S_GET_VALUE (expressionP->X_add_symbol)))) + && SEG_NORMAL (S_GET_SEGMENT (expressionP->X_add_symbol)))) { addressT diff = (S_GET_VALUE (expressionP->X_add_symbol) - S_GET_VALUE (expressionP->X_op_symbol)); -- cgit v1.1