From d2c5e4c9c3b20522d7158ea88bd7859d9d2e4801 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 23 Jan 2015 23:02:25 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7766c196a4c..fb08101de98 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-01-23 David Malcolm + + * config/rs6000/rs6000.c (rs6000_output_function_epilogue): + Support the JIT by using 0 as the language type. + 2015-01-23 Vladimir Makarov PR target/64317 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index d836217444e..85eb0fd1b89 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -25513,11 +25513,12 @@ rs6000_output_function_epilogue (FILE *file, use language_string. 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 - 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. */ if (lang_GNU_C () || ! strcmp (language_string, "GNU GIMPLE") - || ! strcmp (language_string, "GNU Go")) + || ! strcmp (language_string, "GNU Go") + || ! strcmp (language_string, "libgccjit")) i = 0; else if (! strcmp (language_string, "GNU F77") || ! strcmp (language_string, "GNU Fortran")) -- 2.30.2