diff options
author | Per Bothner <per@bothner.com> | 2005-03-07 13:14:12 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2005-03-07 13:14:12 -0800 |
commit | dbce15707a9e5148157fe671c2cd5832ec157c63 (patch) | |
tree | 413d97c6eb6d9cb6750a5233f116bf870414d6b7 /gcc/c-decl.c | |
parent | a2da2c9a68c574b4598768ff414d8b19ccc34f3c (diff) | |
download | gcc-dbce15707a9e5148157fe671c2cd5832ec157c63.zip gcc-dbce15707a9e5148157fe671c2cd5832ec157c63.tar.gz gcc-dbce15707a9e5148157fe671c2cd5832ec157c63.tar.bz2 |
Various fixes to allow us to again build if --enable-mapped-location:
* c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
* tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
local variable loc. Change logic appropriately.
* tree-vect-transform.c (vect_finish_stmt_generation): Use
EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
* c-parser.c (c_parser_for_statement): Initialize loc variable.
* tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
From-SVN: r96045
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 5cad16e..42f8bad 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -6335,7 +6335,11 @@ finish_function (void) /* Hack. We don't want the middle-end to warn that this return is unreachable, so put the statement on the special line 0. */ +#ifdef USE_MAPPED_LOCATION + SET_EXPR_LOCATION (stmt, UNKNOWN_LOCATION); +#else annotate_with_file_line (stmt, input_filename, 0); +#endif } } } |