Fix N_BNSYM horkage on alpha
Eric Botcazou
ebotcazou@libertysurf.fr
Tue Sep 21 12:31:00 GMT 2004
> This patch,
>
> 2004-08-12 Devang patel <dpatel@apple.com>
>
> * dbxout.c (dbxout_begin_prologue): New function.
> (dbx_debug_hooks): Use new begin prologue hook.
> (dbxout_function_end): Emit N_ENSYM.
> * stab.def (N_BNSYM, N_ENSYM): Define and document these two new
> stabs.
>
> causes the Alpha stabs-to-mdebug converter to hork.
It's problematic on Solaris too, because the assembler can't grok .stabd
directives.
> It's certain that we shouldn't be using the new stabs without
> extensions enabled. It's also certain that if NO_DBX_FUNCTION_END
> is defined, we're working with a stabs subset.
NO_DBX_FUNCTION_END is not defined on Solaris so I'd like to add an ad-hoc
macro to have a bit more granularity.
OK for mainline?
2004-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
* config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
if the GNU assembler is used.
(sparc-*-solaris2*): Likewise.
* dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
(dbxout_function_end): Protect N_ENSYM with it.
(dbxout_begin_prologue): Protect N_BNSYM with it.
* doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
* config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
* config/sparc/sol2-gas.h: New file.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sol_stabd.diff
Type: text/x-diff
Size: 3610 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040921/0cac95f0/attachment.bin>
More information about the Gcc-patches
mailing list