Thread overview
[Issue 15130] dmd emits huge data for zero initialized struct
Jul 03, 2017
Vladimir Panteleev
Jul 07, 2017
ZombineDev
Jan 14, 2018
Martin Nowak
Dec 17, 2022
Iain Buclaw
July 03, 2017
https://issues.dlang.org/show_bug.cgi?id=15130

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dlang-bugzilla@thecybershad
                   |                            |ow.net

--- Comment #1 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> ---
2.053 and earlier (before https://github.com/dlang/dmd/pull/605), nm -S output
looked like this:

0000000000000000 t
                 U _D15TypeInfo_Struct6__vtblZ
0000000000000000 0000000000000008 V _D22TypeInfo_S4test6Buffer6__initZ
0000000000000000 D _D4test12__ModuleInfoZ
0000000000000000 R _D4test6Buffer6__initZ
                 U _Dmodule_ref

However, the object file is still over 64K in size.

--
July 07, 2017
https://issues.dlang.org/show_bug.cgi?id=15130

ZombineDev <petar.p.kirov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petar.p.kirov@gmail.com

--
January 14, 2018
https://issues.dlang.org/show_bug.cgi?id=15130

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major

--- Comment #2 from Martin Nowak <code@dawg.eu> ---
In that PR I had to fix the symbol sizes dmd specifies so that copy relocations
work. Before that dmd was specifying some symbols to only be 8 byte while still
allocating the space for the full symbol.
It also affects ldc-1.7.0 and gdc-4.8.5 btw.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=15130

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2

--
December 13
https://issues.dlang.org/show_bug.cgi?id=15130

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19051

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--