Patchwork Remove dependency of cp/cp-lang.c on cp/parser.h

login
register
mail settings
Submitter Aaron Gray
Date Aug. 29, 2012, 8:42 p.m.
Message ID <CANkmNDeRHu2vCFTh++oeFRsKyoJLcb=gJ9VLVcxozPjrSB9kiA@mail.gmail.com>
Download mbox | patch
Permalink /patch/180767/
State New
Headers show

Comments

Aaron Gray - Aug. 29, 2012, 8:42 p.m.
Patch removing the dependency of cp/cp-lang.c on cp/parser.c. This as
been tested on Linux.

[gcc/cp]
2012-08-29 Aaron Gray <aaronngray.lists@gmail.com>

        * cp/cp-lang.c: removed #include "parser.h"
        * cp/Make-lang.in: removed dependency of cp/cp-lang.c on cp/parser.h

Patch

diff --git a/gcc/cp/cp-lang.c b/gcc/cp/cp-lang.c
index da7f1e1..5ca0b0a 100644
--- a/gcc/cp/cp-lang.c
+++ b/gcc/cp/cp-lang.c
@@ -32,7 +32,6 @@  along with GCC; see the file COPYING3.  If not see
 #include "cp-objcp-common.h"
 #include "hashtab.h"
 #include "target.h"
-#include "parser.h"

 enum c_language_kind c_language = clk_cxx;
 static void cp_init_ts (void);
diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in
index 6233f06..78296ae 100644
--- a/gcc/cp/Make-lang.in
+++ b/gcc/cp/Make-lang.in
@@ -270,7 +270,7 @@  cp/lex.o: cp/lex.c $(CXX_TREE_H) $(TM_H) $(FLAGS_H) \
   c-family/c-objc.h
 cp/cp-lang.o: cp/cp-lang.c $(CXX_TREE_H) $(TM_H) debug.h langhooks.h \
   $(LANGHOOKS_DEF_H) $(C_COMMON_H) gtype-cp.h gt-cp-cp-lang.h \
-  cp/cp-objcp-common.h $(EXPR_H) $(TARGET_H) $(CXX_PARSER_H)
+  cp/cp-objcp-common.h $(EXPR_H) $(TARGET_H) tree.h c-family/c-pragma.h
 cp/decl.o: cp/decl.c $(CXX_TREE_H) $(TM_H) $(FLAGS_H) cp/decl.h \
   output.h toplev.h $(HASHTAB_H) $(RTL_H) \
   cp/operators.def $(TM_P_H) $(TREE_INLINE_H) $(DIAGNOSTIC_H) $(C_PRAGMA_H) \