]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Move ASM_COMMENT_START to defaults.h.
authorRichard Henderson <rth@redhat.com>
Sat, 9 Jul 2011 20:18:32 +0000 (13:18 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 9 Jul 2011 20:18:32 +0000 (13:18 -0700)
Note the extreme silliness in dwarf2out.c with 3 (three) copies.

        * defaults.h (ASM_COMMENT_START): Move here...
        * dwarf2asm.c: ... from here.
        * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
        * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
        * varasm.c: Likewise.

From-SVN: r176093

gcc/ChangeLog
gcc/defaults.h
gcc/dwarf2asm.c
gcc/dwarf2out.c
gcc/final.c
gcc/toplev.c
gcc/varasm.c
gcc/vmsdbgout.c

index 99545fc2416d88be83efbf583d8010e672519a76..65cda30a6e0c1fbf633f8917724f2b9d839fd92a 100644 (file)
@@ -1,3 +1,11 @@
+2011-07-09  Richard Henderson  <rth@redhat.com>
+
+       * defaults.h (ASM_COMMENT_START): Move here...
+       * dwarf2asm.c: ... from here.
+       * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
+       * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
+       * varasm.c: Likewise.
+
 2011-07-09  Richard Henderson  <rth@redhat.com>
 
        PR debug/49686
index 5f83b1860f0ab3fcbf7868190952689caaedad19..118cb1c25654ba66235bbc0520ebc824c37090d5 100644 (file)
@@ -28,6 +28,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #ifndef GCC_DEFAULTS_H
 #define GCC_DEFAULTS_H
 
+/* How to start an assembler comment.  */
+#ifndef ASM_COMMENT_START
+#define ASM_COMMENT_START ";#"
+#endif
+
 /* Store in OUTPUT a string (made with alloca) containing an
    assembler-name for a local static variable or function named NAME.
    LABELNO is an integer which is different for each call.  */
index 4c1b6d4e66b29b60bd52078d83fd01e7b70286ba..0b7480ba3c48bc1e068ad163f557d4225661afd1 100644 (file)
@@ -34,12 +34,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "ggc.h"
 #include "tm_p.h"
 
-
-/* How to start an assembler comment.  */
-#ifndef ASM_COMMENT_START
-#define ASM_COMMENT_START ";#"
-#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.  */
index bad0b2d53a1aa95bf866629198184a45b62e3708..211f2704d3ee6204a7b5fdfa50e0a74780a237d6 100644 (file)
@@ -168,11 +168,6 @@ static GTY(()) section *debug_str_section;
 static GTY(()) section *debug_ranges_section;
 static GTY(()) section *debug_frame_section;
 
-/* How to start an assembler comment.  */
-#ifndef ASM_COMMENT_START
-#define ASM_COMMENT_START ";#"
-#endif
-
 /* Maximum size (in bytes) of an artificially generated label.  */
 #define MAX_ARTIFICIAL_LABEL_BYTES     30
 
@@ -277,11 +272,6 @@ static void output_cfa_loc_raw (dw_cfi_ref);
    personality CFI.  */
 static GTY(()) rtx current_unit_personality;
 
-/* How to start an assembler comment.  */
-#ifndef ASM_COMMENT_START
-#define ASM_COMMENT_START ";#"
-#endif
-
 /* Data and reference forms for relocatable data.  */
 #define DW_FORM_data (DWARF_OFFSET_SIZE == 8 ? DW_FORM_data8 : DW_FORM_data4)
 #define DW_FORM_ref (DWARF_OFFSET_SIZE == 8 ? DW_FORM_ref8 : DW_FORM_ref4)
@@ -3479,11 +3469,6 @@ typedef struct skeleton_chain_struct
 }
 skeleton_chain_node;
 
-/* How to start an assembler comment.  */
-#ifndef ASM_COMMENT_START
-#define ASM_COMMENT_START ";#"
-#endif
-
 /* Define a macro which returns nonzero for a TYPE_DECL which was
    implicitly generated for a type.
 
index 483a6452d27a018bbca355e0bcab716ed2659448..3416955d7eeeb20f017013d4a1cffce026c8c8ca 100644 (file)
@@ -106,11 +106,6 @@ along with GCC; see the file COPYING3.  If not see
 #define CC_STATUS_INIT
 #endif
 
-/* How to start an assembler comment.  */
-#ifndef ASM_COMMENT_START
-#define ASM_COMMENT_START ";#"
-#endif
-
 /* Is the given character a logical line separator for the assembler?  */
 #ifndef IS_ASM_LOGICAL_LINE_SEPARATOR
 #define IS_ASM_LOGICAL_LINE_SEPARATOR(C, STR) ((C) == ';')
index 4591c30264dbf8c8a916e25ae905750a554a9616..109325cc871a9698628d167fcba8b61e22c9b7ba 100644 (file)
@@ -722,7 +722,6 @@ print_version (FILE *file, const char *indent)
   print_plugins_versions (file, indent);
 }
 
-#ifdef ASM_COMMENT_START
 static int
 print_to_asm_out_file (print_switch_type type, const char * text)
 {
@@ -755,7 +754,6 @@ print_to_asm_out_file (print_switch_type type, const char * text)
       return -1;
     }
 }
-#endif
 
 static int
 print_to_stderr (print_switch_type type, const char * text)
@@ -921,7 +919,6 @@ init_asm_output (const char *name)
            inform (input_location, "-frecord-gcc-switches is not supported by the current target");
        }
 
-#ifdef ASM_COMMENT_START
       if (flag_verbose_asm)
        {
          /* Print the list of switches in effect
@@ -930,7 +927,6 @@ init_asm_output (const char *name)
          print_switch_values (print_to_asm_out_file);
          putc ('\n', asm_out_file);
        }
-#endif
     }
 }
 
index cfdf8d7d13ef22af97a692b664f015d47a5e5494..b0690f50a5109f5aa5f310db3936278753088d33 100644 (file)
@@ -5062,14 +5062,12 @@ output_constructor (tree exp, unsigned HOST_WIDE_INT size,
       else if (TREE_CODE (local.type) == ARRAY_TYPE)
        local.index = ce->index;
 
-#ifdef ASM_COMMENT_START
       if (local.field && flag_verbose_asm)
        fprintf (asm_out_file, "%s %s:\n",
                 ASM_COMMENT_START,
                 DECL_NAME (local.field)
                 ? IDENTIFIER_POINTER (DECL_NAME (local.field))
                 : "<anonymous>");
-#endif
 
       /* Eliminate the marker that makes a cast not be an lvalue.  */
       if (local.val != NULL_TREE)
@@ -6180,12 +6178,10 @@ default_elf_asm_named_section (const char *name, unsigned int flags,
        type = "progbits";
 
       format = ",@%s";
-#ifdef ASM_COMMENT_START
       /* On platforms that use "@" as the assembly comment character,
         use "%" instead.  */
       if (strcmp (ASM_COMMENT_START, "@") == 0)
        format = ",%%%s";
-#endif
       fprintf (asm_out_file, format, type);
 
       if (flags & SECTION_ENTSIZE)
index 1d58d690705adfe8dd12ee86dc6d3c86d0687d8b..84a96c010e7d01fa8d5f0a845289393f022cff16 100644 (file)
@@ -74,11 +74,6 @@ typedef struct dst_file_info_struct
 }
 dst_file_info_entry;
 
-/* How to start an assembler comment.  */
-#ifndef ASM_COMMENT_START
-#define ASM_COMMENT_START ";#"
-#endif
-
 /* Maximum size (in bytes) of an artificially generated label.  */
 #define MAX_ARTIFICIAL_LABEL_BYTES     30