From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1383) id 68BA3385B188; Sat, 17 Dec 2022 20:57:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 68BA3385B188 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671310678; bh=g9rIxPbsx5Y0PBCZl8v446xJFgnywlsJgURC20870Ko=; h=From:To:Subject:Date:From; b=HCJOUji/l1mK2+057E8/GCUyeLrJ5ZYVhjd6OUgSQAj23pDbjTEtSmR2yGojC77mt 8hEBVekWa6msqCOFHeCw5HKtF1Wf/D5BKRKhEMj64KA7y4cct+iCpDs2gXftEmrJ5/ rkorJWBomExd1UAEepSoF+PMAfUSVQaisukVj+OI= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Segher Boessenkool To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-4762] rs6000: Add Rust support to traceback table X-Act-Checkin: gcc X-Git-Author: Segher Boessenkool X-Git-Refname: refs/heads/master X-Git-Oldrev: 982629bea416df976686467f235e09cb1a5531cc X-Git-Newrev: f80f540e394e87ac70349bad109bfc4b465c7c98 Message-Id: <20221217205758.68BA3385B188@sourceware.org> Date: Sat, 17 Dec 2022 20:57:58 +0000 (GMT) List-Id: https://gcc.gnu.org/g:f80f540e394e87ac70349bad109bfc4b465c7c98 commit r13-4762-gf80f540e394e87ac70349bad109bfc4b465c7c98 Author: Segher Boessenkool Date: Sat Dec 17 20:48:54 2022 +0000 rs6000: Add Rust support to traceback table Use 0 for the "lang" identifier for Rust, just like we do for all other source languages without assigned language code (0 means "C"). Tested on powerpc64-linux. Without this patch there are ICEs galore in the gm2 testsuite for 64-bit Linux targets, and with the ptch there are just a few FAILs. 2022-12-17 Segher Boessenkool * config/rs6000/rs6000-logue.cc (rs6000_output_function_epilogue): Handle GNU Rust for the tbtab lang field. Diff: --- gcc/config/rs6000/rs6000-logue.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/config/rs6000/rs6000-logue.cc b/gcc/config/rs6000/rs6000-logue.cc index 3621cb501c7..669a2583402 100644 --- a/gcc/config/rs6000/rs6000-logue.cc +++ b/gcc/config/rs6000/rs6000-logue.cc @@ -5350,6 +5350,7 @@ rs6000_output_function_epilogue (FILE *file) || ! strcmp (language_string, "GNU GIMPLE") || ! strcmp (language_string, "GNU Go") || ! strcmp (language_string, "GNU D") + || ! strcmp (language_string, "GNU Rust") || ! strcmp (language_string, "libgccjit")) i = 0; else if (! strcmp (language_string, "GNU F77")