op0.
* gcc.dg/debug/vta-3.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152972
138bc75d-0d04-0410-961f-
82ee72b054a4
-2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
+2009-10-19 Jakub Jelinek <jakub@redhat.com>
+
+ * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM
+ op0.
+
+2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
PR middle-end/41738
* optabs.c (expand_binop): Make mode of shift count expression mode
if (bitpos == 0 && mode == GET_MODE (op0))
return op0;
+ if (bitpos < 0)
+ return NULL;
+
if ((bitpos % BITS_PER_UNIT) == 0
&& bitsize == GET_MODE_BITSIZE (mode1))
{
+2009-10-19 Jakub Jelinek <jakub@redhat.com>
+
+ * gcc.dg/debug/vta-3.c: New test.
+
2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/nested_proc.adb: Rename into...
--- /dev/null
+/* { dg-do compile } */
+
+int
+foo (void)
+{
+ union { char e[8]; int i; } a, b;
+ char *c, *d;
+ unsigned int i;
+ c = a.e;
+ d = &b.e[sizeof (int) - 1];
+ for (i = 0; i < sizeof (int); i++)
+ {
+ *d = *c++;
+ --d;
+ }
+ return b.i;
+}