aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppfiles.c
diff options
context:
space:
mode:
authorJoe Buck <jbuck@welsh-buck.org>2004-05-03 22:59:50 +0000
committerJim Wilson <wilson@gcc.gnu.org>2004-05-03 15:59:50 -0700
commit97d623137dca57e84528cbc58e5e0f3f5e8a3dd4 (patch)
tree13ea4f259df07b0ef5061a970b763c234c68d390 /gcc/cppfiles.c
parent03a53989d1a01b0e142c6803bc9146b0d8300074 (diff)
downloadgcc-97d623137dca57e84528cbc58e5e0f3f5e8a3dd4.zip
gcc-97d623137dca57e84528cbc58e5e0f3f5e8a3dd4.tar.gz
gcc-97d623137dca57e84528cbc58e5e0f3f5e8a3dd4.tar.bz2
Patch from Joe Buck to workaround HP C bug.
* cppfiles.c (pchf_adder): Eliminate use of |= in d->have_once_only assignment. From-SVN: r81458
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r--gcc/cppfiles.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index 41657ce..fab78fa 100644
--- a/gcc/cppfiles.c
+++ b/gcc/cppfiles.c
@@ -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);