From 0bd77bc4fca28b899f65c2f25edffb39c9361f68 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 5 Jan 1993 14:17:21 +0000 Subject: [PATCH] expr.c (operand): handle logical end-of-line characters line newline --- gas/ChangeLog | 3 +++ gas/expr.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 0fe6fb9d52b..407b6340d16 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ Tue Jan 5 08:42:16 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) + * expr.c (operand): If character other than comma or newline is a + logical end-of-line character, use the newline case. + * configure.in (per-target): Look for with_bfd_assembler option. For now, only accept "no", until the merge is done. diff --git a/gas/expr.c b/gas/expr.c index 4290e8b7091..bfcb8e658f5 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 */ { /* -- 2.30.2