diff options
author | Martin Liska <mliska@suse.cz> | 2022-03-22 13:48:54 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-03-22 13:50:20 +0100 |
commit | a47b1599f2885bc7691e01c0edcd54d6ebf2e7c9 (patch) | |
tree | e3497cc93871ff4b1a5c24342c60e78865a5e474 /gcc/config | |
parent | c1ba4e5b883d142167a2f9f32395e349681fb932 (diff) | |
download | gcc-a47b1599f2885bc7691e01c0edcd54d6ebf2e7c9.zip gcc-a47b1599f2885bc7691e01c0edcd54d6ebf2e7c9.tar.gz gcc-a47b1599f2885bc7691e01c0edcd54d6ebf2e7c9.tar.bz2 |
rs6000: wrap const in an error message.
PR target/104903
gcc/ChangeLog:
* config/rs6000/rs6000-c.cc (altivec_resolve_overloaded_builtin):
Wrap const keyword.
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/rs6000/rs6000-c.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/rs6000/rs6000-c.cc b/gcc/config/rs6000/rs6000-c.cc index 3b62b49..ad97675 100644 --- a/gcc/config/rs6000/rs6000-c.cc +++ b/gcc/config/rs6000/rs6000-c.cc @@ -1788,8 +1788,8 @@ altivec_resolve_overloaded_builtin (location_t loc, tree fndecl, { if (TYPE_READONLY (TREE_TYPE (type)) && !TYPE_READONLY (TREE_TYPE (decl_type))) - warning (0, "passing argument %d of %qE discards const qualifier " - "from pointer target type", n + 1, fndecl); + warning (0, "passing argument %d of %qE discards %<const%> " + "qualifier from pointer target type", n + 1, fndecl); type = build_qualified_type (TREE_TYPE (type), 0); type = build_pointer_type (type); arg = fold_convert (type, arg); |