[llvm-commits] [llvm-gcc-4.2] r63696 - /llvm-gcc-4.2/trunk/gcc/cp/parser.c
Stuart Hastings
stuart at apple.com
Tue Feb 3 16:53:40 PST 2009
Author: stuart
Date: Tue Feb 3 18:53:40 2009
New Revision: 63696
URL: http://llvm.org/viewvc/llvm-project?rev=63696&view=rev
Log:
<rdar://problem/6530069>
Call cp_finish_decl() before marking the block_holder_tmp_decl
readonly. Fixes these DejaGNU regressions:
g++.apple/block-call-with-sideeffect.c
g++.apple/block-global-block.c
g++.apple/block-id-global-block.c
g++.apple/block-localisglobal.c
g++.apple/block-nested-global-copied-var-2.c
g++.apple/block-nested-global.c
Modified:
llvm-gcc-4.2/trunk/gcc/cp/parser.c
Modified: llvm-gcc-4.2/trunk/gcc/cp/parser.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/cp/parser.c?rev=63696&r1=63695&r2=63696&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/cp/parser.c (original)
+++ llvm-gcc-4.2/trunk/gcc/cp/parser.c Tue Feb 3 18:53:40 2009
@@ -21065,13 +21065,13 @@
TREE_PUBLIC (block_holder_tmp_decl) = 0;
TREE_STATIC (block_holder_tmp_decl) = 1;
}
+ cp_finish_decl (block_holder_tmp_decl, constructor, 0, 0, LOOKUP_ONLYCONVERTING);
/* LLVM LOCAL begin radar 5865221 */
#ifdef ENABLE_LLVM
TREE_CONSTANT (block_holder_tmp_decl) = 1;
TREE_READONLY (block_holder_tmp_decl) = 1;
#endif
/* LLVM LOCAL end radar 5865221 */
- cp_finish_decl (block_holder_tmp_decl, constructor, 0, 0, LOOKUP_ONLYCONVERTING);
return block_holder_tmp_decl;
}
/* APPLE LOCAL end radar 6169527 */
More information about the llvm-commits
mailing list