+2004-09-24 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.
+
2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/17369
tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
fi
if test x$gas = xyes; then
- tm_file="${tm_file} sparc/sol2-gas-bi.h"
+ tm_file="${tm_file} sparc/sol2-gas.h sparc/sol2-gas-bi.h"
fi
tmake_file="t-sol2 sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
if test x$gnu_ld = xyes; then
if test x$gnu_ld = xyes; then
tm_file="${tm_file} sparc/sol2-gld.h"
fi
+ if test x$gas = xyes; then
+ tm_file="${tm_file} sparc/sol2-gas.h"
+ fi
tmake_file="t-sol2 sparc/t-sol2 sparc/t-crtfm"
if test x$gnu_ld = xyes; then
tmake_file="$tmake_file t-slibgcc-elf-ver"
--- /dev/null
+/* Definitions of target machine for GCC, for SPARC running Solaris 2
+ using the GNU assembler. */
+
+/* Undefine this so that BNSYM/ENSYM pairs are emitted by STABS+. */
+#undef NO_DBX_BNSYM_ENSYM
} \
while (0)
+/* The Solaris assembler cannot grok .stabd directives. */
+#undef NO_DBX_BNSYM_ENSYM
+#define NO_DBX_BNSYM_ENSYM 1
\f
#undef ENDFILE_SPEC
#define NO_DBX_FUNCTION_END 0
#endif
+#ifndef NO_DBX_BNSYM_ENSYM
+#define NO_DBX_BNSYM_ENSYM 0
+#endif
+
enum typestatus {TYPE_UNSEEN, TYPE_XREF, TYPE_DEFINED};
/* Structure recording information about a C data type.
fprintf (asmfile, "\n");
#endif
- if (!flag_debug_only_used_symbols)
+ if (!NO_DBX_BNSYM_ENSYM && !flag_debug_only_used_symbols)
fprintf (asmfile, "%s%d,0,0\n", ASM_STABD_OP, N_ENSYM);
}
#endif /* DBX_DEBUGGING_INFO */
{
if (use_gnu_debug_info_extensions
&& !NO_DBX_FUNCTION_END
+ && !NO_DBX_BNSYM_ENSYM
&& !flag_debug_only_used_symbols)
fprintf (asmfile, "%s%d,0,0\n", ASM_STABD_OP, N_BNSYM);
disturbing the rest of the gdb extensions.
@end defmac
+@defmac NO_DBX_BNSYM_ENSYM
+Some assemblers cannot handle the @code{.stabd BNSYM/ENSYM,0,0} gdb dbx
+extension construct. On those machines, define this macro to turn this
+feature off without disturbing the rest of the gdb extensions.
+@end defmac
+
@node File Names and DBX
@subsection File Names in DBX Format