diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-02-09 18:11:20 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-02-09 18:11:20 +0000 |
commit | ddb393cf893763cfc3bfe7d031c9f8508f5344dc (patch) | |
tree | d171a01234f39bb6ae2574b5905df7c91fe25fb8 /gas | |
parent | 945f125b45d38579e3a8e60107c74d54ec72c317 (diff) | |
download | fsf-binutils-gdb-ddb393cf893763cfc3bfe7d031c9f8508f5344dc.zip fsf-binutils-gdb-ddb393cf893763cfc3bfe7d031c9f8508f5344dc.tar.gz fsf-binutils-gdb-ddb393cf893763cfc3bfe7d031c9f8508f5344dc.tar.bz2 |
* app.c (do_scrub_next_char): If NO_STRING_ESCAPES is defined,
don't treat backslash specially inside strings.
* read.c (next_char_of_string): Likewise.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/read.c | 14 |
2 files changed, 17 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index cb885a6..ee0d785 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +Wed Feb 9 13:08:32 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + + * app.c (do_scrub_next_char): If NO_STRING_ESCAPES is defined, + don't treat backslash specially inside strings. + * read.c (next_char_of_string): Likewise. + Wed Feb 9 09:42:45 1994 Stan Shebs (shebs@andros.cygnus.com) * config/obj-coffbfd.c (obj_coff_init_stab_section): Use memset @@ -1,5 +1,6 @@ /* read.c - read a source file - - Copyright (C) 1986, 1987, 1990, 1991, 1993 Free Software Foundation, Inc. + Copyright (C) 1986, 1987, 1990, 1991, 1993, 1994 + Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -70,6 +71,11 @@ die horribly; #define LEX_AT 0 #endif +#ifndef LEX_BR +/* The RS/6000 assembler uses {,},[,] as parts of symbol names. */ +#define LEX_BR 0 +#endif + /* used by is_... macros. our ctype[] */ const char lex_type[256] = { @@ -78,9 +84,9 @@ const char lex_type[256] = 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, /* _!"#$%&'()*+,-./ */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, /* 0123456789:;<=>? */ LEX_AT, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, /* @ABCDEFGHIJKLMNO */ - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 3, /* PQRSTUVWXYZ[\]^_ */ + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, LEX_BR, 0, LEX_BR, 0, 3, /* PQRSTUVWXYZ[\]^_ */ 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, /* `abcdefghijklmno */ - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, /* pqrstuvwxyz{|}~. */ + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, LEX_BR, 0, LEX_BR, 0, 0, /* pqrstuvwxyz{|}~. */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -2272,6 +2278,7 @@ next_char_of_string () c = NOT_A_CHAR; break; +#ifndef NO_STRING_ESCAPES case '\\': switch (c = *input_line_pointer++) { @@ -2366,6 +2373,7 @@ next_char_of_string () break; } /* switch on escaped char */ break; +#endif /* ! defined (NO_STRING_ESCAPES) */ default: break; |