public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/93177] PPC: Missing many useful platform intrinsics
       [not found] <bug-93177-4@http.gcc.gnu.org/bugzilla/>
@ 2022-10-04 22:34 ` pinskia at gcc dot gnu.org
  2022-10-26 15:05 ` vital.had at gmail dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-04 22:34 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vital.had at gmail dot com

--- Comment #15 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 107155 has been marked as a duplicate of this bug. ***

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

* [Bug target/93177] PPC: Missing many useful platform intrinsics
       [not found] <bug-93177-4@http.gcc.gnu.org/bugzilla/>
  2022-10-04 22:34 ` [Bug target/93177] PPC: Missing many useful platform intrinsics pinskia at gcc dot gnu.org
@ 2022-10-26 15:05 ` vital.had at gmail dot com
  2022-10-26 15:15 ` iains at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: vital.had at gmail dot com @ 2022-10-26 15:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from Sergey Fedorov <vital.had at gmail dot com> ---
For Darwin, PPC intrinsics already is there in Apple headers. Can it be added
into current GCC?

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

* [Bug target/93177] PPC: Missing many useful platform intrinsics
       [not found] <bug-93177-4@http.gcc.gnu.org/bugzilla/>
  2022-10-04 22:34 ` [Bug target/93177] PPC: Missing many useful platform intrinsics pinskia at gcc dot gnu.org
  2022-10-26 15:05 ` vital.had at gmail dot com
@ 2022-10-26 15:15 ` iains at gcc dot gnu.org
  2022-10-26 16:30 ` segher at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: iains at gcc dot gnu.org @ 2022-10-26 15:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Sergey Fedorov from comment #16)
> For Darwin, PPC intrinsics already is there in Apple headers. Can it be
> added into current GCC?

There is a version of the header on the FSF Apple branch, which means we can
forward port / check / add to the installation / test it.  It might/might not
be useful to any other ppc sub-ports.

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

* [Bug target/93177] PPC: Missing many useful platform intrinsics
       [not found] <bug-93177-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2022-10-26 15:15 ` iains at gcc dot gnu.org
@ 2022-10-26 16:30 ` segher at gcc dot gnu.org
  2022-10-26 19:17 ` iains at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: segher at gcc dot gnu.org @ 2022-10-26 16:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #18 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(In reply to Sergey Fedorov from comment #16)
> For Darwin, PPC intrinsics already is there in Apple headers. Can it be
> added into current GCC?

If it is in the Apple headers already, why would you need a separate copy
in GCC?

Also please note that as said many of those things do not work with current
GCC, and arguably didn't work with older GCC either, the user just got lucky
that the random translation he got did what he wanted :-/  Things like "sync"
or "dcbst" need proper dependencies, things like lwarx are *impossible* to
do, etc.

But thought-out patches are welcome :-)

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

* [Bug target/93177] PPC: Missing many useful platform intrinsics
       [not found] <bug-93177-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2022-10-26 16:30 ` segher at gcc dot gnu.org
@ 2022-10-26 19:17 ` iains at gcc dot gnu.org
  2022-10-26 19:27 ` iains at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: iains at gcc dot gnu.org @ 2022-10-26 19:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #19 from Iain Sandoe <iains at gcc dot gnu.org> ---
Created attachment 53779
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53779&action=edit
introduce ppc_intrinsics.h for powerpc*-darwin.

This takes the header from the GCC-4.x apple debt branch (as present in SVN:
r113478) and 
 - updates the license.
 - installs for powerpc*-darwin

It needs the test cases forward porting too.
However, it would be good to know if this solves the problems folks have
encountered here (if other ports want to try it, why only need to amend their
entry in gcc/config.gcc)

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

* [Bug target/93177] PPC: Missing many useful platform intrinsics
       [not found] <bug-93177-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2022-10-26 19:17 ` iains at gcc dot gnu.org
@ 2022-10-26 19:27 ` iains at gcc dot gnu.org
  2022-10-26 19:32 ` iains at gcc dot gnu.org
  2022-10-28 20:52 ` vital.had at gmail dot com
  7 siblings, 0 replies; 8+ messages in thread
From: iains at gcc dot gnu.org @ 2022-10-26 19:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #20 from Iain Sandoe <iains at gcc dot gnu.org> ---
the patch above does not seek to answer questions on validity - it simply
publishes the same header that was made available in the darwin toolchains (so
will be neither better nor worse than that)>

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

* [Bug target/93177] PPC: Missing many useful platform intrinsics
       [not found] <bug-93177-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2022-10-26 19:27 ` iains at gcc dot gnu.org
@ 2022-10-26 19:32 ` iains at gcc dot gnu.org
  2022-10-28 20:52 ` vital.had at gmail dot com
  7 siblings, 0 replies; 8+ messages in thread
From: iains at gcc dot gnu.org @ 2022-10-26 19:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #21 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Segher Boessenkool from comment #18)
> (In reply to Sergey Fedorov from comment #16)
> > For Darwin, PPC intrinsics already is there in Apple headers. Can it be
> > added into current GCC?
> 
> If it is in the Apple headers already, why would you need a separate copy
> in GCC?

it's an internal header in apple-gcc-4.x so not accessible to end users unless
using those compiles (nor usable like <altivec.h> by GCC for example).

Some projects appear to depend on it (whether broken or not)...
.. but I'd welcome some persuasive evidence that it does make things better.

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

* [Bug target/93177] PPC: Missing many useful platform intrinsics
       [not found] <bug-93177-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2022-10-26 19:32 ` iains at gcc dot gnu.org
@ 2022-10-28 20:52 ` vital.had at gmail dot com
  7 siblings, 0 replies; 8+ messages in thread
From: vital.had at gmail dot com @ 2022-10-28 20:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #22 from Sergey Fedorov <vital.had at gmail dot com> ---
(In reply to Iain Sandoe from comment #19)
> Created attachment 53779 [details]
> introduce ppc_intrinsics.h for powerpc*-darwin.
> 
> This takes the header from the GCC-4.x apple debt branch (as present in SVN:
> r113478) and 
>  - updates the license.
>  - installs for powerpc*-darwin
> 
> It needs the test cases forward porting too.
> However, it would be good to know if this solves the problems folks have
> encountered here (if other ports want to try it, why only need to amend
> their entry in gcc/config.gcc)

Thank you! I will try it.

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

end of thread, other threads:[~2022-10-28 20:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-93177-4@http.gcc.gnu.org/bugzilla/>
2022-10-04 22:34 ` [Bug target/93177] PPC: Missing many useful platform intrinsics pinskia at gcc dot gnu.org
2022-10-26 15:05 ` vital.had at gmail dot com
2022-10-26 15:15 ` iains at gcc dot gnu.org
2022-10-26 16:30 ` segher at gcc dot gnu.org
2022-10-26 19:17 ` iains at gcc dot gnu.org
2022-10-26 19:27 ` iains at gcc dot gnu.org
2022-10-26 19:32 ` iains at gcc dot gnu.org
2022-10-28 20:52 ` vital.had at gmail dot com

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).