This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
bootstrap failure with HP's C compiler on trunk: PR 12186 returns
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 30 Apr 2004 16:06:29 -0700
- Subject: bootstrap failure with HP's C compiler on trunk: PR 12186 returns
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
@@ -1398,7 +1398,8 @@
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);