diff options
author | Anthony Green <green@cygnus.com> | 1998-09-10 08:08:04 +0000 |
---|---|---|
committer | Anthony Green <green@gcc.gnu.org> | 1998-09-10 08:08:04 +0000 |
commit | 9517ead8df8a7167ca098ba8bd50eb6db6da606f (patch) | |
tree | 3ad0396179748581e3262125a5bccc3fb70282a3 | |
parent | 95c81fb86f29ec32dd335f0e780f52d4317b7bff (diff) | |
download | gcc-9517ead8df8a7167ca098ba8bd50eb6db6da606f.zip gcc-9517ead8df8a7167ca098ba8bd50eb6db6da606f.tar.gz gcc-9517ead8df8a7167ca098ba8bd50eb6db6da606f.tar.bz2 |
* config/rs6000/rs6000.c (output_epilog): Add Java support.
From-SVN: r22378
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 943a3b9..917de8d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 246c7cb..c38a3ae 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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); |