From patchwork Fri Mar 27 10:24:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tbsaunde+gcc@tbsaunde.org X-Patchwork-Id: 455375 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 9AE7014012F for ; Fri, 27 Mar 2015 21:24:53 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=bMIE2Z7+; dkim-adsp=none (unprotected policy); 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:from :to:cc:subject:date:message-id; q=dns; s=default; b=p3ENlxqZe3JF /opKhCETEzhTUNQpWmN8jAIRnD0I1DbNIwP9LI5iRbCGzG3zLqs2DgzNYSL01Ixq 4c8IYRt/VAPhG/lvhFV91sI1EwGNcxS+QHOHD9kjWNG5uyyzRGtpyjeJgViy6R0k 4dccHfa4CaDz3XyafmxPHfkEAkDLOo4= 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:from :to:cc:subject:date:message-id; s=default; bh=Kb0jYFQTKaIlB8U4U8 VWDBzLA8Q=; b=bMIE2Z7+gI9zdj4Nr6J3n7EC1a3g3K942azxB5RhF20EF1Px0f KkL2w/UBFbHRQZbl+MhyLzBUj40XPOy8/0DPXRirAJDLwVsRyK/qqRi6VQwECQCV f009BwoHC0C9N7w+gJUuohmnKTyIt4VLygcC387nXs4AX9HOIHk/uVQ10= Received: (qmail 85285 invoked by alias); 27 Mar 2015 10:24:46 -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 85274 invoked by uid 89); 27 Mar 2015 10:24:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: paperclip.tbsaunde.org Received: from tbsaunde.org (HELO paperclip.tbsaunde.org) (66.228.47.254) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Mar 2015 10:24:44 +0000 Received: from iceball.home (pool-72-82-245-189.cmdnnj.fios.verizon.net [72.82.245.189]) by paperclip.tbsaunde.org (Postfix) with ESMTPSA id 9B526C072; Fri, 27 Mar 2015 10:24:42 +0000 (UTC) From: tbsaunde+gcc@tbsaunde.org To: gcc-patches@gcc.gnu.org Cc: Trevor Saunders Subject: [PATCH] fix building for alpha-dec-vms Date: Fri, 27 Mar 2015 06:24:30 -0400 Message-Id: <1427451870-16466-1-git-send-email-tbsaunde+gcc@tbsaunde.org> X-IsSubscribed: yes From: Trevor Saunders Hi, Unfortunately when testing r217869 I didn't realize the modified code in alpha.c was only used for some alpha targets. So testing alpha-linux wasn't enough or even really useful :( I tested cc1 for alpha-dec-vms now builds as discussed before make all-gcc is still broken because the vms targets don't support c++ and don't say it shouldn't be built in config.gcc. Is this ok? Trev diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 37258ad..fac42d6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-03-27 Trevor Saunders + + * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to + alpha_links **. + (alpha_write_one_linkage): Correct typo. + 2015-03-27 Marek Polacek PR sanitizer/65583 diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 554ff09..67c15dc 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -9665,7 +9665,7 @@ alpha_use_linkage (rtx func, bool lflag, bool rflag) if (cfun->machine->links) { /* Is this name already defined? */ - alpha_links *slot = cfun->machine->links->get (name); + alpha_links **slot = cfun->machine->links->get (name); if (slot) al = *slot; } @@ -9711,7 +9711,7 @@ alpha_use_linkage (rtx func, bool lflag, bool rflag) } static int -alpha_write_one_linkage (const char *name, alpha_links *link, FILE *steam) +alpha_write_one_linkage (const char *name, alpha_links *link, FILE *stream) { ASM_OUTPUT_INTERNAL_LABEL (stream, XSTR (link->linkage, 0)); if (link->rkind == KIND_CODEADDR)