diff options
author | Steve Chamberlain <sac@cygnus> | 1992-06-24 18:02:38 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1992-06-24 18:02:38 +0000 |
commit | 7c2d4011a40eb6ff029b99e4a7871c26c3b1f7b4 (patch) | |
tree | 95246ba249f39c72bf96bc75e745ef2642ae5686 /gas/read.c | |
parent | 369172bbb3eaeabb2f2a2aaa87799199dcb49e65 (diff) | |
download | gdb-7c2d4011a40eb6ff029b99e4a7871c26c3b1f7b4.zip gdb-7c2d4011a40eb6ff029b99e4a7871c26c3b1f7b4.tar.gz gdb-7c2d4011a40eb6ff029b99e4a7871c26c3b1f7b4.tar.bz2 |
Wed Jun 24 10:57:54 1992 Steve Chamberlain (sac@thepub.cygnus.com)
* app.c (process_escape): new function to handle escapes the right
way, (do_scrub_next_char): use new function
* cond.c (s_ifdef): do ifdef/ifndef right
* read.c (s_fill): make the , expressions optional like the doc
says
* config/tc-h8300.[ch]: better warnings
Diffstat (limited to 'gas/read.c')
-rw-r--r-- | gas/read.c | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -783,22 +783,22 @@ void s_app_file() { } /* s_app_file() */ void s_fill() { - long temp_repeat; - long temp_size; - register long temp_fill; + long temp_repeat = 0; + long temp_size = 1 ; + register long temp_fill = 0; char *p; - if (get_absolute_expression_and_terminator(& temp_repeat) != ',') { - input_line_pointer --; /* Backup over what was not a ','. */ - as_bad("Expect comma after rep-size in .fill:"); - ignore_rest_of_line(); - return; - } - if (get_absolute_expression_and_terminator(& temp_size) != ',') { - input_line_pointer --; /* Backup over what was not a ','. */ - as_bad("Expected comma after size in .fill"); - ignore_rest_of_line(); - return; + + temp_repeat = get_absolute_expression(); + if (*input_line_pointer == ',') + { + input_line_pointer++; + temp_size = get_absolute_expression(); + if (*input_line_pointer == ',') + { + input_line_pointer++; + temp_fill = get_absolute_expression(); + } } /* * This is to be compatible with BSD 4.2 AS, not for any rational reason. |