]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc-interface/misc.c (gnat_enum_underlying_base_type): New function.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Feb 2016 17:51:56 +0000 (17:51 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Feb 2016 17:51:56 +0000 (17:51 +0000)
(LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): Define to above.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233467 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/ChangeLog
gcc/ada/gcc-interface/misc.c

index ec6a8c464b20fd10d75e8a37d7c89ff380150e37..4ed1903d72667200791da30413d3a16c6fa68a58 100644 (file)
@@ -1,3 +1,8 @@
+2016-02-16  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/misc.c (gnat_enum_underlying_base_type): New function.
+       (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): Define to above.
+
 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
 
        * prj-tree.ads: Spelling fixes - behaviour -> behavior and
index 75e467bf7422f8bf697ed19675ca65e3212054ef..f54e390ecf52d6854f648093d4a91b4a8a9aff73 100644 (file)
@@ -575,6 +575,15 @@ gnat_descriptive_type (const_tree type)
     return NULL_TREE;
 }
 
+/* Return the underlying base type of an enumeration type.  */
+
+static tree
+gnat_enum_underlying_base_type (const_tree)
+{
+  /* Enumeration types are base types in Ada.  */
+  return void_type_node;
+}
+
 /* Return the type to be used for debugging information instead of TYPE or
    NULL_TREE if TYPE is fine.  */
 
@@ -1390,6 +1399,8 @@ get_lang_specific (tree node)
 #define LANG_HOOKS_GET_TYPE_BIAS       gnat_get_type_bias
 #undef  LANG_HOOKS_DESCRIPTIVE_TYPE
 #define LANG_HOOKS_DESCRIPTIVE_TYPE    gnat_descriptive_type
+#undef  LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE
+#define LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE gnat_enum_underlying_base_type
 #undef  LANG_HOOKS_GET_DEBUG_TYPE
 #define LANG_HOOKS_GET_DEBUG_TYPE      gnat_get_debug_type
 #undef  LANG_HOOKS_GET_FIXED_POINT_TYPE_INFO