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]

[patch] Remove is_pending_size().


Hi,

Attached is a patch to remove is_pending_size() as it is unused.

Jakub Jelinek introduced the first use of is_pending_size() in
fold-const.c in

  http://gcc.gnu.org/ml/gcc-cvs/2001-02/msg00282.html

Roger Sayle removed it in

  http://gcc.gnu.org/ml/gcc-cvs/2003-07/msg00130.html

There may have been other uses, but the function is not used now
anyway.

Bootstrapped on i686-pc-linux-gnu.  OK to apply?

Kazu Hirata

2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>

	* stor-layout.c (is_pending_size): Remove.
	* tree.h: Remove the corresponding prototype.

Index: stor-layout.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/stor-layout.c,v
retrieving revision 1.177
diff -u -r1.177 stor-layout.c
--- stor-layout.c	18 Feb 2004 15:05:07 -0000	1.177
+++ stor-layout.c	19 Feb 2004 17:11:29 -0000
@@ -104,19 +104,6 @@
   return chain;
 }
 
-/* Return nonzero if EXPR is present on the pending sizes list.  */
-
-int
-is_pending_size (tree expr)
-{
-  tree t;
-
-  for (t = pending_sizes; t; t = TREE_CHAIN (t))
-    if (TREE_VALUE (t) == expr)
-      return 1;
-  return 0;
-}
-
 /* Add EXPR to the pending sizes list.  */
 
 void
Index: tree.h
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/tree.h,v
retrieving revision 1.468
diff -u -r1.468 tree.h
--- tree.h	17 Feb 2004 21:33:34 -0000	1.468
+++ tree.h	19 Feb 2004 17:11:29 -0000
@@ -2449,7 +2449,6 @@
 extern tree round_up (tree, int);
 extern tree round_down (tree, int);
 extern tree get_pending_sizes (void);
-extern int is_pending_size (tree);
 extern void put_pending_size (tree);
 extern void put_pending_sizes (tree);
 


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