* gcc-interface/utils.c (def_builtin_1): Bail out on error_mark_node.
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 6 Mar 2018 12:09:33 +0000 (12:09 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 6 Mar 2018 12:09:33 +0000 (12:09 +0000)
From-SVN: r258276

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

index 4d721f22f89383e279f9f9abfbdbd3e7680679e2..195f94e251f9c2f1e27863e6f9cd23381cb4631a 100644 (file)
@@ -1,3 +1,7 @@
+2018-03-06  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/utils.c (def_builtin_1): Bail out on error_mark_node.
+
 2018-02-28  Eric Botcazou  <ebotcazou@adacore.com>
 
        * libgnat/i-cexten.ads (Float_128): New type.
index 9ade57bf44db4efc96f509cd9d3af185816a47b0..eb2c2573a3f429a3d1d63a46d31984f93c826273 100644 (file)
@@ -6443,6 +6443,9 @@ def_builtin_1 (enum built_in_function fncode,
   if (builtin_decl_explicit (fncode))
     return;
 
+  if (fntype == error_mark_node)
+    return;
+
   gcc_assert ((!both_p && !fallback_p)
              || !strncmp (name, "__builtin_",
                           strlen ("__builtin_")));