public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hubicka at kam dot mff.cuni.cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/103636] [12 Regression] Clang build fails with -flto -fno-strict-aliaisng -flifetime-dse=1 -fprofile-generate
Date: Fri, 10 Dec 2021 10:36:14 +0000	[thread overview]
Message-ID: <bug-103636-4-WBOU5gXRYR@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-103636-4@http.gcc.gnu.org/bugzilla/>

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.

  parent reply	other threads:[~2021-12-10 10:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-09 19:24 [Bug ipa/103636] New: " hubicka at gcc dot gnu.org
2021-12-09 19:27 ` [Bug ipa/103636] " hubicka at gcc dot gnu.org
2021-12-09 19:34 ` marxin at gcc dot gnu.org
2021-12-09 19:37 ` marxin at gcc dot gnu.org
2021-12-09 19:49 ` hubicka at gcc dot gnu.org
2021-12-10  0:31 ` [Bug ipa/103636] [12 Regression] " pinskia at gcc dot gnu.org
2021-12-10 10:24 ` marxin at gcc dot gnu.org
2021-12-10 10:28 ` marxin at gcc dot gnu.org
2021-12-10 10:36 ` hubicka at kam dot mff.cuni.cz [this message]
2021-12-13 13:58 ` cvs-commit at gcc dot gnu.org
2021-12-13 13:59 ` marxin at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-103636-4-WBOU5gXRYR@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).