diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-04 09:36:05 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-04 09:36:05 +0000 |
commit | a1f260313dd829a3eea7f0a54f317599dcff89e4 (patch) | |
tree | 62ce374fd47a35b7e696b3f046e16bab895aaef9 /gcc/expr.c | |
parent | f8163223503585626c24d57e165609bae9150744 (diff) | |
download | gcc-a1f260313dd829a3eea7f0a54f317599dcff89e4.tar.gz |
2009-03-04 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r144598
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@144599 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/expr.c b/gcc/expr.c index 9eb1ae70a0d..0e8e0eeee5c 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -8061,9 +8061,10 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode, if (fndecl && (attr = lookup_attribute ("warning", DECL_ATTRIBUTES (fndecl))) != NULL) - warning (0, "%Kcall to %qs declared with attribute warning: %s", - exp, lang_hooks.decl_printable_name (fndecl, 1), - TREE_STRING_POINTER (TREE_VALUE (TREE_VALUE (attr)))); + warning_at (tree_nonartificial_location (exp), + 0, "%Kcall to %qs declared with attribute warning: %s", + exp, lang_hooks.decl_printable_name (fndecl, 1), + TREE_STRING_POINTER (TREE_VALUE (TREE_VALUE (attr)))); /* Check for a built-in function. */ if (fndecl && DECL_BUILT_IN (fndecl)) |