diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-01 02:04:39 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-01 02:04:39 +0000 |
commit | 8637f1db1363a105e56dfad50038f57d5816f371 (patch) | |
tree | c668c63e9650ae10b834fb88da25c23030215504 /gcc/builtins.c | |
parent | 03d0aa7ed74505475801f6eb3c2a0cce09cf358d (diff) | |
download | gcc-8637f1db1363a105e56dfad50038f57d5816f371.tar.gz |
* tree.h (EXPR_LOC_OR_HERE): New macro.
* builtins.c (c_strlen): Use it.
* c-decl.c (build_enumerator): Likewise.
* gimplify.c (internal_get_tmp_var): Likewise.
(shortcut_cond_expr): Likewise.
(gimplify_one_sizepos): Likewise.
c-family/
* c-common.c (conversion_warning, warn_for_collisions_1): Use
EXPR_LOC_OR_HERE.
cp/
* decl.c (pop_switch): Use EXPR_LOC_OR_HERE.
* typeck.c (convert_for_assignment): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166123 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 611b777ec9c..ced2fa7bd6b 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -506,10 +506,7 @@ c_strlen (tree src, int only_value) && (only_value || !TREE_SIDE_EFFECTS (TREE_OPERAND (src, 0)))) return c_strlen (TREE_OPERAND (src, 1), only_value); - if (EXPR_HAS_LOCATION (src)) - loc = EXPR_LOCATION (src); - else - loc = input_location; + loc = EXPR_LOC_OR_HERE (src); src = string_constant (src, &offset_node); if (src == 0) |