Patch from Joe Buck to workaround HP C bug.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 May 2004 22:59:50 +0000 (22:59 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 May 2004 22:59:50 +0000 (22:59 +0000)
* cppfiles.c (pchf_adder): Eliminate use of |= in d->have_once_only
assignment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81458 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cppfiles.c

index ef26693..2a7ba98 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-03  Joe Buck <jbuck@welsh-buck.org>
+
+       * cppfiles.c (pchf_adder): Eliminate use of |= in d->have_once_only
+       assignment.
+
 2004-05-03  Eric Christopher  <echristo@redhat.com>
 
        * config/mips/mips.md: Fix branch length attribute definition.
index 41657ce..fab78fa 100644 (file)
@@ -1398,7 +1398,8 @@ pchf_adder (void **slot, void *data)
        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);