[LLVMbugs] [Bug 20385] New: LLVM (through clang) doesn't distinguish between -fpic and -fPIC

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 21 08:42:30 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20385

            Bug ID: 20385
           Summary: LLVM (through clang) doesn't distinguish between -fpic
                    and -fPIC
           Product: libraries
           Version: trunk
          Hardware: Macintosh
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: chmeeedalf at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Clang has preliminary support for -fpic vs -fPIC, but the flag is not
propagated to the LLVM libraries in any way.  A quick code check shows it
enabling flag '-pic-level' setting it to 1 or 2 (1 for -fpic, 2 for -fPIC).

The distinction between -fpic and -fPIC is relevant to RISC architectures
primarily, in my use case it's PowerPC (32-bit).

-- 
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/20140721/d8e00b75/attachment.html>


More information about the llvm-bugs mailing list