summaryrefslogtreecommitdiff
path: root/gcc/cp/lex.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-08 20:53:41 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-08 20:53:41 +0000
commitca58dfe18f025197cdd785cfcae594ca1da748e4 (patch)
treebb7a11127c2c3516762b371c4ac8423fd733369d /gcc/cp/lex.c
parent9871f3a34991da3b5440687e9b4b40fe644eae39 (diff)
downloadgcc-ca58dfe18f025197cdd785cfcae594ca1da748e4.tar.gz
* Make-lang.in (CXX_OBJS): Added cp-lang.o.
(cp/cp-lang.o): New rule. * cp-tree.h: Declare hooks. * tree.c: Make hooks non-static. (init_tree): Don't initialize hooks here. * lex.c: Likewise. Move definition of lang_hooks to... * cp-lang.c: ... new file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46095 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r--gcc/cp/lex.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index cb691420243..57daab4e338 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -62,10 +62,6 @@ static void handle_pragma_unit PARAMS ((cpp_reader *));
static void handle_pragma_interface PARAMS ((cpp_reader *));
static void handle_pragma_implementation PARAMS ((cpp_reader *));
static void handle_pragma_java_exceptions PARAMS ((cpp_reader *));
-static void cxx_init PARAMS ((void));
-static void cxx_finish PARAMS ((void));
-static void cxx_init_options PARAMS ((void));
-static void cxx_post_options PARAMS ((void));
#ifdef GATHER_STATISTICS
#ifdef REDUCE_LENGTH
@@ -241,21 +237,14 @@ static const char *const cplus_tree_code_name[] = {
};
#undef DEFTREECODE
-/* Each front end provides its own hooks, for toplev.c. */
-struct lang_hooks lang_hooks = {cxx_init,
- cxx_finish,
- cxx_init_options,
- cxx_decode_option,
- cxx_post_options};
-
/* Post-switch processing. */
-static void
+void
cxx_post_options ()
{
cpp_post_options (parse_in);
}
-static void
+void
cxx_init_options ()
{
/* Make identifier nodes long enough for the language-specific slots. */
@@ -275,7 +264,7 @@ cxx_init_options ()
diagnostic_prefixing_rule (global_dc) = DIAGNOSTICS_SHOW_PREFIX_ONCE;
}
-static void
+void
cxx_init ()
{
c_common_lang_init ();
@@ -284,10 +273,11 @@ cxx_init ()
init_repo (input_filename);
}
-static void
+void
cxx_finish ()
{
- if (flag_gnu_xref) GNU_xref_end (errorcount+sorrycount);
+ if (flag_gnu_xref)
+ GNU_xref_end (errorcount+sorrycount);
}
const char *