From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23964 invoked by alias); 20 Jan 2015 06:32:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 23924 invoked by uid 48); 20 Jan 2015 06:32:47 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/63576] [5 Regression] ICE : in ipa_merge_profiles, at ipa-utils.c:540 during Firefox LTO/PGO build Date: Tue, 20 Jan 2015 06:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg01961.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63576 --- Comment #9 from Markus Trippelsdorf --- I will give your patch a try. In case it might help here's the script I use for LTO/PGO (as you can see it starts the instrumented browser. I then just visit a couple of webpages to train it): markus@x4 mozilla-central % cat profile_build #!/bin/zsh mv .mozconfig .mozconfig_tmp && cp .mozconfig_profile_gen .mozconfig && nice -n 19 make -f client.mk && killall firefox /var/tmp/moz-build-dir/dist/bin/firefox && rm /var/tmp/moz-build-dir/**/Makefile && rm /var/tmp/moz-build-dir/**/*.o && rm /var/tmp/moz-build-dir/**/config.status && rm /var/tmp/moz-build-dir/**/configure.pkl && cp .mozconfig_profile_use .mozconfig && nice -n 19 make -f client.mk && make DESTDIR=/var/tmp/firefox-destdir -C /var/tmp/moz-build-dir install && rm -fr /var/tmp/moz-build-dir mv .mozconfig_tmp .mozconfig Where .mozconfig_profile_gen contains: export CFLAGS="-march=native -fno-semantic-interposition -ffunction-sections -fdata-sections" export CXXFLAGS="-march=native -fno-semantic-interposition -fprofile-generate -ffunction-sections -fdata-sections" and .mozconfig_profile_use contains: export CFLAGS="-march=native -fno-semantic-interposition -ffunction-sections -fdata-sections" export CXXFLAGS="-march=native -fno-semantic-interposition -flto=4 -fdevirtualize-at-ltrans -fprofile-use -fprofile-correction -ffunction-sections -fdata-sections"