aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-11-02 19:32:47 +0000
committerNick Clifton <nickc@redhat.com>2000-11-02 19:32:47 +0000
commit37d8bb275baa259bc12f873cc4bf2a4f8ef81af5 (patch)
treef06648f4f4f5b9466fe60a5d0cd0f20b2ce5dbbb /gas/read.c
parentd75bb8cff629c43a78bb39d87f544f686b0aae2a (diff)
downloadgdb-37d8bb275baa259bc12f873cc4bf2a4f8ef81af5.zip
gdb-37d8bb275baa259bc12f873cc4bf2a4f8ef81af5.tar.gz
gdb-37d8bb275baa259bc12f873cc4bf2a4f8ef81af5.tar.bz2
Preserve copy of case clobber opcodes so that .req pseudo op works
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gas/read.c b/gas/read.c
index 371a930..d776c0f 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -165,6 +165,10 @@ char is_end_of_line[256] =
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 /* */
};
+#ifdef IGNORE_OPCODE_CASE
+char original_case_string[128];
+#endif
+
/* Functions private to this file. */
static char *buffer; /* 1st char of each buffer of lines is here. */
@@ -735,10 +739,13 @@ read_a_source_file (name)
/* Expect pseudo-op or machine instruction. */
pop = NULL;
-#define IGNORE_OPCODE_CASE
#ifdef IGNORE_OPCODE_CASE
{
char *s2 = s;
+
+ strncpy (original_case_string, s2, sizeof (original_case_string));
+ original_case_string[sizeof (original_case_string) - 1] = 0;
+
while (*s2)
{
if (isupper ((unsigned char) *s2))