PATCH: Remove dwarf2.out:dwarf_type_encoding_name?

Ben Elliston bje@au1.ibm.com
Tue Mar 22 01:21:00 GMT 2005


Discovered while dabbling around in DWARF-land.  This function has been if 0'd out
since 1998.  Okay for mainline?

2005-03-22  Ben Elliston  <bje@au.ibm.com>

         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
         and definition.

Index: dwarf2out.c
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/gcc/dwarf2out.c,v
retrieving revision 1.572
diff -u -p -r1.572 dwarf2out.c
--- dwarf2out.c 19 Mar 2005 03:06:51 -0000      1.572
+++ dwarf2out.c 22 Mar 2005 00:31:26 -0000
@@ -3778,9 +3778,6 @@ static int is_tagged_type (tree);
  static const char *dwarf_tag_name (unsigned);
  static const char *dwarf_attr_name (unsigned);
  static const char *dwarf_form_name (unsigned);
-#if 0
-static const char *dwarf_type_encoding_name (unsigned);
-#endif
  static tree decl_ultimate_origin (tree);
  static tree block_ultimate_origin (tree);
  static tree decl_class_context (tree);
@@ -4548,36 +4545,6 @@ dwarf_form_name (unsigned int form)
        return "DW_FORM_<unknown>";
      }
  }
-
-/* Convert a DWARF type code into its string name.  */
-
-#if 0
-static const char *
-dwarf_type_encoding_name (unsigned enc)
-{
-  switch (enc)
-    {
-    case DW_ATE_address:
-      return "DW_ATE_address";
-    case DW_ATE_boolean:
-      return "DW_ATE_boolean";
-    case DW_ATE_complex_float:
-      return "DW_ATE_complex_float";
-    case DW_ATE_float:
-      return "DW_ATE_float";
-    case DW_ATE_signed:
-      return "DW_ATE_signed";
-    case DW_ATE_signed_char:
-      return "DW_ATE_signed_char";
-    case DW_ATE_unsigned:
-      return "DW_ATE_unsigned";
-    case DW_ATE_unsigned_char:
-      return "DW_ATE_unsigned_char";
-    default:
-      return "DW_ATE_<unknown>";
-    }
-}
-#endif


  /* Determine the "ultimate origin" of a decl.  The decl may be an inlined
     instance of an inlined instance of a decl which is local to an inline
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050322/3d482d14/attachment.sig>


More information about the Gcc-patches mailing list