------- Comment #3 from krebbel at gcc dot gnu dot org  2009-08-11 07:56 -------
The same happens when bootstrapping on s390x while building libdecnumber. Here
is a reduced testcase:

typedef struct
{
  unsigned char bits;
  unsigned short int lsu[1];
} decNumber;

void
decCompareOp (decNumber * res, const decNumber * lhs, unsigned char op)
{
  int result = 0;

  if ((((lhs)->bits & (0x20 | 0x10)) != 0))
    {
      op = 0x02;
      if (lhs->bits & 0x20)
        result = -1;
    }
  if (op == 0x01 || op == 0x06 || op == 0x04)
    {
      if (result != 0)
        *res->lsu = 1;
    }
}


-- 

krebbel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |krebbel at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-08-11 07:56:44
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41031

Reply via email to