From patchwork Thu Jul 11 18:34:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 1130972 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-504944-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="XCu0u1IC"; dkim-atps=neutral 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 45l4Tc4pq6z9s7T for ; Fri, 12 Jul 2019 04:34:27 +1000 (AEST) 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=dCK1/GZdl9Jz WnA4F5hYFmSZ1j5Ylg5CT8jzJ9Huxsk+GaLKBw6VSTKnxdPoMJ12PcWCLPJIcKF/ Ar+VDoyBjP4OedVNHbiH1NR3Xj7/PuKVcSfhCphL0UJbt7WKWuoGBm/FB5rES7Ml ameZyNFRWED5UBXJpcllbVqQMd/Ed8w= 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=2y2cprLYnOtRt5l7Qn xn3cI6Uqk=; b=XCu0u1ICp3+JbqM1pF/odKGivRI1quB/Xaz072EtAmQAoML7I+ pApN76ve+VPOkDqYnxSmd6F1fxAbNUsi1+IwZHhyI0f8vcnuN06/PuVE4TW/ery6 +k+5dzDgJyylkhxSH09sg7eEBM+1giEVC8xGh/eKNg2Jlt6nkDvhhHOfc= Received: (qmail 89059 invoked by alias); 11 Jul 2019 18:34:19 -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 89050 invoked by uid 89); 11 Jul 2019 18:34:19 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT autolearn=ham version=3.3.1 spammy= X-HELO: gcc1-power7.osuosl.org Received: from gcc1-power7.osuosl.org (HELO gcc1-power7.osuosl.org) (140.211.15.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 11 Jul 2019 18:34:08 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 88BE812407F4; Thu, 11 Jul 2019 18:34:05 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH] rs6000: Handle Modula-2 in the traceback table Date: Thu, 11 Jul 2019 18:34:03 +0000 Message-Id: <5993e7a39ef09340ceceabf80f2b629881af92e0.1562866573.git.segher@kernel.crashing.org> X-IsSubscribed: yes This patch recognises Modula-2 as language for the traceback table, fixing the problem shown in https://gcc.gnu.org/ml/gcc-patches/2019-07/msg00848.html . Committing to trunk, and committing a variant to the 9 branch. Segher 2019-07-11 Segher Boessenkool * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue): Handle Modula-2. --- gcc/config/rs6000/rs6000-logue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/rs6000/rs6000-logue.c b/gcc/config/rs6000/rs6000-logue.c index 8454f96..8e8cf05 100644 --- a/gcc/config/rs6000/rs6000-logue.c +++ b/gcc/config/rs6000/rs6000-logue.c @@ -5287,6 +5287,8 @@ rs6000_output_function_epilogue (FILE *file) i = 1; else if (! strcmp (language_string, "GNU Ada")) i = 3; + else if (! strcmp (language_string, "GNU Modula-2")) + i = 8; else if (lang_GNU_CXX () || ! strcmp (language_string, "GNU Objective-C++")) i = 9;