From c3de496b71a433345198e7fe3e6e37177797b24a Mon Sep 17 00:00:00 2001 From: Dominic Kempf Date: Fri, 28 Oct 2016 18:07:02 +0200 Subject: [PATCH] Use the __restrict__ qualifier instead of the restrict keyword `restrict` is keyword in C, but in C++ there is only a type qualifier `__restrict__`. To my knowledge, the latter is available in both languages. --- loopy/target/c/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loopy/target/c/__init__.py b/loopy/target/c/__init__.py index 34edb17de..c8ff462bd 100644 --- a/loopy/target/c/__init__.py +++ b/loopy/target/c/__init__.py @@ -285,7 +285,7 @@ class CTarget(TargetBase): class _ConstRestrictPointer(Pointer): def get_decl_pair(self): sub_tp, sub_decl = self.subdecl.get_decl_pair() - return sub_tp, ("*const restrict %s" % sub_decl) + return sub_tp, ("*const __restrict__ %s" % sub_decl) class CASTBuilder(ASTBuilderBase): -- GitLab