Commit 72bb85f8 by Martin Liska Committed by Martin Liska

Fix new clang warnings.

2019-08-27  Martin Liska  <mliska@suse.cz>

	* cgraph.c (cgraph_node::remove): Remove dead assignment before
	loop.
	* config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
	Enclose in anonymous namespace.
	* config/i386/x86-tune-costs.h (struct processor_costs): Wrap
	hard_register initialization in braces.
	* tree-vrp.h (value_range_base::supports_type_p): Return false
	for function with boolean return type.

From-SVN: r274945
parent e80f4068
2019-08-27 Martin Liska <mliska@suse.cz>
* cgraph.c (cgraph_node::remove): Remove dead assignment before
loop.
* config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
Enclose in anonymous namespace.
* config/i386/x86-tune-costs.h (struct processor_costs): Wrap
hard_register initialization in braces.
* tree-vrp.h (value_range_base::supports_type_p): Return false
for function with boolean return type.
2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (emit_i387_cw_initialization)
......
......@@ -1783,7 +1783,7 @@ cgraph_node::remove (void)
*/
force_output = false;
forced_by_abi = false;
cgraph_node *next = nested;
cgraph_node *next;
for (cgraph_node *n = nested; n; n = next)
{
next = n->next_nested;
......
......@@ -274,6 +274,8 @@ xlogue_layout::get_stub_rtx (enum xlogue_stub stub)
unsigned scalar_chain::max_id = 0;
namespace {
/* Initialize new chain. */
scalar_chain::scalar_chain (enum machine_mode smode_, enum machine_mode vmode_)
......@@ -622,6 +624,8 @@ scalar_chain::emit_conversion_insns (rtx insns, rtx_insn *after)
emit_insn_after (insns, BB_HEAD (new_bb));
}
} // anon namespace
/* Generate the canonical SET_SRC to move GPR to a VMODE vector register,
zeroing the upper parts. */
......
......@@ -265,7 +265,7 @@ value_range_base::supports_type_p (tree type)
{
if (type && (INTEGRAL_TYPE_P (type) || POINTER_TYPE_P (type)))
return type;
return NULL;
return false;
}
extern void register_edge_assert_for (tree, edge, enum tree_code,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment