aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-02-26 06:11:47 +0000
committerSteve Chamberlain <sac@cygnus>1992-02-26 06:11:47 +0000
commit14d3e47bfa5112e3684a53b9ee3b966fac0902a8 (patch)
tree03f0992f2a2b39c046df0f9d99ced1f44d00663c
parent062676eb483c316380e96352914ba0d7d00342a5 (diff)
downloadgdb-14d3e47bfa5112e3684a53b9ee3b966fac0902a8.zip
gdb-14d3e47bfa5112e3684a53b9ee3b966fac0902a8.tar.gz
gdb-14d3e47bfa5112e3684a53b9ee3b966fac0902a8.tar.bz2
* expr.c: If an expression is single comma, then return with
SEG_ABSENT rather than an error - since the sparc front end does really strange things with things like fbge,a
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/expr.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 7c4d4e4..7d12119 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,9 @@
Tue Feb 25 14:17:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
+ * expr.c: If an expression is single comma, then return with
+ SEG_ABSENT rather than an error - since the sparc front end does
+ really strange things with things like fbge,a
+
* as.h: include bfd.h if using many sections
* expr.c: LOCAL_LABELS_FB had been changed to lower case - so
local labels didn't work.
diff --git a/gas/expr.c b/gas/expr.c
index 96fb27d..871ada0 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -407,6 +407,7 @@ operand (expressionP)
integer_constant(2, expressionP);
break;
+ case '0':
case '1':
case '2':
case '3':
@@ -542,7 +543,7 @@ operand (expressionP)
}
-
+ case ',':
case '\n':
/* can't imagine any other kind of operand */
expressionP->X_seg = SEG_ABSENT;