diff options
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 97c28f4..4521f3b 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -845,9 +845,9 @@ process_function_and_variable_attributes (struct cgraph_node *first, if (lookup_attribute ("externally_visible", DECL_ATTRIBUTES (decl))) { if (! TREE_PUBLIC (node->decl)) - warning (OPT_Wattributes, - "%J%<externally_visible%> attribute have effect only on public objects", - node->decl); + warning_at (DECL_SOURCE_LOCATION (node->decl), OPT_Wattributes, + "%<externally_visible%>" + " attribute have effect only on public objects"); else { if (node->local.finalized) @@ -868,9 +868,9 @@ process_function_and_variable_attributes (struct cgraph_node *first, if (lookup_attribute ("externally_visible", DECL_ATTRIBUTES (decl))) { if (! TREE_PUBLIC (vnode->decl)) - warning (OPT_Wattributes, - "%J%<externally_visible%> attribute have effect only on public objects", - vnode->decl); + warning_at (DECL_SOURCE_LOCATION (vnode->decl), OPT_Wattributes, + "%<externally_visible%>" + " attribute have effect only on public objects"); else { if (vnode->finalized) |