- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Mar 4 2018
Feb 27 2018
Feb 25 2018
Feb 24 2018
Feb 17 2018
In D14242#298980, @emaste wrote:In D14242#298846, @dim wrote:Maybe a general remark, will this MK_RETPOLINE option be separate from a similar option for userland? Also, does this take care of adding the required link flags when linking the kernel?
Would you suggest we rename this one MK_KERNEL_RETPOLINE and introduce a separate MK_USERLAND_RETPOLINE?
Linker flags are required only when linking dynamic executables, to generate a retpoline-style PLT.
Feb 16 2018
Feb 13 2018
Feb 8 2018
Feb 7 2018
Maybe a general remark, will this MK_RETPOLINE option be separate from a similar option for userland? Also, does this take care of adding the required link flags when linking the kernel?
Feb 6 2018
This looks good to me, though at some version gcc and BFD ld will also support retpoline, right? We can add that later...
Feb 4 2018
Feb 2 2018
Yeah, upstream also dropped it from the default -Wextra flags, due to too many false positives, here: https://reviews.llvm.org/rL322901. This got merged to the 6.0 branch in https://reviews.llvm.org/rL322931, which came into our tree with rS328381. I think this should be no longer necessary.
Feb 1 2018
Jan 29 2018
Jan 28 2018
Jan 26 2018
In D14058#295314, @asomers wrote:In D14058#295310, @dim wrote:I don't see what the OSVERSION check is for? Since libc++ never defined __cpp_lib_make_unique, this can't have worked on earlier versions either. Why is this suddenly needed now, because we're defaulting to gnu++14? In that case you could also just crank down the standard to e.g. -std=gnu++11 or even lower.
The problem is that while __cpp_lib_make_unique isn't defined, std::make_unique is. That causes error: call to 'make_unique' is ambiguous errors, because fish defines its own make_unique if the standard library doesn't provide one. I'm guessing that earlier versions of Clang didn't provide make_unique, at least not with our default --std option. Does libc++ have a different feature test macro for "supports all C++14 features" or something like that?
I don't see what the OSVERSION check is for? Since libc++ never defined __cpp_lib_make_unique, this can't have worked on earlier versions either. Why is this suddenly needed now, because we're defaulting to gnu++14? In that case you could also just crank down the standard to e.g. -std=gnu++11 or even lower.
I'm not entirely sure that this macro is defined by any C++ standard, though there appears to be a "recommendation" note that refers to it. It would be easier to just test for the C++ version instead, I think. But if #if 1 also works, I'm fine with it.