diff options
author | Nick Clifton <nickc@redhat.com> | 2000-11-02 19:32:47 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-11-02 19:32:47 +0000 |
commit | 37d8bb275baa259bc12f873cc4bf2a4f8ef81af5 (patch) | |
tree | f06648f4f4f5b9466fe60a5d0cd0f20b2ce5dbbb /gas/read.c | |
parent | d75bb8cff629c43a78bb39d87f544f686b0aae2a (diff) | |
download | gdb-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.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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)) |