This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Remove some unused functions


Andrew Tridgell's "findstatic" script has revealed a number of
functions and variables in GCC that should be static.  This has also
found some unused functions (detected by the compiler once made
static).

I'll post a series of patches today to that effect.  Here is the
first.  Tested with a bootstrap on i686-pc-linux-gnu.  Okay for
mainline?

Ben


2004-11-02  Ben Elliston  <bje@au.ibm.com>

	* cppdefault.h (cpp_SYSROOT): Remove.
	* cppdefault.c (cpp_SYSROT): Likewise.

Index: cppdefault.h
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/gcc/cppdefault.h,v
retrieving revision 1.8
diff -u -p -r1.8 cppdefault.h
--- cppdefault.h	1 Mar 2003 14:31:12 -0000	1.8
+++ cppdefault.h	2 Nov 2004 00:14:41 -0000
@@ -49,6 +49,4 @@ extern const struct default_include cpp_
 extern const char cpp_GCC_INCLUDE_DIR[];
 extern const size_t cpp_GCC_INCLUDE_DIR_len;
 
-extern const char *cpp_SYSROOT;
-
 #endif /* ! GCC_CPPDEFAULT_H */
Index: cppdefault.c
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/gcc/cppdefault.c,v
retrieving revision 1.7
diff -u -p -r1.7 cppdefault.c
--- cppdefault.c	1 Mar 2003 14:31:12 -0000	1.7
+++ cppdefault.c	2 Nov 2004 00:14:41 -0000
@@ -96,9 +96,3 @@ const size_t cpp_GCC_INCLUDE_DIR_len = s
 const char cpp_GCC_INCLUDE_DIR[] = "";
 const size_t cpp_GCC_INCLUDE_DIR_len = 0;
 #endif
-
-#ifdef TARGET_SYSTEM_ROOT
-const char *cpp_SYSROOT = TARGET_SYSTEM_ROOT;
-#else
-const char *cpp_SYSROOT = "";
-#endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]