[llvm-bugs] [Bug 38979] New: Clang silently generates non-working code for GPU targets when passed flags inappropriate for GPUs

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 17 19:42:05 PDT 2018


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: unassignedclangbugs at nondot.org
          Reporter: infinity0 at debian.org
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180918/5711c73c/attachment.html>


More information about the llvm-bugs mailing list