[PATCH - ping] tree.c, remove a reference to obstack

Ian Lance Taylor iant@google.com
Wed Jun 18 14:46:00 GMT 2008


"Christophe Jaillet" <christophe.jaillet@wanadoo.fr> writes:

> a long time ago (2.5 years ago, yes, I know...), I posted a patch about an
> unused function and what looked to me as a useless #include :
>    http://gcc.gnu.org/ml/gcc-patches/2006-01/msg01483.html
>
> The explaination is still up to date, here is just an updated patch, just in
> case of interest.

This is OK.

Thanks for your patience.

Ian

> Index: gcc/tree.c
> ===================================================================
> --- gcc/tree.c	(revision 136847)
> +++ gcc/tree.c	(working copy)
> @@ -38,7 +38,6 @@ along with GCC; see the file COPYING3.  
>  #include "real.h"
>  #include "tm_p.h"
>  #include "function.h"
> -#include "obstack.h"
>  #include "toplev.h"
>  #include "ggc.h"
>  #include "hashtab.h"
> @@ -71,9 +70,6 @@ const char *const tree_code_class_string
>    "gimple_stmt"
>  };
>  
> -/* obstack.[ch] explicitly declined to prototype this.  */
> -extern int _obstack_allocated_p (struct obstack *h, void *obj);
> -
>  #ifdef GATHER_STATISTICS
>  /* Statistics-gathering stuff.  */
>  



More information about the Gcc-patches mailing list