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

--- Comment #5 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Rainer Orth from comment #4)
> (In reply to m...@gcc.gnu.org from comment #2)
> > Ah, found it, use the GNU assembler.  Maybe a little tricky, as one day,
> > even that will be removed.  At that point, I think we just reject the
> > -gstabs option.  The other option, is to just reject that now on darwin14+
> > (or wherever it no longer works).
> 
> I believe every static approach is doomed to fail: why not just add a
> configure
> test like this:
> 
> * first check if the configured assembler can assemble a trivial .stabs line
> 
> * if this fails, try again if it works with -Q added
> 
> * if this fails, too, disable both DBX_DEBUGGING_INFO and remove DBX_DEBUG
> from
>   PREFERRED_DEBUGGING_TYPE
> 
> This should allow us to support Stabs while possible, but reject the
> corresponding
> options once the assembler cannot handle them.

agreed on the ideal of using config - if someone has time to implement it.
We probably need to generate a config define to indicate that we've found this
case - because we will also need some specs magic to ensure that "-Q" is _only_
forced for -gstabs* otherwise folks will lose the ability to assemble AVX,
which I suspect is far more interesting to most people than support for
debugging on darwin8 ;-)

Reply via email to