aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-06-09 20:31:47 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-06-09 20:41:55 +0200
commit42323db3955557b223268ec4196acb77308ab204 (patch)
treebec100fed5a2ad438fc18538f7c80074eee2ad8d
parent966dd78f873a2ee9a394d3b2267d121a6dfcd1e9 (diff)
downloadsparse-42323db3955557b223268ec4196acb77308ab204.tar.gz
nios2: add declaration for __builtin_{rd,wr}ctl()
These 2 are used for the kernel and the lack of a declaration is causing problems. So add the declarations for these 2 builtins. At the same time also add one for '__builtin_custom_ini()' since this one may also be used in the kernel. Note: a better fix should be to move this to target-nios2.c Link: https://lore.kernel.org/lkml/20200609151329.GU23011@xsang-OptiPlex-9020/ Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--builtin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/builtin.c b/builtin.c
index debc22c0..5ed17700 100644
--- a/builtin.c
+++ b/builtin.c
@@ -613,4 +613,9 @@ void declare_builtins(void)
declare_builtin("__builtin_bfin_csync", &void_ctype, 0, NULL);
declare_builtin("__builtin_bfin_ssync", &void_ctype, 0, NULL);
declare_builtin("__builtin_bfin_norm_fr1x32", &int_ctype, 0, &int_ctype, NULL);
+
+ // Nios-II-specific
+ declare_builtin("__builtin_rdctl", &int_ctype, 0, &int_ctype, NULL);
+ declare_builtin("__builtin_wrctl", &void_ctype, 0, &int_ctype, &int_ctype, NULL);
+ declare_builtin("__builtin_custom_ini", &int_ctype, 0, &int_ctype, NULL);
}