[llvm-bugs] [Bug 44910] New: clang-cl: /Gy support

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Feb 14 06:24:44 PST 2020


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

            Bug ID: 44910
           Summary: clang-cl: /Gy support
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: yurybura at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

clang-cl driver translates /Gy option to -ffunction-sections (see
\clang\include\clang\Driver\CLCompatOptions.td Line 99).

But looks like -ffunction-sections doesn't work on Windows with COFF.
Documentation says:
-ffunction-sections, -fno-function-sections
Place each function in its own section (ELF Only)

How to get this functionality on Windows?

-- 
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/20200214/a463de66/attachment.html>


More information about the llvm-bugs mailing list