This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFA: Fix testranges.s on ARM


This file uses "@progbits" and ".long 0 # comment".  The ARM assembler
has "@" as a comment character, but "#" is still a line comment
character.  This was the best fix I could think of without deleting
the comments entirely - ugly, but still readable.

OK to commit?

-- 
Daniel Jacobowitz
CodeSourcery

2009-07-31  Daniel Jacobowitz  <dan@codesourcery.com>

	* binutils-all/testranges.s: Avoid @progbits and mid-line "#"
	comments.

Index: binutils-all/testranges.s
===================================================================
RCS file: /cvs/src/src/binutils/testsuite/binutils-all/testranges.s,v
retrieving revision 1.2
diff -u -p -r1.2 testranges.s
--- binutils-all/testranges.s	29 Jul 2009 06:10:18 -0000	1.2
+++ binutils-all/testranges.s	31 Jul 2009 15:29:11 -0000
@@ -8,50 +8,74 @@ sub:
 	.byte	2
 end:
 
-	.section	.debug_ranges,"",@progbits
+	.section	.debug_ranges,"",%progbits
 range:
 
 range_sub:
 	.long	sub, end
-	.long	0, 0	# range terminator
+# range terminator
+	.long	0, 0
 
 range_cu:
 	.long	start, end
-	.long	0, 0	# range terminator
+# range terminator
+	.long	0, 0
 
-	.section	.debug_info,"",@progbits
-	.long	debugE - debugS	# Length of Compilation Unit Info
+	.section	.debug_info,"",%progbits
+# Length of Compilation Unit Info
+	.long	debugE - debugS
 debugS:
-	.short	0x2	# DWARF version number
-	.long	abbrev0	# Offset Into Abbrev. Section
-	.byte	0x4	# Pointer Size (in bytes)
-
-	.uleb128 0x1	# (DIE (0xb) DW_TAG_compile_unit)
-	.long	range_cu - range	# DW_AT_ranges
-
-	.uleb128 0x2	# (DIE (0x6d) DW_TAG_subprogram)
-	.ascii "A\0"	# DW_AT_name
-	.long	range_sub - range	# DW_AT_ranges
+# DWARF version number
+	.short	0x2
+# Offset Into Abbrev. Section
+	.long	abbrev0
+# Pointer Size (in bytes)
+	.byte	0x4
+
+# (DIE (0xb) DW_TAG_compile_unit)
+	.uleb128 0x1
+# DW_AT_ranges
+	.long	range_cu - range
+
+# (DIE (0x6d) DW_TAG_subprogram)
+	.uleb128 0x2
+# DW_AT_name
+	.ascii "A\0"
+# DW_AT_ranges
+	.long	range_sub - range
 debugE:
 
-	.section	.debug_abbrev,"",@progbits
+	.section	.debug_abbrev,"",%progbits
 abbrev0:
-	.uleb128 0x1	# (abbrev code)
-	.uleb128 0x11	# (TAG: DW_TAG_compile_unit)
-	.byte	0x0	# DW_children_no
-	.uleb128 0x55	# (DW_AT_ranges)
-	.uleb128 0x6	# (DW_FORM_data4)
+# (abbrev code)
+	.uleb128 0x1
+# (TAG: DW_TAG_compile_unit)
+	.uleb128 0x11
+# DW_children_no
+	.byte	0x0
+# (DW_AT_ranges)
+	.uleb128 0x55
+# (DW_FORM_data4)
+	.uleb128 0x6
 	.byte	0x0
 	.byte	0x0
 
-	.uleb128 0x2	# (abbrev code)
-	.uleb128 0x2e	# (TAG: DW_TAG_subprogram)
-	.byte	0x0	# DW_children_no
-	.uleb128 0x3	# (DW_AT_name)
-	.uleb128 0x8	# (DW_FORM_string)
-	.uleb128 0x55	# (DW_AT_ranges)
-	.uleb128 0x6	# (DW_FORM_data4)
+# (abbrev code)
+	.uleb128 0x2
+# (TAG: DW_TAG_subprogram)
+	.uleb128 0x2e
+# DW_children_no
+	.byte	0x0
+# (DW_AT_name)
+	.uleb128 0x3
+# (DW_FORM_string)
+	.uleb128 0x8
+# (DW_AT_ranges)
+	.uleb128 0x55
+# (DW_FORM_data4)
+	.uleb128 0x6
 	.byte	0x0
 	.byte	0x0
 
-	.byte	0x0	# abbrevs terminator
+# abbrevs terminator
+	.byte	0x0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]