/* Dwarf2 assembler output helper routines.
- Copyright (C) 2001-2022 Free Software Foundation, Inc.
+ Copyright (C) 2001-2024 Free Software Foundation, Inc.
This file is part of GCC.
#include "emit-rtl.h"
#include "fold-const.h"
+#ifndef XCOFF_DEBUGGING_INFO
+#define XCOFF_DEBUGGING_INFO 0
+#endif
+
\f
/* Output an unaligned integer with the given value and size. Prefer not
to print a newline, since the caller may want to add a comment. */
relocations usually result in assembler errors. Assume
all such values are positive and emit the relocation only
in the least significant half. */
- const char *op = integer_asm_op (DWARF2_ADDR_SIZE, FALSE);
+ const char *op = integer_asm_op (DWARF2_ADDR_SIZE, false);
if (BYTES_BIG_ENDIAN)
{
if (op)
return;
}
- const char *op = integer_asm_op (size, FALSE);
+ const char *op = integer_asm_op (size, false);
if (op)
{
const char *comment, ...)
{
va_list ap;
- const char *op = integer_asm_op (size, FALSE);
+ const char *op = integer_asm_op (size, false);
va_start (ap, comment);
if (flag_debug_asm && comment)
{
- fputs ("\t.ascii \"", asm_out_file);
+ if (XCOFF_DEBUGGING_INFO)
+ fputs ("\t.byte \"", asm_out_file);
+ else
+ fputs ("\t.ascii \"", asm_out_file);
for (i = 0; i < len; i++)
{
int c = str[i];
if (c == '\"')
- fputc ('\\', asm_out_file);
+ fputc (XCOFF_DEBUGGING_INFO ? '\"' : '\\', asm_out_file);
else if (c == '\\')
fputc ('\\', asm_out_file);
if (ISPRINT (c))
static GTY(()) int dw2_const_labelno;
#if defined(HAVE_GAS_HIDDEN)
-# define USE_LINKONCE_INDIRECT (SUPPORTS_ONE_ONLY)
+# define USE_LINKONCE_INDIRECT (SUPPORTS_ONE_ONLY && !XCOFF_DEBUGGING_INFO)
#else
# define USE_LINKONCE_INDIRECT 0
#endif