1 May 2004 01:06
bootstrap failure with HP's C compiler on trunk: PR 12186 returns
Joe Buck <Joe.Buck <at> synopsys.COM>
2004-04-30 23:06:29 GMT
2004-04-30 23:06:29 GMT
The trunk fails to bootstrap on HP due to an HP compiler bug. This
is the same issue as bootstrap/12186, but it has arisen in a different
place: the compiler crashes if the |= operator is applied to a bitfield.
Here's a patch. Should I re-open PR 12186 or make a new PR?
Index: cppfiles.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cppfiles.c,v
retrieving revision 1.206
diff -u -r1.206 cppfiles.c
--- cppfiles.c 23 Apr 2004 02:22:24 -0000 1.206
+++ cppfiles.c 30 Apr 2004 23:03:21 -0000
<at> <at> -1398,7 +1398,8 <at> <at>
return 1;
d->entries[count].once_only = f->once_only;
- d->have_once_only |= f->once_only;
+ /* |= is avoided in the next line because of an HP C compiler bug */
+ d->have_once_only = d->have_once_only | f->once_only;
if (f->buffer_valid)
md5_buffer ((const char *)f->buffer,
f->st.st_size, d->entries[count].sum);
RSS Feed