[llvm-commits] [llvm-gcc-4.2] r98626 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Chris Lattner
clattner at apple.com
Tue Mar 16 11:18:33 PDT 2010
On Mar 16, 2010, at 11:15 AM, Duncan Sands wrote:
>> I originally tried to do this for llvm-gcc 3 and was defeated by libstdc++. It assumes (and it turns out the c++ standard allows this) that global variables are zero initialized before the constructor for a type is run on it.
>
> That is so annoying! You could do easily do some nice simplifications if this
> wasn't the case...
Yeah I know. I assume you noticed the globalopt xforms that build on this. I added those back when I thought that the c++ frontend could take advantage of it, then had to revert the frontend changes.
-Chris
More information about the llvm-commits
mailing list