diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-02-01 17:13:08 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-02-01 17:13:08 +0000 |
commit | 22f8a068527c072cc53956db18f3ef94d5224fbd (patch) | |
tree | 570b2ca9bbce834d23751689dafc028ad425e844 /gcc/java/gjavah.c | |
parent | d1c8addb269554ac66f494db4f844ca7817a5a27 (diff) | |
download | gcc-22f8a068527c072cc53956db18f3ef94d5224fbd.zip gcc-22f8a068527c072cc53956db18f3ef94d5224fbd.tar.gz gcc-22f8a068527c072cc53956db18f3ef94d5224fbd.tar.bz2 |
revert: gjavah.c (print_field_info): Mark static data members of floating-point type with "__extension__".
Revert:
2005-01-31 Mark Mitchell <mark@codesourcery.com>
* gjavah.c (print_field_info): Mark static data members of
floating-point type with "__extension__".
From-SVN: r94547
Diffstat (limited to 'gcc/java/gjavah.c')
-rw-r--r-- | gcc/java/gjavah.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c index 9db37d3..1f25ce6 100644 --- a/gcc/java/gjavah.c +++ b/gcc/java/gjavah.c @@ -768,6 +768,8 @@ print_field_info (FILE *stream, JCF* jcf, int name_index, int sig_index, print_cxx_classname (stream, "#define ", jcf, jcf->this_class, 1); fputs ("_", stream); } + else + fputs ("static ", stream); if ((flags & ACC_FINAL) && current_field_value > 0) { @@ -781,7 +783,7 @@ print_field_info (FILE *stream, JCF* jcf, int name_index, int sig_index, jint num; int most_negative = 0; if (! flag_jni) - fputs ("static const jint ", stream); + fputs ("const jint ", stream); print_field_name (stream, jcf, name_index, 0); fputs (flag_jni ? " " : " = ", stream); num = JPOOL_INT (jcf, current_field_value); @@ -803,7 +805,7 @@ print_field_info (FILE *stream, JCF* jcf, int name_index, int sig_index, jlong num; int most_negative = 0; if (! flag_jni) - fputs ("static const jlong ", stream); + fputs ("const jlong ", stream); print_field_name (stream, jcf, name_index, 0); fputs (flag_jni ? " " : " = ", stream); num = JPOOL_LONG (jcf, current_field_value); @@ -824,11 +826,7 @@ print_field_info (FILE *stream, JCF* jcf, int name_index, int sig_index, { jfloat fnum = JPOOL_FLOAT (jcf, current_field_value); if (! flag_jni) - /* ISO C++ does not allow initialization of a static - data member of floating-point type. Thus, this - code is making use of an undocumented GNU C++ - extension. */ - fputs ("__extension__ static const jfloat ", stream); + fputs ("const jfloat ", stream); print_field_name (stream, jcf, name_index, 0); jni_print_float (stream, fnum); } @@ -837,11 +835,7 @@ print_field_info (FILE *stream, JCF* jcf, int name_index, int sig_index, { jdouble dnum = JPOOL_DOUBLE (jcf, current_field_value); if (! flag_jni) - /* ISO C++ does not allow initialization of a static - data member of floating-point type. Thus, this - code is making use of an undocumented GNU C++ - extension. */ - fputs ("__extension__ static const jdouble ", stream); + fputs ("const jdouble ", stream); print_field_name (stream, jcf, name_index, 0); jni_print_double (stream, dnum); } |