aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2006-06-19 20:08:28 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2006-06-19 20:08:28 +0000
commit5ff5e6c8240829c5dc7eb17ea3e729c302bae0ad (patch)
tree564fabdc8ab2ad59d0c981eddadc0055c9ebecb1 /gcc
parent8112612670aa76350a0bebb09ca12c1bdcc1e8a7 (diff)
downloadgcc-5ff5e6c8240829c5dc7eb17ea3e729c302bae0ad.zip
gcc-5ff5e6c8240829c5dc7eb17ea3e729c302bae0ad.tar.gz
gcc-5ff5e6c8240829c5dc7eb17ea3e729c302bae0ad.tar.bz2
parser.c (CP_LEXER_BUFFER_SIZE): Adjust to assure near power-of-two token vector size.
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/parser.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 2cbadcf..db7eb37 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 964ab0e..5820cb7 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -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. */