aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-08-18 15:15:28 +0000
committerIan Lance Taylor <ian@airs.com>1995-08-18 15:15:28 +0000
commitca2329727efad7d7e8a541f2aa88c28fcb5d2526 (patch)
treef20aa75ff3acdc11a1292b6cbac37d5a09d8ad8e /gas
parent65d860fc2871e9cc16dc8c8147550c2b9114964d (diff)
downloadgdb-ca2329727efad7d7e8a541f2aa88c28fcb5d2526.zip
gdb-ca2329727efad7d7e8a541f2aa88c28fcb5d2526.tar.gz
gdb-ca2329727efad7d7e8a541f2aa88c28fcb5d2526.tar.bz2
* read.c (s_include): In MRI mode, don't expect quotes around the
file name. * listing.c (listing_title): Don't require the title to be quoted.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/read.c26
2 files changed, 25 insertions, 5 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 06c05e3..9b63a94 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,9 @@
Fri Aug 18 10:58:09 1995 Ian Lance Taylor <ian@cygnus.com>
+ * read.c (s_include): In MRI mode, don't expect quotes around the
+ file name.
+ * listing.c (listing_title): Don't require the title to be quoted.
+
* gasp.c (include_print_where_line): Always subtract 1 from
linecount before printing it.
(process_file): In MRI mode, lines beginning with '*' or '!' are
diff --git a/gas/read.c b/gas/read.c
index 4ae32ec..7a9cd3e 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -1711,17 +1711,17 @@ s_mri_sect (type)
flagword flags;
flags = SEC_NO_FLAGS;
- if (type == 'C')
+ if (*type == 'C')
flags = SEC_CODE;
- else if (type == 'D')
+ else if (*type == 'D')
flags = SEC_DATA;
- else if (type == 'R')
+ else if (*type == 'R')
flags = SEC_ROM;
if (flags != SEC_NO_FLAGS)
{
if (! bfd_set_section_flags (stdoutput, seg, flags))
as_warn ("error setting flags for \"%s\": %s",
- bfd_section_name (stdoutput, sec),
+ bfd_section_name (stdoutput, seg),
bfd_errmsg (bfd_get_error ()));
}
}
@@ -3273,7 +3273,23 @@ s_include (arg)
FILE *try;
char *path;
- filename = demand_copy_string (&i);
+ if (! flag_mri)
+ filename = demand_copy_string (&i);
+ else
+ {
+ SKIP_WHITESPACE ();
+ i = 0;
+ while (! is_end_of_line[(unsigned char) *input_line_pointer]
+ && *input_line_pointer != ' '
+ && *input_line_pointer != '\t')
+ {
+ obstack_1grow (&notes, *input_line_pointer);
+ ++input_line_pointer;
+ ++i;
+ }
+ obstack_1grow (&notes, '\0');
+ filename = obstack_finish (&notes);
+ }
demand_empty_rest_of_line ();
path = xmalloc ((unsigned long) i + include_dir_maxlen + 5 /* slop */ );
for (i = 0; i < include_dir_count; i++)