[llvm-bugs] [Bug 39763] New: Different linker option list behavior for empty or single item list and list of multiple items.
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Nov 23 03:12:36 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=39763
Bug ID: 39763
Summary: Different linker option list behavior for empty or
single item list and list of multiple items.
Product: clang
Version: 7.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: youtolife at yandex.ru
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
Steps to Reproduce:
test.ll:
!llvm.linker.options = !{!0}
!0 = !{}
or
!llvm.linker.options = !{!0}
!0 = !{!"one"}
command line:
clang test.ll
Actual Results:
warning: overriding the module target triple with x86_64-pc-linux-gnu
[-Woverride-module]
fatal error: error in backend: invalid llvm.linker.options
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 7.0.0-3 (tags/RELEASE_700/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.
But
!llvm.linker.options = !{!0}
!0 = !{!"one", !"two"}
is working.
Build 2018-11-23 on Ubuntu 18.10
--
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/20181123/2b2528cb/attachment.html>
More information about the llvm-bugs
mailing list