aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2014-10-03 21:22:10 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2014-10-03 21:22:10 +0000
commitbb42836b34dca74aab99035ac236fa6e81b1d4c1 (patch)
tree9c4233d4502ee9e2a111926323f9eef01f8f6152 /gcc/gimplify.c
parentacbb0489b6d3db1ff6712fbda32405d45f0b8b30 (diff)
downloadgcc-bb42836b34dca74aab99035ac236fa6e81b1d4c1.zip
gcc-bb42836b34dca74aab99035ac236fa6e81b1d4c1.tar.gz
gcc-bb42836b34dca74aab99035ac236fa6e81b1d4c1.tar.bz2
tree-pretty-print.c (dump_location): Make it extern.
gcc/ChangeLog: 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org> * tree-pretty-print.c (dump_location): Make it extern. Dump also the column. * tree-pretty-print.h (dump_location): Declare. * gimple-pretty-print.c (dump_gimple_phi): Use dump_location. (pp_gimple_stmt_1): Likewise. (dump_implicit_edges): Likewise. * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and LOCATION_LINE. gcc/testsuite/ChangeLog: 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org> * gcc.dg/tm/debug-1.c: Update regex. * c-c++-common/raw-string-18.c: Update regex. * c-c++-common/raw-string-19.c: Update regex. From-SVN: r215879
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 5933dd2..6ee85f2 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -2317,14 +2317,14 @@ gimplify_call_expr (tree *expr_p, gimple_seq *pre_p, bool want_value)
}
case BUILT_IN_LINE:
{
- expanded_location loc = expand_location (EXPR_LOCATION (*expr_p));
- *expr_p = build_int_cst (TREE_TYPE (*expr_p), loc.line);
+ *expr_p = build_int_cst (TREE_TYPE (*expr_p),
+ LOCATION_LINE (EXPR_LOCATION (*expr_p)));
return GS_OK;
}
case BUILT_IN_FILE:
{
- expanded_location loc = expand_location (EXPR_LOCATION (*expr_p));
- *expr_p = build_string_literal (strlen (loc.file) + 1, loc.file);
+ const char *locfile = LOCATION_FILE (EXPR_LOCATION (*expr_p));
+ *expr_p = build_string_literal (strlen (locfile) + 1, locfile);
return GS_OK;
}
case BUILT_IN_FUNCTION: