From ee6b0296b84001a2f69ddebc43d32e4f1e83f1a6 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Sat, 14 Jun 2003 17:33:32 +0000 Subject: tree.h (init_function_start): Remove filename and line paramters. * tree.h (init_function_start): Remove filename and line paramters. * function.c (init_function_start): Remove filename and line parameters. Use DECL_SOURCE_LOCATION. * c-decl.c (store_parm_decls): Adjust init_function_start call. (c_expand_body_1): Likewise. * coverage.c (create_coverage): Likewise. * ada/utils.c (begin_subprog_body): Adjust init_function_start call. * cp/decl.c (start_function): Adjust init_function_start call. * cp/method.c (use_thunk): Likewise. * cp/semantics.c (genrtl_start_function): Likewise. * f/com.c (stor_parm_decls): Adjust init_function_start call. * java/class.c (emit_register_classes): Adjust init_function_start call. * java/decl.c (complete_start_java_method): Likewise. * java/resource.c (write_resource_constructor): Likewise. * objc/objc-act.c (build_tmp_function_decl): Set line number to zero. (hack_method_prototype): Adjust init_function_start call. * treelang/treetree.c (tree_code_create_function_initial): Adjust init_function_start call. From-SVN: r67953 --- gcc/java/resource.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/java/resource.c') diff --git a/gcc/java/resource.c b/gcc/java/resource.c index 9e2b243..a1de225 100644 --- a/gcc/java/resource.c +++ b/gcc/java/resource.c @@ -113,6 +113,7 @@ 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; @@ -125,7 +126,7 @@ write_resource_constructor (void) pushlevel (0); make_decl_rtl (init_decl, NULL); - init_function_start (init_decl, input_filename, 0); + init_function_start (init_decl); expand_function_start (init_decl, 0); /* Write out entries in the same order in which they were defined. */ -- cgit v1.1