public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/106015] New: [PowerPC] pointer to MMA accumulator not convertible to char pointer
@ 2022-06-17 14:24 nemanja.i.ibm at gmail dot com
  2022-06-17 17:20 ` [Bug target/106015] " bergner at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: nemanja.i.ibm at gmail dot com @ 2022-06-17 14:24 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/106015] [PowerPC] pointer to MMA accumulator not convertible to char pointer
  2022-06-17 14:24 [Bug c/106015] New: [PowerPC] pointer to MMA accumulator not convertible to char pointer nemanja.i.ibm at gmail dot com
@ 2022-06-17 17:20 ` bergner at gcc dot gnu.org
  2022-06-17 17:21 ` segher at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bergner at gcc dot gnu.org @ 2022-06-17 17:20 UTC (permalink / raw)
  To: gcc-bugs

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

Peter Bergner <bergner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-06-17

--- Comment #1 from Peter Bergner <bergner at gcc dot gnu.org> ---
Confirmed.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/106015] [PowerPC] pointer to MMA accumulator not convertible to char pointer
  2022-06-17 14:24 [Bug c/106015] New: [PowerPC] pointer to MMA accumulator not convertible to char pointer nemanja.i.ibm at gmail dot com
  2022-06-17 17:20 ` [Bug target/106015] " bergner at gcc dot gnu.org
@ 2022-06-17 17:21 ` segher at gcc dot gnu.org
  2022-08-27 17:28 ` bergner at gcc dot gnu.org
  2022-08-27 17:30 ` bergner at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: segher at gcc dot gnu.org @ 2022-06-17 17:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Confirmed.  Likely the same cause as PR106017.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/106015] [PowerPC] pointer to MMA accumulator not convertible to char pointer
  2022-06-17 14:24 [Bug c/106015] New: [PowerPC] pointer to MMA accumulator not convertible to char pointer nemanja.i.ibm at gmail dot com
  2022-06-17 17:20 ` [Bug target/106015] " bergner at gcc dot gnu.org
  2022-06-17 17:21 ` segher at gcc dot gnu.org
@ 2022-08-27 17:28 ` bergner at gcc dot gnu.org
  2022-08-27 17:30 ` bergner at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: bergner at gcc dot gnu.org @ 2022-08-27 17:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Peter Bergner <bergner at gcc dot gnu.org> ---
I think we just want to remove the entire section in
rs6000_invalid_conversion() that checks the XOmode/OOmode pointer conversions. 
Doing that fixes the ICE and fixes the PR106015 ICE too.  I'm doing a bootstrap
and regtest of that patch now.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/106015] [PowerPC] pointer to MMA accumulator not convertible to char pointer
  2022-06-17 14:24 [Bug c/106015] New: [PowerPC] pointer to MMA accumulator not convertible to char pointer nemanja.i.ibm at gmail dot com
                   ` (2 preceding siblings ...)
  2022-08-27 17:28 ` bergner at gcc dot gnu.org
@ 2022-08-27 17:30 ` bergner at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: bergner at gcc dot gnu.org @ 2022-08-27 17:30 UTC (permalink / raw)
  To: gcc-bugs

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

Peter Bergner <bergner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #4 from Peter Bergner <bergner at gcc dot gnu.org> ---
Having looked at PR106017, this is a dup of that.  Closing.

*** This bug has been marked as a duplicate of bug 106017 ***

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-08-27 17:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-17 14:24 [Bug c/106015] New: [PowerPC] pointer to MMA accumulator not convertible to char pointer nemanja.i.ibm at gmail dot com
2022-06-17 17:20 ` [Bug target/106015] " bergner at gcc dot gnu.org
2022-06-17 17:21 ` segher at gcc dot gnu.org
2022-08-27 17:28 ` bergner at gcc dot gnu.org
2022-08-27 17:30 ` bergner at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).