Page MenuHomeFreeBSD

Build and enable LLVM's gold plugin.
ClosedPublic

Authored by rpaulo on Aug 7 2015, 6:52 PM.
Tags
None
Referenced Files
F103216560: D3335.id7766.diff
Fri, Nov 22, 8:03 AM
Unknown Object (File)
Thu, Nov 21, 5:38 AM
Unknown Object (File)
Wed, Nov 20, 11:42 AM
Unknown Object (File)
Wed, Nov 20, 7:08 AM
Unknown Object (File)
Wed, Nov 20, 12:34 AM
Unknown Object (File)
Tue, Nov 19, 4:31 PM
Unknown Object (File)
Mon, Nov 18, 11:44 PM
Unknown Object (File)
Fri, Nov 15, 12:49 AM
Subscribers
None

Details

Summary

Build and enable LLVM's gold plugin.

Test Plan

Passed poudriere bulk build with -t.

% cat t.c
int
main() {}
% clang37 -fuse-ld=gold -flto -v t.c
clang version 3.7.0 (tags/RELEASE_370/rc1)
Target: x86_64-unknown-freebsd11.0
Thread model: posix
 "/usr/local/llvm37/bin/clang-3.7" -cc1 -triple x86_64-unknown-freebsd11.0 -flto -emit-llvm-bc -disable-free -main-file-name t.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -v -dwarf-column-info -resource-dir /usr/local/llvm37/bin/../lib/clang/3.7.0 -fdebug-compilation-dir /home/rpaulo -ferror-limit 19 -fmessage-length 80 -mstackrealign -fobjc-runtime=gnustep -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/t-7c564e.o -x c t.c
clang -cc1 version 3.7.0 based upon LLVM 3.7.0 default target x86_64-unknown-freebsd11.0
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/llvm37/bin/../lib/clang/3.7.0/include
 /usr/include
End of search list.
 "/usr/local/bin/ld.gold" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=both --enable-new-dtags -o a.out /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib -plugin /usr/local/llvm37/bin/../lib/LLVMgold.so -plugin-opt=mcpu=x86-64 /tmp/t-7c564e.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rpaulo retitled this revision from to Build and enable LLVM's gold plugin..
rpaulo updated this object.
rpaulo edited the test plan for this revision. (Show Details)
rpaulo added reviewers: bapt, brooks.

Please add the required bits to the awk in the build-plist target at the end of the Makefile to generate pkg-plist. Otherwise this looks fine.

This revision was automatically updated to reflect the committed changes.