Commit 1a51f10c by Richard Sandiford Committed by Richard Sandiford

re PR sanitizer/61095 (miscompile: tsan is broken in gcc trunk, works in 4.9)

gcc/
	PR tree-optimization/61095
	* tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.

From-SVN: r210181
parent 5b1e4b47
2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
PR tree-optimization/61095
* tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
2014-05-07 Richard Biener <rguenther@suse.de>
PR tree-optimization/61034
......
......@@ -271,7 +271,8 @@ get_nonzero_bits (const_tree name)
{
struct ptr_info_def *pi = SSA_NAME_PTR_INFO (name);
if (pi && pi->align)
return wi::shwi (-(int) pi->align | pi->misalign, precision);
return wi::shwi (-(HOST_WIDE_INT) pi->align
| (HOST_WIDE_INT) pi->misalign, precision);
return wi::shwi (-1, precision);
}
......
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