From 0d6091d924c5cb0bb2ee1c6d165fc92219917e2a Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 6 Mar 2018 12:09:33 +0000 Subject: [PATCH] * gcc-interface/utils.c (def_builtin_1): Bail out on error_mark_node. From-SVN: r258276 --- gcc/ada/ChangeLog | 4 ++++ gcc/ada/gcc-interface/utils.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 4d721f22f89..195f94e251f 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2018-03-06 Eric Botcazou + + * gcc-interface/utils.c (def_builtin_1): Bail out on error_mark_node. + 2018-02-28 Eric Botcazou * libgnat/i-cexten.ads (Float_128): New type. diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index 9ade57bf44d..eb2c2573a3f 100644 --- a/gcc/ada/gcc-interface/utils.c +++ b/gcc/ada/gcc-interface/utils.c @@ -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_"))); -- 2.30.2