This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31806] miscompilation with -fschedule-insns2 -fno-threadsafe-statics
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 May 2007 16:40:24 -0000
- Subject: [Bug c++/31806] miscompilation with -fschedule-insns2 -fno-threadsafe-statics
- References: <bug-31806-12049@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from jakub at gcc dot gnu dot org 2007-05-31 16:40 -------
Subject: Bug 31806
Author: jakub
Date: Thu May 31 16:40:12 2007
New Revision: 125229
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125229
Log:
PR c++/31806
* decl.c (cp_finish_decl): Also clear was_readonly if a static var
needs runtime initialization.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31806