This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g++3: Static Initializers occur twice in Binary


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...



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]