public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/80782] Configure options to use llvm/clang assembler on Mac
       [not found] <bug-80782-4@http.gcc.gnu.org/bugzilla/>
@ 2022-05-24 15:05 ` egallager at gcc dot gnu.org
  2022-05-24 15:35 ` iains at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: egallager at gcc dot gnu.org @ 2022-05-24 15:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #12)
> please could you be more specific about exactly what's not working?
>  - i.e if you're on an older version of the OS.
>  - version of Xcode.

So I'm assuming that this is the part that this is still in WAITING for?

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

* [Bug target/80782] Configure options to use llvm/clang assembler on Mac
       [not found] <bug-80782-4@http.gcc.gnu.org/bugzilla/>
  2022-05-24 15:05 ` [Bug target/80782] Configure options to use llvm/clang assembler on Mac egallager at gcc dot gnu.org
@ 2022-05-24 15:35 ` iains at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: iains at gcc dot gnu.org @ 2022-05-24 15:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #15)
> (In reply to Iain Sandoe from comment #12)
> > please could you be more specific about exactly what's not working?
> >  - i.e if you're on an older version of the OS.
> >  - version of Xcode.
> 
> So I'm assuming that this is the part that this is still in WAITING for?

I guess so...

cctools 'as' already automatically calls 'clang -cc1as' where the system
supports it and GCC's configuration process detects that this is in force
(where it matters to assembler options).

... so we are already using this on the platform versions for which Apple
defaults to using the LLVM back end (i.e. clang -cc1as) for the assembler.

For some versions of Xcode (before this became the default) it would be
possible modify the configure to add the '-q' flag to force the use of 'clang
-cc1as' instead of the GAS-1.38 based assembler - however, at that point we
would clearly be making it possible to generate instructions that the OS
toolchain was not expecting, so not sure of how useful it would be.

from the original description:

> As a result, GCC generates code that fails to assemble when using optimisation for >any CPU that has support for AVX or newer intrinsics. A pity and often annoying >because the failure can happen only late during a build process.

We should not be trying to generate such instructions on systems that do not
support them - so this implies some different issue is in play.

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

end of thread, other threads:[~2022-05-24 15:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-80782-4@http.gcc.gnu.org/bugzilla/>
2022-05-24 15:05 ` [Bug target/80782] Configure options to use llvm/clang assembler on Mac egallager at gcc dot gnu.org
2022-05-24 15:35 ` iains 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).