diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-14 17:33:32 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-14 17:33:32 +0000 |
commit | f0c569c760fbee1842d76f8fae86a84ca6101ba5 (patch) | |
tree | 3a642a41fe4a4649fb76618134dd1dd6cab8d451 /gcc/objc | |
parent | fa470f09f159ea7c7dfa8aa9f071799df7b23f7d (diff) | |
download | gcc-f0c569c760fbee1842d76f8fae86a84ca6101ba5.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67953 138bc75d-0d04-0410-961f-82ee72b054a4
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 cf74c8d700a..3a654e6ed13 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); |