From df8f1c5c5a8dceb78a915069f4a0620a90f4e7e1 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Mon, 3 Aug 2020 01:40:39 +0100 Subject: [PATCH] compiler: Annotate math functions nounwind/nowrite --- artiq/compiler/math_fns.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/compiler/math_fns.py b/artiq/compiler/math_fns.py index 5ae80ea4d..3dfb0c580 100644 --- a/artiq/compiler/math_fns.py +++ b/artiq/compiler/math_fns.py @@ -34,6 +34,8 @@ def unary_fp_type(name): return types.TExternalFunction(OrderedDict([("arg", builtins.TFloat())]), builtins.TFloat(), name, + # errno isn't observable from ARTIQ Python. + flags={"nounwind", "nowrite"}, broadcast_across_arrays=True)