aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/read.c b/gas/read.c
index de405cc..ef2340c 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -2970,7 +2970,9 @@ s_space (mult)
bytes = repeat;
if (repeat <= 0)
{
- if (repeat < 0)
+ if (!flag_mri)
+ as_warn (_(".space repeat count is zero, ignored"));
+ else if (repeat < 0)
as_warn (_(".space repeat count is negative, ignored"));
goto getout;
}