[llvm-dev] [RFR] JDK-8156980: Hotspot build doesn't have -std=gnu++98 gcc option (original) (raw)
Martin Buchholz via llvm-dev llvm-dev at lists.llvm.org
Sat Sep 8 13:25:45 PDT 2018
- Previous message: [llvm-dev] [RFR] JDK-8156980: Hotspot build doesn't have -std=gnu++98 gcc option
- Next message: [llvm-dev] error: reference to 'Optional' is ambiguous building with gcc-4.9.3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
It would be awesome to use the sanitizers to find native code bugs in openjdk, but it seems like a serious project. Here at Google we are doing our small part by improving support for clang on Linux.
On Wed, Sep 5, 2018 at 6:17 PM, Leslie Zhai <zhaixiang at loongson.cn> wrote:
It might be UBSan false positive :) What about ASan? https://bugs.openjdk.java.net/browse/JDK-8189800
在 2018年09月06日 09:12, Martin Buchholz 写道: it's difficult to use llvm tools like sanitizers on openjdk sources, because of the "cheating" - relying on undefined behavior, and the JIT.
On Wed, Sep 5, 2018 at 6:09 PM, Leslie Zhai <zhaixiang at loongson.cn_ _<mailto:zhaixiang at loongson.cn>> wrote: Hi Martin, Thanks for your response! I haven't tested compiling OpenJDK 12-dev with LLVM toolchain, perhaps the issue had been fixed already, because clang treat invalid argument '-std=gnu++98' not allowed with 'C' as error. It is better only apply EXTRACFLAGS to C without EXTRACXXFLAGS. Furthermore, I just have interest, did you use clang analyzer, sanitizer and libfuzzer towards hotspot and jdk native library? Thanks!
在 2018年09月06日 02:10, Martin Buchholz 写道: We seem to have some confusion about flags for C vs. flags for C++. Most flags for most toolchains apply to both C and C++, so it's understandable that we want to unify them. But some flags, notably -std, are language-specific. We have both EXTRACFLAGS and EXTRACXXFLAGS, so we should expect EXTRACFLAGS to only apply to C. -- Regards, Leslie Zhai
-- Regards, Leslie Zhai -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180908/cb5a39b1/attachment.html>
- Previous message: [llvm-dev] [RFR] JDK-8156980: Hotspot build doesn't have -std=gnu++98 gcc option
- Next message: [llvm-dev] error: reference to 'Optional' is ambiguous building with gcc-4.9.3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]