From e8face4c5909cdc9a03029677d0612a82d557199 Mon Sep 17 00:00:00 2001
From: Nathanael Nerode <neroden@gcc.gnu.org>
Date: Tue, 10 Jun 2003 21:48:32 +0000
Subject: [PATCH] * init.c, misc.c, trans.c, utils.c: Remove dead code.

From-SVN: r67735
---
 gcc/ada/ChangeLog |  4 ++++
 gcc/ada/init.c    | 10 ----------
 gcc/ada/misc.c    | 15 +--------------
 gcc/ada/trans.c   |  8 --------
 gcc/ada/utils.c   |  7 -------
 5 files changed, 5 insertions(+), 39 deletions(-)

diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 0fb482c8eb17..e55fe83ce3f1 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,7 @@
+2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
+
+	* init.c, misc.c, trans.c, utils.c: Remove dead code.
+
 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
 
 	* Makefile.in: Replace "host_canonical" with "host" for autoconf
diff --git a/gcc/ada/init.c b/gcc/ada/init.c
index 2f3ad1d80df7..a57409933a0e 100644
--- a/gcc/ada/init.c
+++ b/gcc/ada/init.c
@@ -1623,16 +1623,6 @@ __gnat_initialize ()
 
   __gnat_init_float ();
 
-#ifdef __mips_vxworks
-#if 0
-  /* For now remove this handler, since it is causing interferences with gdb */
-
-  /* Connect the overflow trap directly to the __gnat_int_handler routine
-   as it is not converted to a signal by VxWorks. */
-
-  intConnect (INUM_TO_IVEC (IV_TRAP_VEC), &__gnat_int_handler, IV_TRAP_VEC);
-#endif
-#endif
 }
 
 /***************************************/
diff --git a/gcc/ada/misc.c b/gcc/ada/misc.c
index 6937f8bbac2d..17cc27cee1b7 100644
--- a/gcc/ada/misc.c
+++ b/gcc/ada/misc.c
@@ -586,21 +586,8 @@ static void
 gnat_adjust_rli (rli)
      record_layout_info rli ATTRIBUTE_UNUSED;
 {
-#if 0
-  /* This code seems to have no actual effect; record_align should already
+  /* This function has no actual effect; record_align should already
      reflect the largest alignment desired by a field.  jason 2003-04-01  */
-  unsigned int record_align = rli->unpadded_align;
-  tree field;
-
-  /* If any fields have variable size, we need to force the record to be at
-     least as aligned as the alignment of that type.  */
-  for (field = TYPE_FIELDS (rli->t); field; field = TREE_CHAIN (field))
-    if (TREE_CODE (DECL_SIZE_UNIT (field)) != INTEGER_CST)
-      record_align = MAX (record_align, DECL_ALIGN (field));
-
-  if (TYPE_PACKED (rli->t))
-    rli->record_align = record_align;
-#endif
 }
 
 /* Make a TRANSFORM_EXPR to later expand GNAT_NODE into code.  */
diff --git a/gcc/ada/trans.c b/gcc/ada/trans.c
index d14d2372360b..f3881d28c348 100644
--- a/gcc/ada/trans.c
+++ b/gcc/ada/trans.c
@@ -532,14 +532,6 @@ tree_transform (gnat_node)
 	  gnu_result = UI_To_gnu (Corresponding_Integer_Value (gnat_node),
 				  gnu_result_type);
 	  if (TREE_CONSTANT_OVERFLOW (gnu_result)
-#if 0
-	      || (TREE_CODE (TYPE_MIN_VALUE (gnu_result_type)) == INTEGER_CST
-		  && tree_int_cst_lt (gnu_result,
-				      TYPE_MIN_VALUE (gnu_result_type)))
-	      || (TREE_CODE (TYPE_MAX_VALUE (gnu_result_type)) == INTEGER_CST
-		  && tree_int_cst_lt (TYPE_MAX_VALUE (gnu_result_type),
-				      gnu_result))
-#endif
 	      )
 	    gigi_abort (305);
 	}
diff --git a/gcc/ada/utils.c b/gcc/ada/utils.c
index 8322d35e6cba..a88c9a3219b9 100644
--- a/gcc/ada/utils.c
+++ b/gcc/ada/utils.c
@@ -1814,13 +1814,6 @@ end_subprog_body ()
   if (function_nesting_depth > 1)
     ggc_pop_context ();
 
-#if 0
-  /* If we're sure this function is defined in this file then mark it
-     as such */
-  if (TREE_ASM_WRITTEN (current_function_decl))
-    mark_fn_defined_in_this_file (current_function_decl);
-#endif
-
   /* Throw away any VAR_DECLs we made for OUT parameters; they must
      not be seen when we call this function and will be in
      unallocated memory anyway.  */
-- 
GitLab