re PR sanitizer/61095 (miscompile: tsan is broken in gcc trunk, works in 4.9)
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Wed, 7 May 2014 18:00:59 +0000 (18:00 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 7 May 2014 18:00:59 +0000 (18:00 +0000)
gcc/
PR tree-optimization/61095
* tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.

From-SVN: r210181

gcc/ChangeLog
gcc/tree-ssanames.c

index afac89b..a12b4a3 100644 (file)
@@ -1,3 +1,8 @@
+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
index fa7eaf3..20a2c3f 100644 (file)
@@ -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);
     }