diff options
author | Richard Henderson <rth@gcc.gnu.org> | 2000-11-20 23:39:52 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-11-20 23:39:52 -0800 |
commit | 3aac38d70cbb15e40c377d39dd612df4d16ad259 (patch) | |
tree | bf302f0b96b0df7401aed3a7535da9fbf23c5932 /gcc/cp | |
parent | 66bc5940f137cfe9a38e37c2619189604fd246b7 (diff) | |
download | gcc-3aac38d70cbb15e40c377d39dd612df4d16ad259.zip gcc-3aac38d70cbb15e40c377d39dd612df4d16ad259.tar.gz gcc-3aac38d70cbb15e40c377d39dd612df4d16ad259.tar.bz2 |
parse.y (yyparse_1): Rename the parser entry point.
* cp/parse.y (yyparse_1): Rename the parser entry point.
* c-lex.c (orig_filename): New variable.
(init_c_lex): Set it. Move call to cpp_start_read ...
(yyparse): ... here. New function.
* c-parse.in (yyparse_1): Rename the parser entry point.
* c-tree.h: Declare it.
From-SVN: r37607
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/parse.y | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index c75edb9..bc73be5 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,4 +1,8 @@ -2000-11-16 Alex Samuel <samuel@codesourcery.com> +2000-11-20 Richard Henderson <rth@redhat.com> + + * parse.y (yyparse_1): Rename the parser entry point. + +2000-11-20 Alex Samuel <samuel@codesourcery.com> * mangle.c (write_name): Use <unscoped-name> for names directly in function scope. diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index 13c678b..d55f1b9 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -214,6 +214,9 @@ cp_parse_init () ggc_add_tree_root (¤t_enum_type, 1); ggc_add_tree_root (&saved_scopes, 1); } + +/* Rename the "yyparse" function so that we can override it elsewhere. */ +#define yyparse yyparse_1 %} %start program |