]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* app.c (do_scrub_next_char): If NO_STRING_ESCAPES is defined,
authorIan Lance Taylor <ian@airs.com>
Wed, 9 Feb 1994 18:11:20 +0000 (18:11 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 9 Feb 1994 18:11:20 +0000 (18:11 +0000)
don't treat backslash specially inside strings.
* read.c (next_char_of_string): Likewise.

gas/ChangeLog
gas/read.c

index cb885a6c7cf112719ec3be02a0f87e20c252f923..ee0d7859e9ea190e81752cb58e2421f3bc386763 100644 (file)
@@ -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
index 3dcb9db2a7cfd8a21e260095fb6914151f17ddd6..68f14fb0720d1bb7c47d07dec61064fb8dc6595c 100644 (file)
@@ -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;