* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Abstract_State>: New.
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 18 Sep 2013 10:35:53 +0000 (10:35 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 18 Sep 2013 10:35:53 +0000 (10:35 +0000)
From-SVN: r202690

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

index fb4789cc932645537ee965fd14ccedf4de93d121..686f62cc863701b3b8c0e75070cb2f9be6acb71b 100644 (file)
@@ -1,3 +1,7 @@
+2013-09-18  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Abstract_State>: New.
+
 2013-09-18  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc-interface/trans.c (gigi): Remove dead code.
index 26342e2a012afde493d0d55a788ee832a0e9c9a1..456d7ab7ad953e1b3009878a88df720f77d9bea5 100644 (file)
@@ -4812,6 +4812,12 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
       saved = true;
       break;
 
+    case E_Abstract_State:
+      /* This is a SPARK annotation that only reaches here when compiling in
+        ASIS mode and has no characteristics to annotate.  */
+      gcc_assert (type_annotate_only);
+      return error_mark_node;
+
     default:
       gcc_unreachable ();
     }