Commit d2c5e4c9 by David Malcolm Committed by David Malcolm

rs6000, jit: Unbreak libgccjit on ppc (rs6000_output_function_epilogue)

gcc/ChangeLog
	* config/rs6000/rs6000.c (rs6000_output_function_epilogue):
	Support the JIT by using 0 as the language type.

From-SVN: r220065
parent 818424b2
2015-01-23 David Malcolm <dmalcolm@redhat.com>
* config/rs6000/rs6000.c (rs6000_output_function_epilogue):
Support the JIT by using 0 as the language type.
2015-01-23 Vladimir Makarov <vmakarov@redhat.com> 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
PR target/64317 PR target/64317
......
...@@ -25513,11 +25513,12 @@ rs6000_output_function_epilogue (FILE *file, ...@@ -25513,11 +25513,12 @@ rs6000_output_function_epilogue (FILE *file,
use language_string. use language_string.
C is 0. Fortran is 1. Pascal is 2. Ada is 3. C++ is 9. C is 0. Fortran is 1. Pascal is 2. Ada is 3. C++ is 9.
Java is 13. Objective-C is 14. Objective-C++ isn't assigned Java is 13. Objective-C is 14. Objective-C++ isn't assigned
a number, so for now use 9. LTO and Go aren't assigned numbers a number, so for now use 9. LTO, Go and JIT aren't assigned numbers
either, so for now use 0. */ either, so for now use 0. */
if (lang_GNU_C () if (lang_GNU_C ()
|| ! strcmp (language_string, "GNU GIMPLE") || ! strcmp (language_string, "GNU GIMPLE")
|| ! strcmp (language_string, "GNU Go")) || ! strcmp (language_string, "GNU Go")
|| ! strcmp (language_string, "libgccjit"))
i = 0; i = 0;
else if (! strcmp (language_string, "GNU F77") else if (! strcmp (language_string, "GNU F77")
|| ! strcmp (language_string, "GNU Fortran")) || ! strcmp (language_string, "GNU Fortran"))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment