This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/59895] Updates to global variables not consistent across translation units when FLTO is enabled
- From: "adob321 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Jan 2014 05:08:50 +0000
- Subject: [Bug c++/59895] Updates to global variables not consistent across translation units when FLTO is enabled
- Auto-submitted: auto-generated
- References: <bug-59895-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59895
--- Comment #4 from Aleksandr Dobkin <adob321 at gmail dot com> ---
(In reply to Andrew Pinski from comment #3)
> So in this case here, s1 is being initialized first and then globalvec gets
> initialized which changes the size back to 0.
Thanks for the explanation. I've verified this does appear to be the case.