From dd5c7759f3432e795c5ee738eec5e931c0ef45b2 Mon Sep 17 00:00:00 2001 From: Joe Buck <jbuck@welsh-buck.org> Date: Thu, 11 Sep 2003 06:45:20 +0000 Subject: [PATCH] * c-decl.c (poplevel): Eliminate use of |= in function_body assignment. From-SVN: r71297 --- gcc/ChangeLog | 4 ++++ gcc/c-decl.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 77c7701cb80d..07da35b6c6ab 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-09-10 Joe Buck <jbuck@welsh-buck.org> + + * c-decl.c (poplevel): Eliminate use of |= in function_body assignment. + 2003-09-10 Jerry Quinn <jlquinn@optonline.net> * real.c: Update URL to VAX floating point docs. diff --git a/gcc/c-decl.c b/gcc/c-decl.c index b72f257b4c30..26a012a021c6 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -505,7 +505,8 @@ poplevel (int keep, int dummy ATTRIBUTE_UNUSED, int functionbody) tree decl; tree p; - scope->function_body |= functionbody; + /* The following line does not use |= due to a bug in HP's C compiler */ + scope->function_body = scope->function_body | functionbody; if (keep == KEEP_MAYBE) keep = (scope->names || scope->tags); -- GitLab