diff options
| author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-06-19 20:08:28 +0000 |
|---|---|---|
| committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-06-19 20:08:28 +0000 |
| commit | 83adc1898f3f296376a709fe60de2c1c2c2d6900 (patch) | |
| tree | 564fabdc8ab2ad59d0c981eddadc0055c9ebecb1 | |
| parent | 9404b9c6864f73acfe2c000901b90da4c6fc51f5 (diff) | |
| download | ppe42-gcc-83adc1898f3f296376a709fe60de2c1c2c2d6900.tar.gz ppe42-gcc-83adc1898f3f296376a709fe60de2c1c2c2d6900.zip | |
2006-06-19 Richard Guenther <rguenther@suse.de>
* parser.c (CP_LEXER_BUFFER_SIZE): Adjust to assure near
power-of-two token vector size.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114785 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cp/parser.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2cbadcfd11f..db7eb37c74b 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 964ab0ee738..5820cb74a03 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. */ |

