aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parser.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2005-03-07 13:14:12 -0800
committerPer Bothner <bothner@gcc.gnu.org>2005-03-07 13:14:12 -0800
commitdbce15707a9e5148157fe671c2cd5832ec157c63 (patch)
tree413d97c6eb6d9cb6750a5233f116bf870414d6b7 /gcc/c-parser.c
parenta2da2c9a68c574b4598768ff414d8b19ccc34f3c (diff)
downloadgcc-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-parser.c')
-rw-r--r--gcc/c-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c
index e08f436..9487422 100644
--- a/gcc/c-parser.c
+++ b/gcc/c-parser.c
@@ -3760,7 +3760,7 @@ static void
c_parser_for_statement (c_parser *parser)
{
tree block, cond, incr, save_break, save_cont, body;
- location_t loc;
+ location_t loc = UNKNOWN_LOCATION;
gcc_assert (c_parser_next_token_is_keyword (parser, RID_FOR));
c_parser_consume_token (parser);
block = c_begin_compound_stmt (flag_isoc99);