[Bug c++/3187] gcc lays down two copies of constructors

alexandre dot nunes at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Oct 21 18:39:00 GMT 2008



------- Comment #32 from alexandre dot nunes at gmail dot com  2008-10-21 18:37 -------
I was considering using C++ for an arm-elf target, but I'm dropping that in
favour of plain C because of this silly thing. This sucks, because other than
that g++ does a pretty decent job when generating small, optimized code: I've
got no abstraction penalty at all, but a few duplicated constructors here and
there lead to about 23% code increase, and that wasn't acceptable.

The other funny thing is that if this is fixed, it'll be by 4.4 or something,
and so far I can't consider using gcc versions newer than 4.2.x, at least
because of PR31849.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3187



More information about the Gcc-bugs mailing list