g++3: Static Initializers occur twice in Binary
Mike Stump
mrs@apple.com
Tue Dec 2 02:02:00 GMT 2003
On Monday, December 1, 2003, at 09:06 AM, Frank Mehnert wrote:
> in the attached example, the constructor of class A is generated twice.
> I have tested thish with g++-3.3.2 and g++-3.2.3. "objdump -tC" shows
> two occurences of constructor A::A. Please could anyone tell me how to
> prevent this behavior?
Experience tells me that there is probably a totally different question
that you had in mind that you wanted to ask before you transformed it
into this question. It is easier for me at least to answer this
unasked question, though, I can't answer it because I'm not sure what
the question is. This question, is an artifact of an internal to the
compiler code generation decision. It is like saying, could you please
change the compiler to not use $r5 in the following code...
More information about the Gcc
mailing list