From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15975 invoked by alias); 6 Apr 2012 12:24:18 -0000 Received: (qmail 15966 invoked by uid 22791); 6 Apr 2012 12:24:17 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED 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, 06 Apr 2012 12:23:51 +0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/52878] [4.8 regression] bootstrap failure: "MASK_LONG_DOUBLE_128" redefined Date: Fri, 06 Apr 2012 12:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: 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-04/txt/msg00410.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52878 --- Comment #3 from H.J. Lu 2012-04-06 12:23:46 UTC --- (In reply to comment #1) > Created attachment 27102 [details] > A patch > > This patch works for Linux/sparc. But it may not work > for all sparc targets which don't include long-double-switch.opt. This addition: diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index a1919b4..a04f8ef 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -53,6 +53,14 @@ along with GCC; see the file COPYING3. If not see #endif /* IN_LIBGCC2 */ #define TARGET_ARCH64 (! TARGET_ARCH32) +#ifndef TARGET_LONG_DOUBLE_128 +#define TARGET_LONG_DOUBLE_128 0 +#endif + +#ifndef MASK_LONG_DOUBLE_128 +#define MASK_LONG_DOUBLE_128 0 +#endif + /* Code model selection in 64-bit environment. The machine mode used for addresses is 32-bit wide: is also needed.