From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1039 invoked by alias); 20 Dec 2014 11:46:03 -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 1009 invoked by uid 48); 20 Dec 2014 11:45:59 -0000 From: "mikpelinux at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/64364] gcc ICE on min() on Intel Sandy Bridge CPU if compiler built on Haswell Date: Sat, 20 Dec 2014 11:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mikpelinux at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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: 2014-12/txt/msg02446.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64364 --- Comment #2 from Mikael Pettersson --- Re-run g++ on the testcase with the -v flag, note the command line for cc1plus, run cc1plus from gdb with that command line, and show us the faulting instruction and what code/function it occurs in. You didn't use --with-arch=native, which is good, but I suspect that your gmp etc may have been built with Haswell-specific code. For this use case, you need to explicitly control how the support libraries are built (i.e. choose a compatible --build triplet).