cpplex.c (parse_string2): Update comment.
authorNeil Booth <neilb@earthling.net>
Mon, 15 May 2000 22:44:22 +0000 (22:44 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Mon, 15 May 2000 22:44:22 +0000 (22:44 +0000)
* cpplex.c (parse_string2): Update comment.
(cpp_lex_line): No special assertion treatment for '('.
* cpplib.c (DIRECTIVE_TABLE): Remove SYNTAX_ASSERT.
* cpplib.h (SYNTAX_ASSERT): Remove.

From-SVN: r33915

gcc/ChangeLog
gcc/cpplex.c
gcc/cpplib.c
gcc/cpplib.h

index 05c917f121255e99dcce3ea92e14815f3bd34091..76b39815318f82e0273eae83a65dcd02dd3f42af 100644 (file)
@@ -1,3 +1,10 @@
+2000-05-16  Neil Booth  <NeilB@earthling.net>
+
+       * cpplex.c (parse_string2): Update comment.
+       (cpp_lex_line): No special assertion treatment for '('.
+       * cpplib.c (DIRECTIVE_TABLE): Remove SYNTAX_ASSERT.
+       * cpplib.h (SYNTAX_ASSERT): Remove.
+
 Mon May 15 21:45:36 MET DST 2000  Jan Hubicka  <jh@suse.cz>
 
        * jump.c (condjump_p):  Mark as depreached.
index cf31d9199430a01d3ac154a7b399a156456cdb6b..03b3c35de4b05d2e5973303088237b59bce7c3fe 100644 (file)
@@ -2643,7 +2643,8 @@ parse_number (pfile, list, name)
    escaped newlines.
 
    Can be used for character constants (terminator = '\''), string
-   constants ('"'), angled headers ('>') and assertions (')').  */
+   constants ('"') and angled headers ('>').  Multi-line strings are
+   allowed, except for within directives.  */
 
 static void
 parse_string2 (pfile, list, name, terminator)
@@ -3185,17 +3186,6 @@ _cpp_lex_line (pfile, list)
          cur_token++;
          break;
 
-       case '(':
-         /* Is this the beginning of an assertion string?  */
-         if (list->dir_flags & SYNTAX_ASSERT)
-           {
-             c = ')';  /* Terminator.  */
-             cur_token->type = CPP_ASSERTION;
-             goto do_parse_string;
-           }
-         PUSH_TOKEN (CPP_OPEN_PAREN);
-         break;
-
        case '?':
          if (cur + 1 < buffer->rlimit && *cur == '?'
              && trigraph_map[cur[1]] && trigraph_ok (pfile, cur + 1))
@@ -3261,6 +3251,7 @@ _cpp_lex_line (pfile, list)
        case '!': PUSH_TOKEN (CPP_NOT); break;
        case ',': PUSH_TOKEN (CPP_COMMA); break;
        case ';': PUSH_TOKEN (CPP_SEMICOLON); break;
+       case '(': PUSH_TOKEN (CPP_OPEN_PAREN); break;
        case ')': PUSH_TOKEN (CPP_CLOSE_PAREN); break;
 
        case '$':
index 457cc218c28b53a8680d1d9d4bc973c902f2cd18..c4b6aa4ae7724d0ff44cb60ae8932c46c8a43f65 100644 (file)
@@ -114,8 +114,8 @@ D(warning,  T_WARNING,      EXTENSION)                  /*    22 GNU */ \
 D(include_next,        T_INCLUDE_NEXT, EXTENSION | SYNTAX_INCLUDE) /*    19 GNU */ \
 D(ident,       T_IDENT,        EXTENSION)                  /*    11 SVR4 */ \
 D(import,      T_IMPORT,       EXTENSION | SYNTAX_INCLUDE) /*     0 ObjC */ \
-D(assert,      T_ASSERT,       EXTENSION | SYNTAX_ASSERT)  /*     0 SVR4 */ \
-D(unassert,    T_UNASSERT,     EXTENSION | SYNTAX_ASSERT)  /*     0 SVR4 */ \
+D(assert,      T_ASSERT,       EXTENSION)                  /*     0 SVR4 */ \
+D(unassert,    T_UNASSERT,     EXTENSION)                  /*     0 SVR4 */ \
 SCCS_ENTRY
 
 /* Use the table to generate a series of prototypes, an enum for the
index 7a09252a5d698123a09bb7b6d99e72a831aba49b..a538887f7c9056525bf6fe9bf5b707d94c61f6e2 100644 (file)
@@ -191,7 +191,6 @@ struct cpp_token
 
 /* Directive flags.  */
 #define SYNTAX_INCLUDE (1 << 8)
-#define SYNTAX_ASSERT  (1 << 9)
 
 typedef int (*directive_handler) PARAMS ((cpp_reader *));