From: Jakub Jelinek Date: Fri, 23 Jun 2017 17:46:21 +0000 (+0200) Subject: trans.c (gnat_to_gnu): Initialize sync to false to avoid UB. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa9ace3e6fd3e0e879f4f24adf8befbc3ed1e1b5;p=gcc.git trans.c (gnat_to_gnu): Initialize sync to false to avoid UB. * gcc-interface/trans.c (gnat_to_gnu): Initialize sync to false to avoid UB. From-SVN: r249604 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index fce09a0666f..dc8f27994d5 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2017-06-23 Jakub Jelinek + + * gcc-interface/trans.c (gnat_to_gnu): Initialize sync to false to + avoid UB. + 2017-06-21 Pierre-Marie de Rodat * gcc-interface/ada-tree.h (DECL_FUNCTION_IS_DEF): Update copyright diff --git a/gcc/ada/gcc-interface/trans.c b/gcc/ada/gcc-interface/trans.c index 79d099538c9..7844bd7c5a8 100644 --- a/gcc/ada/gcc-interface/trans.c +++ b/gcc/ada/gcc-interface/trans.c @@ -5883,7 +5883,7 @@ gnat_to_gnu (Node_Id gnat_node) tree gnu_result_type = void_type_node; tree gnu_expr, gnu_lhs, gnu_rhs; Node_Id gnat_temp; - bool sync; + bool sync = false; /* Save node number for error message and set location information. */ error_gnat_node = gnat_node;