https://bugs.llvm.org/show_bug.cgi?id=38979
Bug ID: 38979
Summary: Clang silently generates non-working code for GPU
targets when passed flags inappropriate for GPUs
Product: clang
Version: 6.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: OpenCL
Assignee: unassignedclangb...@nondot.org
Reporter: infini...@debian.org
CC: llvm-bugs@lists.llvm.org
Debian adds "-fstack-protector-strong" to CFLAGS for all packages.
Unfortunately one of our maintainers was a bit overzealous in applying that
manually to libclc's build files which causes it to fail when compiling opencl
code at runtime.
What was less clear whether the concept of a stack protector makes sense for
GPU code. Either way Clang needs a fix - (a) if it doesn't make sense, then
Clang should fail when the flag is given, or at least warn and not generate
incorrect code; (b) if it does make sense, then Clang should be fixed to
generate correct and working code.
Please see the freedesktop.org bug report linked below, for a dump of the code
being generated and more details.
https://bugs.freedesktop.org/show_bug.cgi?id=107369
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs