This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][LTO] Fix PPC
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Diego Novillo <dnovillo at google dot com>
- Date: Tue, 29 Sep 2009 14:51:00 +0200 (CEST)
- Subject: [PATCH][LTO] Fix PPC
This fixes the PPC backend to learn about GNU GIMPLE.
Richard.
2009-09-29 Richard Guenther <rguenther@suse.de>
* config/rs6000/rs6000.c (rs6000_output_function_epilogue):
Handle LTO.
Index: gcc/config/rs6000/rs6000.c
===================================================================
*** gcc/config/rs6000/rs6000.c (revision 152269)
--- gcc/config/rs6000/rs6000.c (working copy)
*************** rs6000_output_function_epilogue (FILE *f
*** 20052,20059 ****
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. */
! if (! strcmp (language_string, "GNU C"))
i = 0;
else if (! strcmp (language_string, "GNU F77")
|| ! strcmp (language_string, "GNU Fortran"))
--- 20052,20061 ----
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 isn't assigned a number either,
! so for now use 0. */
! if (! strcmp (language_string, "GNU C")
! || ! strcmp (language_string, "GNU GIMPLE"))
i = 0;
else if (! strcmp (language_string, "GNU F77")
|| ! strcmp (language_string, "GNU Fortran"))