Both Linux and kFreeBSD use glibc, so follow similiar code paths.
Add isTargetGlibc to check for this, and use it instead of isTargetLinux
in a few places.
Fixes PR22248 for kFreeBSD.
Paths
| Differential D19104
[X86] Extend some Linux special cases to cover kFreeBSD. ClosedPublic Authored by • koriakin on Apr 14 2016, 4:01 AM. Tokens "Like" token, awarded by mohamed.maalej.
Details Summary Both Linux and kFreeBSD use glibc, so follow similiar code paths. Fixes PR22248 for kFreeBSD.
Diff Detail
Event Timeline• koriakin updated this object. Comment Actions Please can you recreate as a full diff to get more context? http://llvm.org/docs/Phabricator.html explains how you normally should aim to create your diff with something like svn diff --diff-cmd=diff -x -U999999 Comment Actions
Uh? diff #2 already has full context, do you want to see full context for the obsolete diff too (I messed up on that one)? Comment Actions
My mistake - was looking at an old tab somehow.
This revision is now accepted and ready to land.May 5 2016, 3:34 AM Closed by commit rL268624: [X86] Extend some Linux special cases to cover kFreeBSD. (authored by • koriakin). · Explain WhyMay 5 2016, 4:42 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 56029 include/llvm/ADT/Triple.h
lib/Target/X86/X86ISelDAGToDAG.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86Subtarget.h
lib/Target/X86/X86Subtarget.cpp
test/CodeGen/X86/stack-align2.ll
test/CodeGen/X86/stack-protector-target.ll
|
Add comments detailing the glibc requirement? A reference if possible similar to the diff anove in X86ISelDAGToDAG.cpp.