[LLVMbugs] [Bug 10257] New: clang -arch FOO is ignored

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jul 3 15:07:49 PDT 2011


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

           Summary: clang -arch FOO is ignored
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: c-d.hailfinger.devel.2006 at gmx.net
                CC: llvmbugs at cs.uiuc.edu


compiler at p35:> clang -arch ppc test.c 
clang-3: warning: argument unused during compilation: '-arch ppc'

As mentioned in the clang man page and in
http://clang.llvm.org/docs/DriverInternals.html, "clang -arch FOO" should allow
specifying the target architecture.


More info:

compiler at p35:> clang -ccc-print-options -arch ppc test.c 
Option 0 - Name: "-ccc-print-options", Values: {}
Option 1 - Name: "-arch", Values: {"ppc"}
Option 2 - Name: "<input>", Values: {"test.c"}
compiler at p35:> clang -ccc-print-bindings -arch ppc test.c 
# "i386-pc-linux-gnu" - "clang", inputs: ["test.c"], output: "/tmp/cc-aluQvo.o"
# "i386-pc-linux-gnu" - "linux::Link", inputs: ["/tmp/cc-aluQvo.o"], output:
"a.out"
clang-3: warning: argument unused during compilation: '-arch ppc'
compiler at p35:> clang --version
SUSE Linux clang version 3.0 (trunk 132667) (based on LLVM 3.0)
Target: i386-pc-linux-gnu
Thread model: posix

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list