From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22857 invoked by alias); 8 Jun 2012 15:22:06 -0000 Received: (qmail 22844 invoked by uid 22791); 8 Jun 2012 15:22:05 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED,TW_AV X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 Jun 2012 15:21:53 +0000 From: "safety0ff.bugz at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libitm/53113] Build fails in x86_avx.cc if AVX disabled but supported by as (Solaris & Linux) Date: Fri, 08 Jun 2012 15:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libitm X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: safety0ff.bugz 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-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-06/txt/msg00464.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53113 safety0ff.bugz at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |safety0ff.bugz at gmail dot | |com --- Comment #1 from safety0ff.bugz at gmail dot com 2012-06-08 15:21:52 UTC --- I have this problem too. I'm using Gentoo x86_64, with GNU binutils 2.22 as well. My CPU does support AVX (Intel Sandy Bridge.) It is using the following flags: -g -march=native -mtune=generic -mno-avx -O2 -pipe It is a pain for me because Valgrind doesn't support AVX and compiling programs with my system/default gcc version ends up using the 4.7 libgcc_s.so at run time which will contain AVX code if I compile with AVX enabled.