Patchwork PR 47487 powerpc64 ICE building libgo

login
register
mail settings
Submitter Alan Modra
Date March 25, 2011, 3:15 p.m.
Message ID <20110325151522.GN13754@bubble.grove.modra.org>
Download mbox | patch
Permalink /patch/88388/
State New
Headers show

Comments

Alan Modra - March 25, 2011, 3:15 p.m.
Bootstrapped etc. powerpc64-linux.  OK mainline?

	PR target/47487
	* config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
	GNU Go in traceback table.
David Edelsohn - March 25, 2011, 7:24 p.m.
On Fri, Mar 25, 2011 at 11:15 AM, Alan Modra <amodra@gmail.com> wrote:
> Bootstrapped etc. powerpc64-linux.  OK mainline?
>
>        PR target/47487
>        * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
>        GNU Go in traceback table.

Okay.

Thanks, David

Patch

Index: gcc/config/rs6000/rs6000.c
===================================================================
--- gcc/config/rs6000/rs6000.c	(revision 171446)
+++ gcc/config/rs6000/rs6000.c	(working copy)
@@ -22061,10 +22150,11 @@  rs6000_output_function_epilogue (FILE *f
 	 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.  */
+	 a number, so for now use 9.  LTO and Go aren't assigned numbers
+	 either, so for now use 0.  */
       if (! strcmp (language_string, "GNU C")
-	  || ! strcmp (language_string, "GNU GIMPLE"))
+	  || ! strcmp (language_string, "GNU GIMPLE")
+	  || ! strcmp (language_string, "GNU Go"))
 	i = 0;
       else if (! strcmp (language_string, "GNU F77")
 	       || ! strcmp (language_string, "GNU Fortran"))