This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Removed functions still in header files
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- To: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- Cc: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 9 May 2002 18:19:47 +0100
- Subject: Re: Removed functions still in header files
- References: <1020942917.767.12.camel@steven>
Steven Bosscher wrote:-
> While browsing tree.h I found a prototype for a function
> 'type_precision()'. According to the changelogs, this function was
> removed from tree.c back in 1998. The same seems to be true for some
> other functions (object_permanent_p, preserve_data, etc).
>
> Shouldn't these protos be removed from the header files??
Indeed. I've committed this patch as obvious. If there are others
you know of, please let us know.
Neil.
* tree.h (preserve_data, object_permanent_p, type_precision):
Remove.
Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.334
diff -u -p -r1.334 tree.h
--- tree.h 4 May 2002 20:14:59 -0000 1.334
+++ tree.h 9 May 2002 17:17:23 -0000
@@ -2824,9 +2824,6 @@ extern int really_constant_p PARAMS ((t
extern int int_fits_type_p PARAMS ((tree, tree));
extern int tree_log2 PARAMS ((tree));
extern int tree_floor_log2 PARAMS ((tree));
-extern void preserve_data PARAMS ((void));
-extern int object_permanent_p PARAMS ((tree));
-extern int type_precision PARAMS ((tree));
extern int simple_cst_equal PARAMS ((tree, tree));
extern int compare_tree_int PARAMS ((tree,
unsigned HOST_WIDE_INT));