parser.c (CP_LEXER_BUFFER_SIZE): Adjust to assure near power-of-two token vector...
authorRichard Guenther <rguenther@suse.de>
Mon, 19 Jun 2006 20:08:28 +0000 (20:08 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 19 Jun 2006 20:08:28 +0000 (20:08 +0000)
2006-06-19  Richard Guenther  <rguenther@suse.de>

        * parser.c (CP_LEXER_BUFFER_SIZE): Adjust to assure near
        power-of-two token vector size.

From-SVN: r114785

gcc/cp/ChangeLog
gcc/cp/parser.c

index 2cbadcfd11f44ef58a03285fb60c4b4f75f530aa..db7eb37c74bf9741c0a738c4babf1212cee78626 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-19  Richard Guenther  <rguenther@suse.de>
+
+       * parser.c (CP_LEXER_BUFFER_SIZE): Adjust to assure near
+       power-of-two token vector size.
+
 2006-06-16  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/28016
index 964ab0ee738a1688f4a1222888f12f1cbd85b188..5820cb74a0302a98f8692833909c23d6cbd26a5d 100644 (file)
@@ -205,7 +205,7 @@ static void cp_parser_initial_pragma
   (cp_token *);
 
 /* Manifest constants.  */
-#define CP_LEXER_BUFFER_SIZE 10000
+#define CP_LEXER_BUFFER_SIZE ((256 * 1024) / sizeof (cp_token))
 #define CP_SAVED_TOKEN_STACK 5
 
 /* A token type for keywords, as opposed to ordinary identifiers.  */