Commit 9517ead8 by Anthony Green Committed by Anthony Green

* config/rs6000/rs6000.c (output_epilog): Add Java support.

From-SVN: r22378
parent 95c81fb8
Thu Sep 10 08:01:31 1998 Anthony Green <green@cygnus.com>
* config/rs6000/rs6000.c (output_epilog): Add Java support.
Thu Sep 10 14:48:59 1998 Martin von Lwis <loewis@informatik.hu-berlin.de> Thu Sep 10 14:48:59 1998 Martin von Lwis <loewis@informatik.hu-berlin.de>
* invoke.texi (C++ Dialect Options): Document -fhonor-std. * invoke.texi (C++ Dialect Options): Document -fhonor-std.
......
...@@ -4232,7 +4232,8 @@ output_epilog (file, size) ...@@ -4232,7 +4232,8 @@ output_epilog (file, size)
/* Language type. Unfortunately, there doesn't seem to be any /* Language type. Unfortunately, there doesn't seem to be any
official way to get this info, so we use language_string. C 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 is 0. C++ is 9. No number defined for Obj-C, so use the
value for C for now. */ value for C for now. There is no official value for Java,
although IBM appears to be using 13. */
if (! strcmp (language_string, "GNU C") if (! strcmp (language_string, "GNU C")
|| ! strcmp (language_string, "GNU Obj-C")) || ! strcmp (language_string, "GNU Obj-C"))
i = 0; i = 0;
...@@ -4244,6 +4245,8 @@ output_epilog (file, size) ...@@ -4244,6 +4245,8 @@ output_epilog (file, size)
i = 2; i = 2;
else if (! strcmp (language_string, "GNU C++")) else if (! strcmp (language_string, "GNU C++"))
i = 9; i = 9;
else if (! strcmp (language_string, "GNU Java"))
i = 13;
else else
abort (); abort ();
fprintf (file, "%d,", i); fprintf (file, "%d,", i);
......
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