This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Remove CHILL support from rs6000.c (traceback table)/fixObjective-C value/Question on Java


We do not support GNU Chill anymore.  Also the value for Objective-C
is wrong (it should be 13 according to:
ftp://ftp.linuxppc64.org/pub/people/sjmunroe/PPC64-VMXabi.txt).  But
we use already 13 for Java.

Steven, Alan and David, as authors of the ABI, what's the right value
for Java?  Is using 13 correct?  Or shouldn't it get defined properly
in the ABI?

Ok to commit the appended patch?  

Andreas

2003-12-14  Andreas Jaeger  <aj@suse.de>

	* config/rs6000/rs6000.c (rs6000_output_function_epilogue): Remove
	handling of obsolete language Chill, use 13 for Objective-C.


============================================================
Index: gcc/config/rs6000/rs6000.c
--- config/rs6000/rs6000.c	13 Dec 2003 04:44:08 -0000	1.557
+++ config/rs6000/rs6000.c	14 Dec 2003 18:58:38 -0000
@@ -12536,12 +12536,9 @@ rs6000_output_function_epilogue (FILE *f
 
       /* Language type.  Unfortunately, there doesn't seem to be any
 	 official way to get this info, so we use language_string.  C
-	 is 0.  C++ is 9.  No number defined for Obj-C, so use the
-	 value for C for now.  There is no official value for Java,
-         although IBM appears to be using 13.  There is no official value
-	 for Chill, so we've chosen 44 pseudo-randomly.  */
-      if (! strcmp (language_string, "GNU C")
-	  || ! strcmp (language_string, "GNU Objective-C"))
+	 is 0.  C++ is 9.  Objective-C is 13.  There is no official
+	 value for Java, although IBM appears to be using 13.  */
+      if (! strcmp (language_string, "GNU C"))
 	i = 0;
       else if (! strcmp (language_string, "GNU F77"))
 	i = 1;
@@ -12551,10 +12548,9 @@ rs6000_output_function_epilogue (FILE *f
 	i = 2;
       else if (! strcmp (language_string, "GNU C++"))
 	i = 9;
-      else if (! strcmp (language_string, "GNU Java"))
+      else if (! strcmp (language_string, "GNU Java")
+	       || ! strcmp (language_string, "GNU Objective-C"))
 	i = 13;
-      else if (! strcmp (language_string, "GNU CHILL"))
-	i = 44;
       else
 	abort ();
       fprintf (file, "%d,", i);

-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]