From patchwork Mon May 18 16:22:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandra Loosemore X-Patchwork-Id: 473507 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 05A8C14029C for ; Tue, 19 May 2015 02:23:42 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=uAm8gk9Q; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; q=dns; s=default; b=e8lIym4MCLpthwXq4RidZ0C9TUR4ZmmWeJX8RuggLZd 7ACYyO7l732OR/9I5+4Z4Vs8ZWVYWF26vFofm6E2l8OOrtLKlx8ghgGZs1lOz+OU BFk+PK4eoJKMb+xDfvJm5ct4n5ecNoLxnxGv+QdSpuF4/BjLHh3Nw1xo0achGWUU = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; s=default; bh=KJn8TK6f+ah/pPAGJCPyHC5y+EU=; b=uAm8gk9QRyiEYdsxk s2Wx4YqcfC4VOEnSNbvDrwSYw7rsgyWjBnI2aGyqlfDJxp3mGkN/ieS7PkOvOzB7 aCDwNOp6EcOlcJrrjvyj06qVOkJsTOLgO6PCG5QL2NFbKhEt7TrdxYPK2DA+taL8 y+lGPp3UMYKiBomnrPtKOlh/CE= Received: (qmail 38413 invoked by alias); 18 May 2015 16:23:32 -0000 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 Received: (qmail 38402 invoked by uid 89); 18 May 2015 16:23:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 18 May 2015 16:23:30 +0000 Received: from svr-orw-fem-02x.mgc.mentorg.com ([147.34.96.206] helo=SVR-ORW-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1YuNp8-0003FJ-OW from Sandra_Loosemore@mentor.com ; Mon, 18 May 2015 09:23:26 -0700 Received: from [IPv6:::1] (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.3.224.2; Mon, 18 May 2015 09:23:24 -0700 Message-ID: <555A11B4.8020605@codesourcery.com> Date: Mon, 18 May 2015 10:22:12 -0600 From: Sandra Loosemore User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: GCC Patches CC: Alan Modra , David Edelsohn Subject: [patch, gcc 5 regression] re-enable biarch for powerpc-linux-gnu We've found that configuring a powerpc-linux-gnu cross toolchain with --enable-targets=all no longer enables -m64 support in GCC 5, due to the patch for PR target/65286. (We want to build with a -m64 multilib, in particular.) The attached patch seems to fix the breakage, but I'm not sure that it might not break some other configuration. If this isn't the right fix, can one of the target experts suggest a better one? Here's a link to the discussion of the patch that caused the breakage: https://gcc.gnu.org/ml/gcc-patches/2015-03/msg00321.html -Sandra Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 449971) +++ gcc/config.gcc (working copy) @@ -2376,6 +2379,7 @@ powerpc*-*-linux*) maybe_biarch=${cpu_is_64bit} case ${enable_targets} in *powerpc64*) maybe_biarch=yes ;; + all) maybe_biarch=yes ;; esac case ${target} in powerpc64*-*-linux*spe* | powerpc64*-*-linux*paired*)