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

From-SVN: r22378
This commit is contained in:
Anthony Green 1998-09-10 08:08:04 +00:00 committed by Anthony Green
parent 95c81fb86f
commit 9517ead8df
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,7 @@
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 Löwis <loewis@informatik.hu-berlin.de>
* invoke.texi (C++ Dialect Options): Document -fhonor-std.

View file

@ -4232,7 +4232,8 @@ output_epilog (file, size)
/* 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. */
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")
|| ! strcmp (language_string, "GNU Obj-C"))
i = 0;
@ -4244,6 +4245,8 @@ output_epilog (file, size)
i = 2;
else if (! strcmp (language_string, "GNU C++"))
i = 9;
else if (! strcmp (language_string, "GNU Java"))
i = 13;
else
abort ();
fprintf (file, "%d,", i);