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

--- Comment #11 from René J.V. Bertin <rjvbertin at gmail dot com> ---
I'm using 6.3.0 (that was the latest release when I started). It has the same
code in config/darwin.h though:

```
/* When we detect that we're cctools or llvm as, we need to insert the right
   additional options.  */
#if HAVE_GNU_AS
#define ASM_OPTIONS ""
#else
#define ASM_OPTIONS "%{v} %{w:-W} %{I*}"
#endif

/* Default Darwin ASM_SPEC, very simple. */
#define ASM_SPEC "-arch %(darwin_arch) \
  " ASM_OPTIONS " \
  %{Zforce_cpusubtype_ALL:-force_cpusubtype_ALL} \
  %{static}" ASM_MMACOSX_VERSION_MIN_SPEC
```

I take it that the -q option would be added to the 1st (empty) ASM_OPTIONS
declaration?

On my older 10.9.5 with Xcode 6.x I have

%  xcrun -run as -v
Apple Inc version cctools-862, GNU assembler version 1.38
% xcrun -run as -v -q
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)

and from MacPorts:

% /opt/local/bin/as -v 
Apple Inc version cctools-895, GNU assembler version 1.38
% /opt/local/bin/as -v -q
clang version 4.0.0 (tags/RELEASE_400/final)

I haven't yet figured out why the latter defaults to GNU as despite what its
manpage says, but it seems clear that one cannot take anything for granted as
to -q being the actual default.

In fact, is there code that requires the old GNU as?

Reply via email to