For building ghdl, the compiler needs to be patched to know the "vhdl" language. Could that patch be applied to the upstream GCC, so that not everybody needs to patch GCC to build ghdl?

Thanks, Matthias
Make vhdl known to the PPC backend. See 

see https://github.com/ghdl/ghdl/blob/master/doc/development/building/GCC.rst

--- a/gcc/config/rs6000/rs6000-logue.cc
+++ b/gcc/config/rs6000/rs6000-logue.cc
@@ -5341,7 +5341,8 @@ rs6000_output_function_epilogue (FILE *f
 	  || ! strcmp (language_string, "GNU Go")
 	  || ! strcmp (language_string, "GNU D")
 	  || ! strcmp (language_string, "GNU Rust")
-	  || ! strcmp (language_string, "libgccjit"))
+	  || ! strcmp (language_string, "libgccjit")
+	  || ! strcmp (language_string, "vhdl"))
 	i = 0;
       else if (! strcmp (language_string, "GNU F77")
 	       || lang_GNU_Fortran ())

Reply via email to