Patchwork [Darwin] Remove two unused headers.

login
register
mail settings
Submitter IainS
Date Dec. 5, 2010, noon
Message ID <04588661-E866-470A-BF72-57461BB3DD13@sandoe-acoustics.co.uk>
Download mbox | patch
Permalink /patch/74294/
State New
Headers show

Comments

IainS - Dec. 5, 2010, noon
apropos http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00389.html

The c-* headers appear to be unused..

bootstrapped on i686-darwin9.
OK ?
Iain

gcc:

	* config/darwin.c: Remove c-tree.h and c-lang.h
	* config/t-darwin: Remove dependencies on c-tree.h and c-lang.h.
Index: gcc/config/t-darwin
===================================================================
--- gcc/config/t-darwin	(revision 167470)
+++ gcc/config/t-darwin	(working copy)
@@ -21,7 +21,7 @@ darwin.o: $(srcdir)/config/darwin.c $(CONFIG_H) $(
   $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h $(REAL_H) insn-config.h         \
   conditions.h insn-flags.h output.h insn-attr.h flags.h $(TREE_H) expr.h   \
   reload.h function.h $(GGC_H) langhooks.h $(TARGET_H) $(TM_P_H) gt-darwin.h \
-  c-tree.h c-lang.h config/darwin-sections.def
+  config/darwin-sections.def
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
 		$(srcdir)/config/darwin.c
 
Index: gcc/config/darwin.c
===================================================================
--- gcc/config/darwin.c	(revision 167470)
+++ gcc/config/darwin.c	(working copy)
@@ -41,8 +41,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "langhooks.h"
 #include "target.h"
 #include "tm_p.h"
-#include "c-tree.h"
-#include "c-lang.h"
 #include "diagnostic-core.h"
 #include "toplev.h"
 #include "hashtab.h"
Mike Stump - Dec. 5, 2010, 8:57 p.m.
On Dec 5, 2010, at 4:00 AM, IainS wrote:
> apropos http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00389.html
> 
> The c-* headers appear to be unused..

> OK ?

Ok.
IainS - Dec. 10, 2010, 9:16 a.m.
On 5 Dec 2010, at 20:57, Mike Stump wrote:

> On Dec 5, 2010, at 4:00 AM, IainS wrote:
>> apropos http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00389.html
>>
>> The c-* headers appear to be unused..
>
>> OK ?
>
> Ok.
r167679
thanks, Iain

Patch

Index: gcc/config/t-darwin
===================================================================
--- gcc/config/t-darwin	(revision 167470)
+++ gcc/config/t-darwin	(working copy)
@@ -21,7 +21,7 @@  darwin.o: $(srcdir)/config/darwin.c $(CONFIG_H) $(
    $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h $(REAL_H) insn- 
config.h         \
    conditions.h insn-flags.h output.h insn-attr.h flags.h $(TREE_H)  
expr.h   \
    reload.h function.h $(GGC_H) langhooks.h $(TARGET_H) $(TM_P_H) gt- 
darwin.h \
-  c-tree.h c-lang.h config/darwin-sections.def
+  config/darwin-sections.def
  	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
  		$(srcdir)/config/darwin.c

Index: gcc/config/darwin.c
===================================================================
--- gcc/config/darwin.c	(revision 167470)
+++ gcc/config/darwin.c	(working copy)
@@ -41,8 +41,6 @@  along with GCC; see the file COPYING3.  If not see
  #include "langhooks.h"
  #include "target.h"
  #include "tm_p.h"
-#include "c-tree.h"
-#include "c-lang.h"
  #include "diagnostic-core.h"
  #include "toplev.h"
  #include "hashtab.h"