aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.ibm.com>2021-11-23 10:22:58 -0600
committerBill Schmidt <wschmidt@linux.ibm.com>2021-11-30 17:20:33 -0600
commit0fc26e6f0b5e5a40f2649e98db605f4c740e2c4e (patch)
treea7790f65e089009a80c33f320bb24cc884cc19a4 /gcc
parentbe30fc4ce085ef786f104c6a407ccd44e554cd54 (diff)
downloadgcc-0fc26e6f0b5e5a40f2649e98db605f4c740e2c4e.zip
gcc-0fc26e6f0b5e5a40f2649e98db605f4c740e2c4e.tar.gz
gcc-0fc26e6f0b5e5a40f2649e98db605f4c740e2c4e.tar.bz2
rs6000: Clarify overloaded builtin diagnostic
When a built-in function required by an overloaded function name is not currently enabled, the diagnostic message is not as clear as it should be. Saying that one built-in "requires" another is somewhat misleading. It is better to explicitly state that the overloaded builtin is implemented by the missing builtin. 2021-11-23 Bill Schmidt <wschmidt@linux.ibm.com> gcc/ * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Clarify diagnostic. (altivec_resolve_new_overloaded_builtin): Likewise.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/rs6000/rs6000-c.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config/rs6000/rs6000-c.c b/gcc/config/rs6000/rs6000-c.c
index d08bdfe..5eeac9d 100644
--- a/gcc/config/rs6000/rs6000-c.c
+++ b/gcc/config/rs6000/rs6000-c.c
@@ -1946,7 +1946,8 @@ altivec_resolve_overloaded_builtin (location_t loc, tree fndecl,
non-overloaded function has already been issued. Add
clarification of the previous message. */
rich_location richloc (line_table, input_location);
- inform (&richloc, "builtin %qs requires builtin %qs",
+ inform (&richloc,
+ "overloaded builtin %qs is implemented by builtin %qs",
name, internal_name);
}
else
@@ -2992,7 +2993,8 @@ altivec_resolve_new_overloaded_builtin (location_t loc, tree fndecl,
non-overloaded function has already been issued. Add
clarification of the previous message. */
rich_location richloc (line_table, input_location);
- inform (&richloc, "builtin %qs requires builtin %qs",
+ inform (&richloc,
+ "overloaded builtin %qs is implemented by builtin %qs",
name, internal_name);
}
else