[Bug ipa/103636] [12 Regression] Clang build fails with -flto -fno-strict-aliaisng -flifetime-dse=1 -fprofile-generate
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103636 Martin Liška changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #9 from Martin Liška --- Fixed.
[Bug ipa/103636] [12 Regression] Clang build fails with -flto -fno-strict-aliaisng -flifetime-dse=1 -fprofile-generate
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103636 --- Comment #8 from CVS Commits --- The master branch has been updated by Martin Liska : https://gcc.gnu.org/g:9eb8785b3fa3a180bd216cf68b53f1621628efc6 commit r12-5931-g9eb8785b3fa3a180bd216cf68b53f1621628efc6 Author: Martin Liska Date: Fri Dec 10 11:40:54 2021 +0100 inline: fix ICE with -fprofile-generate PR ipa/103636 gcc/ChangeLog: * ipa-inline.c (can_inline_edge_p): Move logic checking no_profile_instrument_function logic to ... (can_early_inline_edge_p): ... here.
[Bug ipa/103636] [12 Regression] Clang build fails with -flto -fno-strict-aliaisng -flifetime-dse=1 -fprofile-generate
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103636 --- Comment #7 from hubicka at kam dot mff.cuni.cz --- I use cmake -G "Unix Makefiles" /home/jh/llvm-project/llvm -DCLANG_TABLEGEN=/home/jh/llvm-project/llvm/out/stage1/bin/clang-tblgen -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=/home/jh/trunk-install/bin/g++ -DCMAKE_C_COMPILER=/home/jh/trunk-install/bin/gcc -DLL VM_BINUTILS_INCDIR=/home/jh/binutils-install/include/ -DLLVM_BUILD_RUNTIME=No -DLLVM_ENABLE_PROJECTS="clang;compiler-rt;lld" -DLL VM_TABLEGEN=/home/jh/llvm-project/llvm/out/stage1/bin/llvm-tblgen -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_C_FLAGS_RELEASE="-O2 -fno-s trict-aliasing -flifetime-dse=1 -flto=auto -fno-semantic-interposition -fprofile-generate -DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="- O2 -flto=auto -fno-strict-aliasing -flifetime-dse=1 -fno-semantic-interposition -fprofile-generate -DNDEBUG" I already checked that with that hunk in can_inline_edge_p commented out the clang build and training run works. Sadly clang segfaults with either strict aliasing or lifetime-dse enabled.
[Bug ipa/103636] [12 Regression] Clang build fails with -flto -fno-strict-aliaisng -flifetime-dse=1 -fprofile-generate
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103636 --- Comment #6 from Martin Liška --- Got it, explained here: https://llvm.org/docs/CMake.html#frequently-used-cmake-variables
[Bug ipa/103636] [12 Regression] Clang build fails with -flto -fno-strict-aliaisng -flifetime-dse=1 -fprofile-generate
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103636 --- Comment #5 from Martin Liška --- Btw. how do you inject the CXXLFAGS to LLVM's cmake?
[Bug ipa/103636] [12 Regression] Clang build fails with -flto -fno-strict-aliaisng -flifetime-dse=1 -fprofile-generate
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103636 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Target Milestone|--- |12.0 Summary|Clang build fails with |[12 Regression] Clang build |-flto -fno-strict-aliaisng |fails with -flto |-flifetime-dse=1|-fno-strict-aliaisng |-fprofile-generate |-flifetime-dse=1 ||-fprofile-generate