aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-05-25 01:59:43 +0000
committerAlan Modra <amodra@gmail.com>2001-05-25 01:59:43 +0000
commitce34c3732aa131c4796f9bfdd397e6a7bd5aa50b (patch)
tree26ed2e4ff7f7b25dd2c336c4772a5a040cf032ff /gas
parentac55707e4a23c79aaea24d86c515af136af8092d (diff)
downloadgdb-ce34c3732aa131c4796f9bfdd397e6a7bd5aa50b.zip
gdb-ce34c3732aa131c4796f9bfdd397e6a7bd5aa50b.tar.gz
gdb-ce34c3732aa131c4796f9bfdd397e6a7bd5aa50b.tar.bz2
Revert last patch.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/expr.c13
-rw-r--r--gas/read.c7
3 files changed, 3 insertions, 21 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 6abbd8e..6f5b600 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,9 +1,5 @@
2001-05-25 Alan Modra <amodra@one.net.au>
- * expr.c (expr): Set return value to absolute_section for
- subtractive operations on symbols within a segment.
- * read.c (pseudo_set): Set segment for complex expressions.
-
From 2.11 branch 2001-03-30 Richard Henderson <rth@redhat.com>
* config/tc-i386.c (md_convert_frag): Don't die on local symbols
that have been finalized.
diff --git a/gas/expr.c b/gas/expr.c
index 7e6ad90..f79e31c 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -1862,19 +1862,6 @@ expr (rankarg, resultP)
resultP->X_add_number += right.X_add_number;
else if (op_left == O_subtract)
resultP->X_add_number -= right.X_add_number;
- if (retval == rightseg
- && (op_left == O_subtract
- || op_left == O_eq
- || op_left == O_ne
- || op_left == O_lt
- || op_left == O_le
- || op_left == O_ge
- || op_left == O_gt))
- {
- /* For subtractive operations on symbols within a
- segment, the result will absolute. */
- retval = absolute_section;
- }
}
else
{
diff --git a/gas/read.c b/gas/read.c
index c14d2c0..209ab6a 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -3151,7 +3151,6 @@ pseudo_set (symbolP)
symbolS *symbolP;
{
expressionS exp;
- segT seg;
#if (defined (OBJ_AOUT) || defined (OBJ_BOUT)) && ! defined (BFD_ASSEMBLER)
int ext;
#endif /* OBJ_AOUT or OBJ_BOUT */
@@ -3161,7 +3160,7 @@ pseudo_set (symbolP)
ext = S_IS_EXTERNAL (symbolP);
#endif /* OBJ_AOUT or OBJ_BOUT */
- seg = expression (&exp);
+ (void) expression (&exp);
if (exp.X_op == O_illegal)
as_bad (_("illegal expression; zero assumed"));
@@ -3237,9 +3236,9 @@ pseudo_set (symbolP)
break;
default:
- /* The value is some complex expression. */
+ /* The value is some complex expression.
+ FIXME: Should we set the segment to anything? */
symbol_set_value_expression (symbolP, &exp);
- S_SET_SEGMENT (symbolP, seg);
break;
}
}