From 7fd3560a6a0a0babc4137c0cd877dbe2e34169a9 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Thu, 6 Aug 1992 19:11:19 +0000 Subject: [PATCH] * read.c (s_fill): make the .fill size clamped error a warn and fix bug where 0's were always placed. --- gas/ChangeLog | 7 +++++++ gas/read.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 71611c64c48..e1026b79de8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Thu Aug 6 12:10:39 1992 Steve Chamberlain (sac@thepub.cygnus.com) + + * read.c (s_fill): make the .fill size clamped error a warn and + fix bug where 0's were always placed. + Wed Aug 5 12:02:40 1992 Steve Chamberlain (sac@thepub.cygnus.com) * config/tc-m68k.c (md_pseudo_table): fix the .align thing @@ -21,6 +26,8 @@ Fri Jul 31 21:53:28 1992 Ken Raeburn (raeburn@cygnus.com) characteristics have been), default to 68020. Don't need extra quotes around error string. + + Fri Jul 31 12:26:34 1992 Jim Wilson (wilson@sphagnum.cygnus.com) * read.c (potable): Revert sac's incorrect change made Jul 13. diff --git a/gas/read.c b/gas/read.c index 77398dff138..dfc1625913d 100644 --- a/gas/read.c +++ b/gas/read.c @@ -805,7 +805,7 @@ void s_fill() { */ #define BSD_FILL_SIZE_CROCK_8 (8) if (temp_size > BSD_FILL_SIZE_CROCK_8) { - as_bad(".fill size clamped to %d.", BSD_FILL_SIZE_CROCK_8); + as_warn(".fill size clamped to %d.", BSD_FILL_SIZE_CROCK_8); temp_size = BSD_FILL_SIZE_CROCK_8 ; } if (temp_size < 0) { as_warn("Size negative: .fill ignored."); @@ -814,7 +814,7 @@ void s_fill() { as_warn("Repeat < 0, .fill ignored"); temp_size = 0; } - temp_fill = get_absolute_expression (); + if (temp_size && !need_pass_2) { p = frag_var(rs_fill, (int)temp_size, (int)temp_size, (relax_substateT)0, (symbolS *)0, temp_repeat, (char *)0); bzero (p, (int)temp_size); -- 2.30.2