aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2020-08-12 14:48:55 +0100
committerGary Benson <gbenson@redhat.com>2020-08-12 14:48:55 +0100
commitc0ab14ae2a448941bc3bdc4266795e6ef2c38d85 (patch)
tree4259a276822c7d83e305b49d746323ce114988c8
parent2e49fd1edf34d7a1db5944ee57071571a0556811 (diff)
downloadgdb-c0ab14ae2a448941bc3bdc4266795e6ef2c38d85.zip
gdb-c0ab14ae2a448941bc3bdc4266795e6ef2c38d85.tar.gz
gdb-c0ab14ae2a448941bc3bdc4266795e6ef2c38d85.tar.bz2
Fix duplicate label in gdb.dwarf2/dw2-op-out-param.S
gdb.dwarf2/dw2-op-out-param.S contained a duplicate label, and failed to build with clang with the following error: gdb compile failed, /gdbtest/src/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S:163:1: error: invalid symbol redefinition .Ltext5: ^ This commit renames the two labels as .Ltext5a and .Ltext5b, and updates all references appropriately. gdb/testsuite/ChangeLog: * gdb.dwarf2/dw2-op-out-param.S (.Ltext5): Fix duplicate label.
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S16
2 files changed, 12 insertions, 8 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index c3765b5..d5e6bba 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2020-08-12 Gary Benson <gbenson@redhat.com>
+
+ * gdb.dwarf2/dw2-op-out-param.S (.Ltext5): Fix duplicate label.
+
2020-08-04 Andrew Burgess <andrew.burgess@embecosm.com>
* lib/check-test-names.exp (do_reset_vars): Use 'array unset' to
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S b/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S
index 2a20b63..325a99d 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S
@@ -153,14 +153,14 @@ breakpt:
sub $0x8,%rsp
add $0x8, %rsp
retq
-.Ltext5:
+.Ltext5a:
.size breakpt, .-breakpt
/* int_param_single_reg_loc */
.globl int_param_single_reg_loc
.type int_param_single_reg_loc, @function
int_param_single_reg_loc:
-.Ltext5:
+.Ltext5b:
sub $0x8,%rsp
.Ltext6:
nop
@@ -248,7 +248,7 @@ int_param_two_reg_pieces:
.LASFDE0:
.long .Lframe0 /* CIE reference */
.quad .Ltext4 /* start */
- .quad .Ltext5-.Ltext4 /* length */
+ .quad .Ltext5a-.Ltext4 /* length */
/* Instructions */
.byte 0x7 /* DW_CFA_undefined */
.uleb128 0x2 /* reg# */
@@ -264,11 +264,11 @@ int_param_two_reg_pieces:
.long .LEFDE2-.LASFDE2 /* length */
.LASFDE2:
.long .Lframe0 /* CIE reference */
- .quad .Ltext5 /* start */
- .quad .Ltext7-.Ltext5 /* length */
+ .quad .Ltext5b /* start */
+ .quad .Ltext7-.Ltext5b /* length */
/* Instructions */
.byte 0x4
- .long .Ltext6-.Ltext5
+ .long .Ltext6-.Ltext5b
.byte 0xe
.uleb128 0x10
.align 8
@@ -357,7 +357,7 @@ int_param_two_reg_pieces:
.string "breakpt" /* DW_AT_name */
.byte 0x1 /* DW_AT_prototyped */
.quad .Ltext4 /* DW_AT_low_pc */
- .quad .Ltext5 /* DW_AT_high_pc */
+ .quad .Ltext5a /* DW_AT_high_pc */
.LDI2:
.uleb128 0x5 /* DW_TAG_base_type */
@@ -401,7 +401,7 @@ int_param_two_reg_pieces:
.byte 0x1 /* DW_AT_external */
.string "int_param_single_reg_loc" /* DW_AT_name */
.byte 0x1 /* DW_AT_prototyped */
- .quad .Ltext5 /* DW_AT_low_pc */
+ .quad .Ltext5b /* DW_AT_low_pc */
.quad .Ltext7 /* DW_AT_high_pc */
.long .LDI11 - .Ldebug_info0 /* DW_AT_sibling */