This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [build] Only support -gstabs on Mac OS X if assember supports it (PR target/67973)
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Iain Sandoe <iain at codesourcery dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>, Mike Stump <mikestump at comcast dot net>
- Date: Mon, 14 Dec 2015 12:13:49 +0100
- Subject: Re: [build] Only support -gstabs on Mac OS X if assember supports it (PR target/67973)
- Authentication-results: sourceware.org; auth=none
- References: <ydd7fkh71pw dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE> <ECCE33FA-694E-46A2-AB8F-476AC0A5B449 at codesourcery dot com>
Hi Iain,
>> However, I'm not really comfortable with this solution. Initially, I
>> forgot to wrap the -Q option to as in %{gstabs*:...}, which lead to a
>> bootstrap failure: the gas- and LLVM-based assemblers differ in a
>> number of other ways, as can be seen when comparing gcc/auto-host.h:
>
> FAOD,
> the changes below only occur if you omit the guard on “-Q” ?
> or they are present always?
they are from previous builds, one with the LLVM-based /usr/bin/as, the
other configure with --with-as=/vol/gcc/bin/as-6.4 (gas-based as from
Xcode 6.4).
>> Given this, I'd rather have us not support stabs at all than via this
>> half-hearted approach.
>
> I agree, we should just disable it if the “default” assembler doesn’t
> support - so most of your patch would be unchanged.
> The actual practical outcome is really not terribly severe, it ony affects
> folks trying to target x86-darwin8 ( the last OS to use stabs as the first
> choice), and even those systems support some debugging with DWARF.
>>
>> What do you think?
>
> My view is it should still be a configure test, rather than a blanket
> disable for d15+ (simply because I’ve got back-ports of the newer tools
> that should be useable across the Darwin range, and hopefully those
> back-ports will be published before Xmas). The same issues would generally
> apply there.
Fine with me, it's certainly the safest approach. I'll update the patch
accordingly.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University