aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/symbol.h
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-04-30 23:31:56 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-05-04 20:47:52 +0200
commit4e9c8ee467dd87d41d5aaa3c5a487e3f05ffb79c (patch)
tree84dab69712bfc49a205a42d4aadd163d27c6cb92 /symbol.h
parent8ddbf2e8157938e219ff2cf19da34b9c6f5f1d4f (diff)
downloadsparse-dev-4e9c8ee467dd87d41d5aaa3c5a487e3f05ffb79c.tar.gz
teach sparse about _Floatn and _Floatnx
It seems that some system headers (Debian x32's glibc) use these types based on GCC's version without checking one of the '__STDC_IEC_60559_<something>' macro. This, of course, creates warnings and errors when using sparse on them. Avoid these errors & warnings by letting sparse know about these types. Note: Full support would require changes in the parsing to recognize the suffixes for constants ([fF]32, ...), the conversion rules between these types and the standard ones and probably and most others things, all outside the scope of this patch. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Acked-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Diffstat (limited to 'symbol.h')
-rw-r--r--symbol.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/symbol.h b/symbol.h
index dc6de8fa..09f7340b 100644
--- a/symbol.h
+++ b/symbol.h
@@ -267,6 +267,9 @@ extern struct symbol bool_ctype, void_ctype, type_ctype,
string_ctype, ptr_ctype, lazy_ptr_ctype,
incomplete_ctype, label_ctype, bad_ctype,
null_ctype;
+extern struct symbol float32_ctype, float32x_ctype;
+extern struct symbol float64_ctype, float64x_ctype;
+extern struct symbol float128_ctype;
extern struct symbol const_void_ctype, const_char_ctype;
extern struct symbol const_ptr_ctype, const_string_ctype;