aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Diagnostics.mli
diff options
context:
space:
mode:
authorBernhard Schommer <bschommer@users.noreply.github.com>2018-08-29 16:17:41 +0200
committerXavier Leroy <xavierleroy@users.noreply.github.com>2018-08-29 16:17:41 +0200
commitb4b1fa3d47c37829be30367ced9aa89abcd7f5c7 (patch)
tree578a69f40daa832377783a480a03066fd959f794 /cparser/Diagnostics.mli
parent4dd461d08fb4a9361d87938fa90c009f3b80b8bf (diff)
downloadcompcert-kvx-b4b1fa3d47c37829be30367ced9aa89abcd7f5c7.tar.gz
compcert-kvx-b4b1fa3d47c37829be30367ced9aa89abcd7f5c7.zip
New diagnostic for reduced alignment (#117)
The new diagnostic triggers if an `_Alignas` or an `aligned` attribute or a `packed` attribute requests an alignment smaller than the natural alignment. Bug 23389
Diffstat (limited to 'cparser/Diagnostics.mli')
-rw-r--r--cparser/Diagnostics.mli1
1 files changed, 1 insertions, 0 deletions
diff --git a/cparser/Diagnostics.mli b/cparser/Diagnostics.mli
index 2a3643d5..ded8019f 100644
--- a/cparser/Diagnostics.mli
+++ b/cparser/Diagnostics.mli
@@ -54,6 +54,7 @@ type warning_type =
| Static_in_inline (** static variable in non-static inline function *)
| Flexible_array_extensions (** usange of structs with flexible arrays in structs and arrays *)
| Tentative_incomplete_static (** static tentative definition with incomplete type *)
+ | Reduced_alignment (** alignment reduction *)
val warning : (string * int) -> warning_type -> ('a, Format.formatter, unit, unit, unit, unit) format6 -> 'a
(** [warning (f,c) w fmt arg1 ... argN] formats the arguments [arg1] to [argN] as warining according to