diff options
author | Per Bothner <per@bothner.com> | 2004-06-30 11:05:07 -0700 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2004-06-30 11:05:07 -0700 |
commit | 3c20847b8301eb9aa407ee8273b6e738e7067ee0 (patch) | |
tree | 3a5eb1a7eff65640bfe8d3933a6c06578d9f38ce /gcc/function.c | |
parent | c166747038bc41ee6702618828e5c915cc4e47ea (diff) | |
download | gcc-3c20847b8301eb9aa407ee8273b6e738e7067ee0.zip gcc-3c20847b8301eb9aa407ee8273b6e738e7067ee0.tar.gz gcc-3c20847b8301eb9aa407ee8273b6e738e7067ee0.tar.bz2 |
Conditionally compile support for --enable-mapped_location.
* basic-block.h (struct edge_def): Use new source_locus typedef.
* c-common.c (fname_decl): Update save/clear/store of input_location.
(c_do_switch_warnings): Update for USE_MAPPED_LOCATION case.
* c-decl.c: Likewise.
* c-dump.c (dump_stmt): Likewise.
* c-gimplify.c (c-gimplify.c): Generalize using SET_EXPR_LOCATION.
* c-lex.c (cb_line_change): If USE_MAPPED_LOCATION use token's src_loc
to set input_location direction, rather than using linemap_lookup.
(fe_file_change, cb_def_pragma): Again use source_location directly.
* c-opts.c (saved_lineno): Remove static variable.
(c_common_post_options, c_common_init): Don't bothner to save,
clear and restore input_Location - now handled by lang_dependent_init.
* function.c (init_function_start): Use new DECL_IS_BUILTIN macro.
* xcoffout.c (xcoff_assign_fundamental_type_number): Likewise.
From-SVN: r83919
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c index 080345f..76747b3 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -6315,7 +6315,7 @@ init_function_start (tree subr) 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)) + if (! DECL_IS_BUILTIN (subr)) emit_line_note (DECL_SOURCE_LOCATION (subr)); /* Make sure first insn is a note even if we don't want linenums. |