From 14d3e47bfa5112e3684a53b9ee3b966fac0902a8 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Wed, 26 Feb 1992 06:11:47 +0000 Subject: [PATCH] * 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 --- gas/ChangeLog | 4 ++++ gas/expr.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.7.4