From 97d623137dca57e84528cbc58e5e0f3f5e8a3dd4 Mon Sep 17 00:00:00 2001 From: Joe Buck Date: Mon, 3 May 2004 22:59:50 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/cppfiles.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ef26693da65..2a7ba98e8ca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-05-03 Joe Buck + + * cppfiles.c (pchf_adder): Eliminate use of |= in d->have_once_only + assignment. + 2004-05-03 Eric Christopher * config/mips/mips.md: Fix branch length attribute definition. diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index 41657ce91ff..fab78fa2c25 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); -- 2.30.2