aboutsummaryrefslogtreecommitdiff
path: root/gas/expr.c
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 /gas/expr.c
parent062676eb483c316380e96352914ba0d7d00342a5 (diff)
downloadfsf-binutils-gdb-14d3e47bfa5112e3684a53b9ee3b966fac0902a8.zip
fsf-binutils-gdb-14d3e47bfa5112e3684a53b9ee3b966fac0902a8.tar.gz
fsf-binutils-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
Diffstat (limited to 'gas/expr.c')
-rw-r--r--gas/expr.c3
1 files changed, 2 insertions, 1 deletions
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;