* fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
From-SVN: r133732
+2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
+
+ * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
+
2008-03-30 Richard Guenther <rguenther@suse.de>
PR middle-end/31023
{
return fold_build1 (BIT_NOT_EXPR, type,
build2 (BIT_AND_EXPR, type,
- TREE_OPERAND (arg0, 0),
- TREE_OPERAND (arg1, 0)));
+ fold_convert (type,
+ TREE_OPERAND (arg0, 0)),
+ fold_convert (type,
+ TREE_OPERAND (arg1, 0))));
}
/* See if this can be simplified into a rotate first. If that
+2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gnat.dg/bit_packed_array2.adb: New test.
+
2008-03-30 Paul Thomas <pault@gcc.gnu.org>
PR fortran/35740
--- /dev/null
+-- { dg-do compile }
+-- { dg-options "-gnatws" }
+
+procedure Bit_Packed_Array2 is
+
+ type Bit_Array is array (integer range <>) of Boolean;
+ pragma Pack(Bit_Array);
+
+ b1 : Bit_Array(1..64);
+ b2 : Bit_array(1..64);
+ res : Bit_array(1..64);
+
+begin
+
+ if (not((not b1) or (not b2))) /= res then
+ null;
+ end if;
+
+end;