remove dependency on cp/parser.h from cp/lang.c

Aaron Gray aaronngray.lists@gmail.com
Wed Aug 29 11:54:00 GMT 2012


Just got my copyright assignment through, so here's my first GCC patch,

This is a one liner removing the unneeded dependency of cp-lang.c on
cp/parser.h. This has been tested on Linux.

Aaron

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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cp-lang.c.diff
Type: application/octet-stream
Size: 366 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120829/356a2728/attachment.obj>


More information about the Gcc-patches mailing list