Message ID | 20160201184237.GI3017@tucnak.redhat.com |
---|---|
State | New |
Headers | show |
On 02/01/16 13:42, Jakub Jelinek wrote: > Your patch broke bootstrap on ILP32 hosts, I'm testing following fix. > Supporting unsigned values from 0x80000000U to 0xffffffffU only on LP64 > hosts and not on ILP64 hosts sounds really weird, I think it is better > to only support 1 to 0x7fffffffU. yes, I must have missed that first cast when changing my mind over signed/unsigned. thanks! nathan
--- gcc/omp-low.c.jj 2016-02-01 19:08:51.000000000 +0100 +++ gcc/omp-low.c 2016-02-01 19:36:57.751641369 +0100 @@ -20285,10 +20285,10 @@ oacc_parse_default_dims (const char *dim errno = 0; val = strtol (pos, CONST_CAST (char **, &eptr), 10); - if (errno || val <= 0 || (unsigned)val != val) + if (errno || val <= 0 || (int) val != val) goto malformed; pos = eptr; - oacc_default_dims[ix] = (int)val; + oacc_default_dims[ix] = (int) val; } } if (*pos)