aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-parse.c
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2007-04-03 15:28:16 +0000
committerAndrew Haley <aph@gcc.gnu.org>2007-04-03 15:28:16 +0000
commit696fbee71016c152278c38048421cf291e1566a4 (patch)
tree60fe445d5b46b75e3d08f3d3944f489dda85b945 /gcc/java/jcf-parse.c
parent83ff0d10edd6af76343e00f4cd8cdb78c1c0b640 (diff)
downloadgcc-696fbee71016c152278c38048421cf291e1566a4.zip
gcc-696fbee71016c152278c38048421cf291e1566a4.tar.gz
gcc-696fbee71016c152278c38048421cf291e1566a4.tar.bz2
jvgenmain.c (main): Change main to use class$, not class$$.
2007-04-03 Andrew Haley <aph@redhat.com> * jvgenmain.c (main): Change main to use class$, not class$$. (do_mangle_classname): Likewise. * class.c (hide): New function. (add_field): Hide everything that shouldn't be visible outside a DSO. (build_static_class_ref): Likewise. (build_classdollar_field): Likewise. (make_class_data): Likewise. (layout_class_method): Likewise. * expr.c (special_method_p): New function. * class.c (push_class): Don't bogusly guess the source filename. * jcf-parse.c (give_name_to_class): Don't set input_location from DECL_ARTIFICIAL decls. From-SVN: r123476
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r--gcc/java/jcf-parse.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index 39abb57..9411119 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -1218,9 +1218,12 @@ give_name_to_class (JCF *jcf, int i)
main_input_filename = sfname;
}
#else
- input_location = DECL_SOURCE_LOCATION (TYPE_NAME (this_class));
- if (main_input_filename == NULL && jcf == main_jcf)
- main_input_filename = input_filename;
+ if (! DECL_ARTIFICIAL (TYPE_NAME (this_class)))
+ {
+ input_location = DECL_SOURCE_LOCATION (TYPE_NAME (this_class));
+ if (main_input_filename == NULL && jcf == main_jcf)
+ main_input_filename = input_filename;
+ }
#endif
jcf->cpool.data[i].t = this_class;