aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-gimplify.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/cp-gimplify.cc')
-rw-r--r--gcc/cp/cp-gimplify.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/cp-gimplify.cc b/gcc/cp/cp-gimplify.cc
index 003e68f..b011bad 100644
--- a/gcc/cp/cp-gimplify.cc
+++ b/gcc/cp/cp-gimplify.cc
@@ -42,6 +42,7 @@ along with GCC; see the file COPYING3. If not see
#include "cgraph.h"
#include "omp-general.h"
#include "opts.h"
+#include "gcc-urlifier.h"
/* Keep track of forward references to immediate-escalating functions in
case they become consteval. This vector contains ADDR_EXPRs and
@@ -3624,8 +3625,11 @@ process_stmt_hotness_attribute (tree std_attrs, location_t attrs_loc)
SET_EXPR_LOCATION (pred, attrs_loc);
add_stmt (pred);
if (tree other = lookup_hotness_attribute (TREE_CHAIN (attr)))
- warning (OPT_Wattributes, "ignoring attribute %qE after earlier %qE",
- get_attribute_name (other), name);
+ {
+ auto_urlify_attributes sentinel;
+ warning (OPT_Wattributes, "ignoring attribute %qE after earlier %qE",
+ get_attribute_name (other), name);
+ }
std_attrs = remove_hotness_attribute (std_attrs);
}
return std_attrs;