diff mbox series

rs6000: Add Rust support to traceback table

Message ID f80f540e394e87ac70349bad109bfc4b465c7c98.1671310804.git.segher@kernel.crashing.org
State New
Headers show
Series rs6000: Add Rust support to traceback table | expand

Commit Message

Segher Boessenkool Dec. 17, 2022, 9:01 p.m. UTC
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.

Committed.


Segher


2022-12-17  Segher Boessenkool  <segher@kernel.crashing.org>

	* config/rs6000/rs6000-logue.cc (rs6000_output_function_epilogue):
	Handle GNU Rust for the tbtab lang field.
---
 gcc/config/rs6000/rs6000-logue.cc | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/gcc/config/rs6000/rs6000-logue.cc b/gcc/config/rs6000/rs6000-logue.cc
index 3621cb501c70..669a2583402a 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")