[llvm-bugs] [Bug 34671] New: Triple-prefixed clang symlink ignores -target flag
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Sep 19 09:01:04 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34671
Bug ID: 34671
Summary: Triple-prefixed clang symlink ignores -target flag
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: arichardson.kde at gmail.com
CC: llvm-bugs at lists.llvm.org
I recently merged the latest upstream changes into our fork of clang and
noticed that clang now ignores the -target flag if it is invoked as
*-*-*-clang:
./mips64-unknown-freebsd-clang -target x86_64-unknown-freebsd -### foo.c
clang version 6.0.0 (https://github.com/llvm-mirror/clang.git
e7476fadc94b87293e7192c419125cf446d454ce)
(https://github.com/llvm-mirror/llvm.git
f4b98addfb8646cf3aee4d3f6f498febbc54d99d)
Target: mips64-unknown-freebsd
Thread model: posix
InstalledDir: /local/scratch/alr48/cheri/build/upstream-llvm-build/bin/.
"/local/scratch/alr48/cheri/build/upstream-llvm-build/bin/clang-6.0" "-cc1"
"-triple" "mips64-unknown-freebsd" "-S" "-disable-free" "-main-file-name"
"foo.c" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix"
"-mdisable-fp-elim" "-no-integrated-as" "-mconstructor-aliases" "-target-cpu"
"mips64r2" "-target-feature" "-noabicalls" "-target-abi" "n64" "-mfloat-abi"
"hard" "-dwarf-column-info" "-debugger-tuning=gdb" "-resource-dir"
"/local/scratch/alr48/cheri/build/upstream-llvm-build/lib/clang/6.0.0"
"-fno-dwarf-directory-asm" "-fdebug-compilation-dir"
"/local/scratch/alr48/cheri/build/upstream-llvm-build/bin" "-ferror-limit" "19"
"-fmessage-length" "105" "-fobjc-runtime=gnustep" "-fdiagnostics-show-option"
"-fcolor-diagnostics" "-o" "/tmp/foo-2eb666.s" "-x" "c" "foo.c"
"/usr/bin/as" "-march" "mips64r2" "-mabi" "64" "-EB" "-KPIC" "-o"
"/tmp/foo-740c51.o" "/tmp/foo-2eb666.s"
"/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1"
"--enable-new-dtags" "-o" "a.out" "crt1.o" "crti.o" "crtbegin.o" "-L/usr/lib"
"/tmp/foo-740c51.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc"
"-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "crtend.o" "crtn.o"
I would expect this to target x86_64 and not mips64.
--
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/20170919/02e111dd/attachment.html>
More information about the llvm-bugs
mailing list