]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000: MMA built-ins reject typedefs of MMA types
authorPeter Bergner <bergner@linux.ibm.com>
Sat, 8 Aug 2020 16:54:48 +0000 (11:54 -0500)
committerPeter Bergner <bergner@linux.ibm.com>
Mon, 10 Aug 2020 03:10:42 +0000 (22:10 -0500)
commita8c8ff7712d2cce5d7f26224160d8422b87babfc
treec0226cf9399a636ae6cb578f10f1b674fc6a07f6
parenta7de76127de7678ab5b2e208821291a4126be5f1
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.

(cherry picked from commit e2882e76089cecdc268d0835c54cabfa80b5b0be)
gcc/config/rs6000/rs6000.c
gcc/testsuite/gcc.target/powerpc/pr96530.c [new file with mode: 0644]