re PR c++/31806 (miscompilation with -fschedule-insns2 -fno-threadsafe-statics)
authorJakub Jelinek <jakub@redhat.com>
Thu, 31 May 2007 16:40:12 +0000 (18:40 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 31 May 2007 16:40:12 +0000 (18:40 +0200)
commit32735518212664a14ebbd6066d7c4d39de8a02cd
treea35957d4d383ff554c756876803106ed9d58c891
parent2664efb66b50f177f99b4555bd8a0791b12cbff7
re PR c++/31806 (miscompilation with -fschedule-insns2 -fno-threadsafe-statics)

PR c++/31806
* decl.c (cp_finish_decl): Also clear was_readonly if a static var
needs runtime initialization.

From-SVN: r125229
gcc/cp/ChangeLog
gcc/cp/decl.c