From patchwork Thu Dec 16 00:06:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 75707 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 6B90C1007D7 for ; Thu, 16 Dec 2010 11:06:25 +1100 (EST) Received: (qmail 6116 invoked by alias); 16 Dec 2010 00:06:23 -0000 Received: (qmail 6108 invoked by uid 22791); 16 Dec 2010 00:06:23 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, TW_NX, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Dec 2010 00:06:19 +0000 Received: (qmail 27355 invoked from network); 16 Dec 2010 00:06:17 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 16 Dec 2010 00:06:17 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1PT1MN-00020d-P0 for gcc-patches@gcc.gnu.org; Thu, 16 Dec 2010 00:06:15 +0000 Date: Thu, 16 Dec 2010 00:06:15 +0000 (UTC) From: "Joseph S. Myers" To: gcc-patches@gcc.gnu.org Subject: Fix powerpc-lynxos build Message-ID: MIME-Version: 1.0 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org In the course of testing another patch I found that powerpc-*-lynxos* included lynx.opt twice in extra_options and this broke the build. It's a bug in the options awk scripts that it breaks the build (through duplicate field declarations of fields generated internally to describe target options without variables explicitly given in the .opt files), but also clearly the .opt file should not be listed twice. I've committed this patch as obvious to remove the duplicate. Index: ChangeLog =================================================================== --- ChangeLog (revision 167883) +++ ChangeLog (working copy) @@ -1,3 +1,8 @@ +2010-12-16 Joseph Myers + + * config.gcc (powerpc-*-lynxos*): Don't add lynx.opt to + extra_options twice. + 2010-12-15 Joseph Myers * doc/tm.texi.in (US_SOFTWARE_GOFAST): Don't document. Index: config.gcc =================================================================== --- config.gcc (revision 167883) +++ config.gcc (working copy) @@ -2162,7 +2162,6 @@ tmake_file="t-lynx rs6000/t-lynx" extra_options="${extra_options} rs6000/sysv4.opt lynx.opt" extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" - extra_options="${extra_options} lynx.opt" thread_file=lynx gnu_ld=yes gas=yes