[llvm-bugs] [Bug 39659] New: -fembed-bitcode does nothing for .S files

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 13 23:44:29 PST 2018


            Bug ID: 39659
           Summary: -fembed-bitcode does nothing for .S files
           Product: clang
           Version: 7.0
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rodger.combs at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

See e.g.:

$ touch empty.S empty.c
$ clang -fembed-bitcode -c -o empty-S.o empty.S
$ clang -fembed-bitcode -c -o empty-c.o empty.c

The resulting empty-c.o has a __bitcode/__LLVM segment. When building with
Apple clang, empty-S.o has a __asm/__LLVM segment. With upstream clang 7.0.0,
empty-S.o is identical whether -fembed-bitcode is passed or not, and no __LLVM
segment is present. This means Apple clang is currently required to build
assembly for the Apple TV App Store.

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/20181114/05bd4072/attachment.html>

More information about the llvm-bugs mailing list