[llvm-bugs] [Bug 35659] Change in COMMON symbol layout after "ELF: Remove DefinedCommon."

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 2 22:45:13 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=35659

Fangrui Song <i at maskray.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |i at maskray.me
         Resolution|---                         |WONTFIX

--- Comment #5 from Fangrui Song <i at maskray.me> ---
gcc 10/clang 11 make -fno-common the default. Fortran COMMON is strongly
discouraged.

In GNU ld, --sort-common places common symbols of align>=16 first, then
align=8, then align=4, then align=2, then align=1. The packing benefit is
actually very small. For musl x86-64 libc.a, it can save 0~8 bytes, which is
close to nothing.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200303/a5fe47c5/attachment.html>


More information about the llvm-bugs mailing list