summaryrefslogtreecommitdiff
path: root/gcc/java/resource.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/resource.c')
-rw-r--r--gcc/java/resource.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/java/resource.c b/gcc/java/resource.c
index b71a6709f5e..25b8a81010d 100644
--- a/gcc/java/resource.c
+++ b/gcc/java/resource.c
@@ -114,7 +114,6 @@ write_resource_constructor (void)
init_type = build_function_type (void_type_node, end_params_node);
init_decl = build_decl (FUNCTION_DECL, init_name, init_type);
- DECL_SOURCE_LINE (init_decl) = 0;
SET_DECL_ASSEMBLER_NAME (init_decl, init_name);
TREE_STATIC (init_decl) = 1;
current_function_decl = init_decl;
@@ -140,7 +139,7 @@ write_resource_constructor (void)
Pmode);
}
- input_location = DECL_SOURCE_LOCATION (init_decl);
+ input_location = TREE_LOCUS (init_decl);
expand_function_end ();
poplevel (1, 0, 1);
{