This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]