[Bug c/106015] New: [PowerPC] pointer to MMA accumulator not convertible to char pointer

nemanja.i.ibm at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Jun 17 14:24:56 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106015

            Bug ID: 106015
           Summary: [PowerPC] pointer to MMA accumulator not convertible
                    to char pointer
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nemanja.i.ibm at gmail dot com
  Target Milestone: ---

Code:
$ cat aa.c 
unsigned char *conv(__vector_quad *a) {
  return (unsigned char *)a;
}

Compile:
gcc -mcpu=power10 -O3 aa.c -S
aa.c:2:3: error: invalid conversion from type '* __vector_quad'
    2 |   return (unsigned char *)a;
      |   ^~~~~~

Version:
gcc --version
gcc (GCC) 12.1.1 20220524 [releases/gcc-12 r12-8410-gf0a0aeec44]
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


More information about the Gcc-bugs mailing list