Re: constructors/destructors compiled twice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kövesdi György wrote:

> It is a very old bug, and seems to be suspended (however, has some activity).
> Is there anybody working on it? Some patch is mentioned, but it seems to be
> quite old.

Read the last comment in the PR again.  To fix this requires arranging
to have the same function body with multiple names, and to do that in a
way that ensures compatibility and correct behavior across toolchains,
the ABI must be updated, or failing that, somebody has to invent an
ad-hoc mangling scheme for a vendor extensions.  So it is a much wider
scope change than just making the compiler do something differently, it
involves forging new ABI ground and that always makes developers
cringe.  The fact that the PR's been around for 6 years now pretty much
shows the cost-benefit model that people apply to potentially breaking
an already complex ABI for what amounts to a code size reduction but no
wrong-code/wrong-behavior regression.

OTOH, if you don't care about ABI compatibility then you could probably
use the proposed patch.

Brian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux