From patchwork Fri Sep 28 11:30:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Tobler X-Patchwork-Id: 187798 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 21F4D2C00BF for ; Sat, 29 Sep 2012 01:08:25 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1349449706; h=Comment: DomainKey-Signature:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=vIIJR/HZ03wEP4l9bT3YqNkNk8U=; b=E8DJ3lSqaNET+d6 gTyi250jLAGaJjpQpT3Z/bhS9ediUMkTkqNMyMO8GkUg0k4XA1zy5DzgUPDsYcFz 8vADuXCWfv1S3QxvDrx4Wi1xKrWslRrz6vS9L1cGGNYf0b9e0S99Pjhora2MAZ2F ejxZM8GRHylBLGQh1dWd9DvkYSHA= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=WD0NMUuf3xJckpoIqrhN3rQoPi5YYnI19+EK7KO1OQcTHBE3dPDkwjcsBMkkSs BG1B/0dOSuexewv0Fv8xZs1mnmNOCdeUCELALdzw53IeWTsPkVaPoeQCSDnvmIVW UxtVwojsiHKAGXrCc91EUOW+S+5p5uj4ujU5lRBZ+YZY0=; Received: (qmail 32137 invoked by alias); 28 Sep 2012 15:08:18 -0000 Received: (qmail 32125 invoked by uid 22791); 28 Sep 2012 15:08:17 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, DATE_IN_PAST_03_06, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.fgznet.ch (HELO smtp.fgznet.ch) (81.92.96.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 28 Sep 2012 15:08:05 +0000 Received: from deuterium.andreas.nets (dhclient-91-190-14-19.flashcable.ch [91.190.14.19]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id q8SF7ws1066448 for ; Fri, 28 Sep 2012 17:08:03 +0200 (CEST) (envelope-from andreast-list@fgznet.ch) Message-ID: <50658A67.8090606@fgznet.ch> Date: Fri, 28 Sep 2012 13:30:47 +0200 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: GCC Patches Subject: [patch] fix cross build on powerpc*-*-freebsd X-IsSubscribed: yes 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 Hi, I didn't test building a cross compiler when I committed the port for powerpc64-*-freebsd. And now I struggled myself when I wanted to build an amd64-freebsd -> powerpc64-freebsd cross compiler. With the below patch I'm able to do so. Ok for trunk and 4.7 once I completed the test suite on both branches? TIA, Andreas 2012-09-28 Andreas Tobler * config.gcc: Replace 'host' with 'target' when configuring for powerpc64*-*-freebsd. tmake_file="${tmake_file} rs6000/t-freebsd64" Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 191819) +++ gcc/config.gcc (working copy) @@ -1919,7 +1919,7 @@ tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h" extra_options="${extra_options} rs6000/sysv4.opt" tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" - case ${host} in + case ${target} in powerpc64*) tm_file="${tm_file} rs6000/default64.h rs6000/freebsd64.h"