[llvm-bugs] [Bug 35196] New: no warning on target flag when target doesn't match lone configured backend
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Nov 3 11:05:10 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=35196
Bug ID: 35196
Summary: no warning on target flag when target doesn't match
lone configured backend
Product: clang
Version: 5.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: ndesaulniers at google.com
CC: llvm-bugs at lists.llvm.org, manojgupta at google.com,
pirama at google.com, srhines at google.com
It seems that Clang can be configured to only support 1 backend, and that if
you do so then pass -target <triple with a different arch>, that clang just
produces code for the configured arch without any warning or failure. This led
to: https://lkml.org/lkml/2017/11/2/892
IMO, this should be a compiler error, if not at least a warning.
--
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/20171103/1337bada/attachment-0001.html>
More information about the llvm-bugs
mailing list