summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-14 17:33:32 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-14 17:33:32 +0000
commitf0c569c760fbee1842d76f8fae86a84ca6101ba5 (patch)
tree3a642a41fe4a4649fb76618134dd1dd6cab8d451 /gcc/function.c
parentfa470f09f159ea7c7dfa8aa9f071799df7b23f7d (diff)
downloadgcc-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/function.c')
-rw-r--r--gcc/function.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/gcc/function.c b/gcc/function.c
index e59bf6a954c..84cfd6ede27 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -6522,10 +6522,8 @@ init_dummy_function_start ()
of the function. */
void
-init_function_start (subr, filename, line)
+init_function_start (subr)
tree subr;
- const char *filename;
- int line;
{
prepare_function_start ();
@@ -6541,11 +6539,12 @@ init_function_start (subr, filename, line)
/* Within function body, compute a type's size as soon it is laid out. */
immediate_size_expand++;
- /* Prevent ever trying to delete the first instruction of a function.
- Also tell final how to output a linenum before the function prologue.
- Note linenums could be missing, e.g. when compiling a Java .class file. */
- if (line > 0)
- emit_line_note (filename, line);
+ /* Prevent ever trying to delete the first instruction of a
+ function. Also tell final how to output a linenum before the
+ function prologue. Note linenums could be missing, e.g. when
+ compiling a Java .class file. */
+ if (DECL_SOURCE_LINE (subr))
+ emit_line_note (DECL_SOURCE_FILE (subr), DECL_SOURCE_LINE (subr));
/* Make sure first insn is a note even if we don't want linenums.
This makes sure the first insn will never be deleted.