aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-08-06 19:11:19 +0000
committerSteve Chamberlain <sac@cygnus>1992-08-06 19:11:19 +0000
commit7fd3560a6a0a0babc4137c0cd877dbe2e34169a9 (patch)
tree64745e83d3c280e71e7c311bee939e595ab5d00a /gas/read.c
parent1eaf4dd64d46adbc1a783b67b6e4c76bbae9d24a (diff)
downloadgdb-7fd3560a6a0a0babc4137c0cd877dbe2e34169a9.zip
gdb-7fd3560a6a0a0babc4137c0cd877dbe2e34169a9.tar.gz
gdb-7fd3560a6a0a0babc4137c0cd877dbe2e34169a9.tar.bz2
* read.c (s_fill): make the .fill size clamped error a warn and
fix bug where 0's were always placed.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/read.c b/gas/read.c
index 77398df..dfc1625 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);