diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-11 06:45:20 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-11 06:45:20 +0000 |
commit | 885460534c19a0c03925680466c21a344e59aee0 (patch) | |
tree | fca2cf8d4d927f4819b415fedb2d423a24525e52 | |
parent | 9558bc573ad80febc4448633e07b017eae076e6c (diff) | |
download | gcc-885460534c19a0c03925680466c21a344e59aee0.tar.gz |
* c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71297 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-decl.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 77c7701cb80..07da35b6c6a 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 b72f257b4c3..26a012a021c 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); |