From patchwork Fri May 25 18:22:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 161393 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 C1376B6EE7 for ; Sat, 26 May 2012 04:23:05 +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=1338574986; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:From:To:Subject:Date:Message-ID:User-Agent: MIME-Version:Content-Type:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=J48lssGPdfe6LtiZD1FhSwbXyPQ=; b=F9nXZAcAAOqJHjF 2/R1wrDiaAaOdHWXfPDc2uOSNNQ8VghuatZQ9UyVUnuROcHhvif4sdg49laJSl73 Hqxfr7uRPH+OG0rEreDsb0r0xMYoj4JTvJ+s3UXWF/byvRx4QufjZNXbRupUp7ek 3zYkFqLhBJcXVfxL/HmURk68aRW8= 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:X-Google-DKIM-Signature:Received:Received:Received:From:To:Subject:Date:Message-ID:User-Agent:MIME-Version:Content-Type:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=YfEEIqRDoyyjebb3trNs0JT/QbepDM7qFlwCLXgR9h9JOWBxELntaBlaYAYk3+ EvTsa0qYzNhypOaTMH1sHrKbraUV2kw/ld75g+fpIEQle4ocZm6WcxTrAvX+Ho7E A7OogpqvE2H7HW1y/Ou07FJbKZP1rlmh6YpocRub0uqd4=; Received: (qmail 8760 invoked by alias); 25 May 2012 18:23:00 -0000 Received: (qmail 8751 invoked by uid 22791); 25 May 2012 18:23:00 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, T_RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f47.google.com (HELO mail-pz0-f47.google.com) (209.85.210.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 May 2012 18:22:47 +0000 Received: by dalh21 with SMTP id h21so1524089dal.20 for ; Fri, 25 May 2012 11:22:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type:x-gm-message-state; bh=adowfzJd1RCeAVhs56kjv4uK4YElv99mhzllon2T+Nc=; b=HPkmQBavlPMnpW92nEraox0pgPTxnlBPm89zx6Yvz5SDU1WMOUT3PWG4zQ0BUYNg8L wl+RExFWoXF0oV7oXyedzUFkIYBb7KSVQKZJGvzBVYGb2joFV+FfMqYCADlADmdorC08 QyMVrBn4++063xMpU0+978Lkxathatu94CMGnvkzJkbpAY/yqwyUkCErV3AF+V0pqmez EsiU2Cp3GFdmMUdCx4WLGOJve+YJM2qJtS63ll0mfS2zp323EVDVHE/aoIDMj8xpsmO+ JLuM/N6ENblTjjueW8xhBdLU/h0Aplnu3Etc63/nLx3yZWuINZ3hVrKp/Z/DGhTNEVYI dajA== Received: by 10.68.242.162 with SMTP id wr2mr35130969pbc.125.1337970165925; Fri, 25 May 2012 11:22:45 -0700 (PDT) Received: by 10.68.242.162 with SMTP id wr2mr35130951pbc.125.1337970165718; Fri, 25 May 2012 11:22:45 -0700 (PDT) Received: from coign.google.com ([2620:0:1000:2301:f2de:f1ff:fe40:72a8]) by mx.google.com with ESMTPS id rv5sm9785018pbc.56.2012.05.25.11.22.45 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 25 May 2012 11:22:45 -0700 (PDT) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: libgo patch committed: Fix cast error Date: Fri, 25 May 2012 11:22:44 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmnlgnsT814GHGVqxolL854gOxpNRVtEBStQ/mi9vHWMH1VcAsrhRySHPaLmc4R/B+52w759bNXdntVSYPoXN2ixsqrcGTVQDXUXMXBnSUJLSNFpffXoZHas0FxgNiZP91vOEkwPpqN+7B662dEhN/wkigh+Q== 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 This patch to libgo fixes a cast error in the new file print.c that shows up on 32-bit systems. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline and 4.7 branch. Ian diff -r ae91b408310f libgo/runtime/print.c --- a/libgo/runtime/print.c Thu May 24 14:06:08 2012 -0700 +++ b/libgo/runtime/print.c Fri May 25 11:20:33 2012 -0700 @@ -136,7 +136,7 @@ runtime_printpc(void *p __attribute__ ((unused))) { runtime_prints("PC="); - runtime_printhex((uint64)runtime_getcallerpc(p)); + runtime_printhex((uint64)(uintptr)runtime_getcallerpc(p)); } void