diff mbox

Fix for "FAIL: tmpdir-gcc.dg-struct-layout-1/t028 c_compat_x_tst.o compile, (internal compiler error)"

Message ID 87h9zljw1w.fsf@e105548-lin.cambridge.arm.com
State New
Headers show

Commit Message

Richard Sandiford Oct. 3, 2014, 10:18 a.m. UTC
"David Sherwood" <david.sherwood@arm.com> writes:
> Hi Andreas,
>
> OK, I will fix this.

I installed David's patch below as obvious.  Tested on x86_64-linux-gnu.

Thanks,
Richard


gcc/
2014-10-03  David Sherwood  <david.sherwood@arm.com>

	* ira-int.h (ira_allocno): Mark hard_regno as signed.
diff mbox

Patch

Index: gcc/ira-int.h
===================================================================
--- gcc/ira-int.h	2014-09-30 09:04:23.602162410 +0100
+++ gcc/ira-int.h	2014-10-03 11:09:21.986634891 +0100
@@ -318,7 +318,7 @@  struct ira_allocno
      number (0, ...) - 2.  Value -1 is used for allocnos spilled by the
      reload (at this point pseudo-register has only one allocno) which
      did not get stack slot yet.  */
-  int hard_regno : 16;
+  signed int hard_regno : 16;
   /* Allocnos with the same regno are linked by the following member.
      Allocnos corresponding to inner loops are first in the list (it
      corresponds to depth-first traverse of the loops).  */