diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2003-06-14 17:33:32 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2003-06-14 17:33:32 +0000 |
commit | ee6b0296b84001a2f69ddebc43d32e4f1e83f1a6 (patch) | |
tree | 3a642a41fe4a4649fb76618134dd1dd6cab8d451 /gcc/objc | |
parent | 2fbe6bc2ba00c56ea66269ba842278764bd89c8e (diff) | |
download | gcc-ee6b0296b84001a2f69ddebc43d32e4f1e83f1a6.zip gcc-ee6b0296b84001a2f69ddebc43d32e4f1e83f1a6.tar.gz gcc-ee6b0296b84001a2f69ddebc43d32e4f1e83f1a6.tar.bz2 |
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
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/objc-act.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index cf74c8d..3a654e6 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -2932,7 +2932,8 @@ build_tmp_function_decl () { tree decl_specs, expr_decl, parms; char buffer[80]; - + tree tmp_decl; + /* struct objc_object *objc_xxx (id, SEL, ...); */ pushlevel (0); decl_specs = build_tree_list (NULL_TREE, objc_object_reference); @@ -2956,7 +2957,10 @@ build_tmp_function_decl () expr_decl = build_nt (CALL_EXPR, get_identifier (buffer), parms, NULL_TREE); expr_decl = build1 (INDIRECT_REF, NULL_TREE, expr_decl); - return define_decl (expr_decl, decl_specs); + tmp_decl = define_decl (expr_decl, decl_specs); + DECL_SOURCE_LINE (tmp_decl) = 0; + + return tmp_decl; } /* Generate the prototypes for protocol methods. This is used to @@ -3007,7 +3011,7 @@ hack_method_prototype (nst_methods, tmp_decl) for (parm = DECL_ARGUMENTS (tmp_decl); parm; parm = TREE_CHAIN (parm)) DECL_CONTEXT (parm) = tmp_decl; - init_function_start (tmp_decl, "objc-act", 0); + init_function_start (tmp_decl); /* Typically called from expand_function_start for function definitions. */ assign_parms (tmp_decl); |