aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.c
diff options
context:
space:
mode:
authorPeter Bergner <bergner@linux.ibm.com>2020-08-08 11:54:48 -0500
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 15:07:50 -0300
commit5453ff603bb87d1d208e3d22c94036421b251fb6 (patch)
tree937883e7374c9ed29f4f0413c92dd69779b5e0a8 /gcc/cp/constexpr.c
parenta170514f668eeb7bb004eec368f003a2a932e438 (diff)
downloadgcc-5453ff603bb87d1d208e3d22c94036421b251fb6.zip
gcc-5453ff603bb87d1d208e3d22c94036421b251fb6.tar.gz
gcc-5453ff603bb87d1d208e3d22c94036421b251fb6.tar.bz2
rs6000: MMA built-ins reject typedefs of MMA types
We do not allow conversions between the MMA types and other types. However, we are being too strict in not matching MMA types with typdefs of those types. Use TYPE_CANONICAL to see through the types to their canonical types before comparing them. 2020-08-08 Peter Bergner <bergner@linux.ibm.com> gcc/ PR target/96530 * config/rs6000/rs6000.c (rs6000_invalid_conversion): Use canonical types for type comparisons. Refactor code to simplify it. gcc/testsuite/ PR target/96530 * gcc.target/powerpc/pr96530.c: New test.
Diffstat (limited to 'gcc/cp/constexpr.c')
0 files changed, 0 insertions, 0 deletions