]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/dwarf2asm.cc
Update copyright years.
[thirdparty/gcc.git] / gcc / dwarf2asm.cc
index 7eac83f7b0f3340d270e6938b3cc76c7c3a13b3c..6c835bafbc461605e88096f7b8cbb0d8f86169c2 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
 
@@ -35,6 +35,10 @@ along with GCC; see the file COPYING3.  If not see
 #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.  */
@@ -48,7 +52,7 @@ dw2_assemble_integer (int size, rtx x)
         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)
@@ -88,7 +92,7 @@ dw2_assemble_integer (int size, rtx x)
       return;
     }
 
-  const char *op = integer_asm_op (size, FALSE);
+  const char *op = integer_asm_op (size, false);
 
   if (op)
     {
@@ -138,7 +142,7 @@ dw2_asm_output_data (int size, unsigned HOST_WIDE_INT value,
                     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);
 
@@ -380,13 +384,16 @@ dw2_asm_output_nstring (const char *str, size_t orig_len,
 
   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))
@@ -906,7 +913,7 @@ static GTY(()) hash_map<const char *, tree> *indirect_pool;
 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