From: SourceForge.net <no...@so...> - 2010-04-12 19:30:36
|
Bugs item #2986079, was opened at 2010-04-12 19:30 Message generated for change (Tracker Item Submitted) made by dliauchuk You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2986079&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: gcc Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Dzmitry Liauchuk (dliauchuk) Assigned to: Nobody/Anonymous (nobody) Summary: G++ generates asm listing with duplicate code Initial Comment: When there is a class/struct within a CPP source G++ generates two copies (exactly the same) of asm code for such a CPP source. See attached archive. Wihtin bbb.cpp there are two versions of the constructor of the Foo class: called there as 1) ZN3FooC2Ev 2) ZN3FooC1Ev This does not allow inline asm code with labels to be compilable and possibly increases the size of the output executable. Compilation command line: g++ -O0 -Wall -c -fmessage-length=0 -save-temps -osrc\bbb.o ..\src\bbb.cpp ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2986079&group_id=2435 |