Patch from Joe Buck to workaround HP C bug.
authorJoe Buck <jbuck@welsh-buck.org>
Mon, 3 May 2004 22:59:50 +0000 (22:59 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 3 May 2004 22:59:50 +0000 (15:59 -0700)
* cppfiles.c (pchf_adder): Eliminate use of |= in d->have_once_only
assignment.

From-SVN: r81458

gcc/ChangeLog
gcc/cppfiles.c

index ef26693da6544b0c66a890c3d737fe1087ae3623..2a7ba98e8cad6f9b270abec5f8baa681ab8f3d2a 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 41657ce91ff3c5d3a2b1f4561dd8b2b99f6d5089..fab78fa2c25df59df47a3bfa95b37a957a9f9cef 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);