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

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This should be easy to do as a target specific specs.  There should be already
one which is used for arguments to as.

From config/darwin.h:

 410 /* When we detect that we're cctools or llvm as, we need to insert the
right
 411    additional options.  */
 412 #if HAVE_GNU_AS
 413 #define ASM_OPTIONS ""
 414 #else
 415 #define ASM_OPTIONS "%{v} %{w:-W} %{I*}"
 416 #endif
 417 
 418 /* Default Darwin ASM_SPEC, very simple. */
 419 #define ASM_SPEC "-arch %(darwin_arch) \
 420   " ASM_OPTIONS " \
 421   %{Zforce_cpusubtype_ALL:-force_cpusubtype_ALL} \
 422   %{static}" ASM_MMACOSX_VERSION_MIN_SPEC

This was added with:
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=aaa50706381cfe490cbc7de0f3ec64c76448aaf4

Reply via email to