aboutsummaryrefslogtreecommitdiff
path: root/gas/expr.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-01-05 14:17:21 +0000
committerKen Raeburn <raeburn@cygnus>1993-01-05 14:17:21 +0000
commit0bd77bc4fca28b899f65c2f25edffb39c9361f68 (patch)
tree8a914bd387451612f42af4937b9d1806e054707e /gas/expr.c
parent6c5f99985ed7d20f1907b6aebcc9077442cdc3a2 (diff)
downloadgdb-0bd77bc4fca28b899f65c2f25edffb39c9361f68.zip
gdb-0bd77bc4fca28b899f65c2f25edffb39c9361f68.tar.gz
gdb-0bd77bc4fca28b899f65c2f25edffb39c9361f68.tar.bz2
expr.c (operand): handle logical end-of-line characters line newline
Diffstat (limited to 'gas/expr.c')
-rw-r--r--gas/expr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/expr.c b/gas/expr.c
index 4290e8b..bfcb8e6 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -589,13 +589,16 @@ operand (expressionP)
}
case ',':
case '\n':
+ eol:
/* can't imagine any other kind of operand */
expressionP->X_seg = SEG_ABSENT;
input_line_pointer--;
md_operand (expressionP);
break;
- /* Fall through */
+
default:
+ if (is_end_of_line[c])
+ goto eol;
if (is_name_beginner (c)) /* here if did not begin with a digit */
{
/*