tree-ssa.c (warn_uninitialized_var): Use OPT_Wmaybe_uninitialized tag in the non-always executed case.
* tree-ssa.c (warn_uninitialized_var): Use OPT_Wmaybe_uninitialized tag in the non-always executed case. From-SVN: r194082
This commit is contained in:
parent
5c31da80bb
commit
ea3c6c07bd
|
@ -1,3 +1,8 @@
|
|||
2012-12-03 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* tree-ssa.c (warn_uninitialized_var): Use OPT_Wmaybe_uninitialized tag
|
||||
in the non-always executed case.
|
||||
|
||||
2012-12-03 Sofiane Naci <sofiane.naci@arm.com>
|
||||
|
||||
* config/aarch64/aarch64.c (aarch64_build_constant): Update prototype.
|
||||
|
|
|
@ -1664,7 +1664,7 @@ warn_uninitialized_vars (bool warn_possibly_uninitialized)
|
|||
"%qD is used uninitialized in this function",
|
||||
stmt);
|
||||
else if (warn_possibly_uninitialized)
|
||||
warn_uninit (OPT_Wuninitialized, use,
|
||||
warn_uninit (OPT_Wmaybe_uninitialized, use,
|
||||
SSA_NAME_VAR (use), SSA_NAME_VAR (use),
|
||||
"%qD may be used uninitialized in this function",
|
||||
stmt);
|
||||
|
@ -1696,13 +1696,13 @@ warn_uninitialized_vars (bool warn_possibly_uninitialized)
|
|||
continue;
|
||||
|
||||
if (always_executed)
|
||||
warn_uninit (OPT_Wuninitialized, use, gimple_assign_rhs1 (stmt),
|
||||
base,
|
||||
warn_uninit (OPT_Wuninitialized, use,
|
||||
gimple_assign_rhs1 (stmt), base,
|
||||
"%qE is used uninitialized in this function",
|
||||
stmt);
|
||||
else if (warn_possibly_uninitialized)
|
||||
warn_uninit (OPT_Wuninitialized, use, gimple_assign_rhs1 (stmt),
|
||||
base,
|
||||
warn_uninit (OPT_Wmaybe_uninitialized, use,
|
||||
gimple_assign_rhs1 (stmt), base,
|
||||
"%qE may be used uninitialized in this function",
|
||||
stmt);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue