]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Replace ENABLE_CHECKING macro with flag_checking in GNAT
authorMartin Liska <mliska@suse.cz>
Mon, 29 Feb 2016 15:30:08 +0000 (16:30 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 29 Feb 2016 15:30:08 +0000 (15:30 +0000)
* gcc-interface/utils.c (set_reverse_storage_order_on_pad_type):
Replace ENABLE_CHECKING macro with flag_checking.

From-SVN: r233815

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

index cda8be6e122c5fe2c595de9df4ad3c588d46ff3c..de617b16ca3d89f550cf0a1c399f45fca5bef98e 100644 (file)
@@ -1,3 +1,8 @@
+2016-02-29  Martin Liska  <mliska@suse.cz>
+
+       * gcc-interface/utils.c (set_reverse_storage_order_on_pad_type):
+       Replace ENABLE_CHECKING macro with flag_checking.
+
 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Retrofit
index 6d4770df998b531426dd9f4ec25b97557c207f58..9bd2773ba9e8b50abc40aabb1a25a1f00637ac45 100644 (file)
@@ -1486,11 +1486,13 @@ set_reverse_storage_order_on_pad_type (tree type)
 {
   tree field, canonical_pad_type;
 
-#ifdef ENABLE_CHECKING
-  /* If the inner type is not scalar then the function does nothing.  */
-  tree inner_type = TREE_TYPE (TYPE_FIELDS (type));
-  gcc_assert (!AGGREGATE_TYPE_P (inner_type) && !VECTOR_TYPE_P (inner_type));
-#endif
+  if (flag_checking)
+    {
+      /* If the inner type is not scalar then the function does nothing.  */
+      tree inner_type = TREE_TYPE (TYPE_FIELDS (type));
+      gcc_assert (!AGGREGATE_TYPE_P (inner_type)
+                 && !VECTOR_TYPE_P (inner_type));
+    }
 
   /* This is required for the canonicalization.  */
   gcc_assert (TREE_CONSTANT (TYPE_SIZE (type)));