From: Gary Benson Date: Wed, 12 Aug 2020 13:48:55 +0000 (+0100) Subject: Fix duplicate label in gdb.dwarf2/dw2-op-out-param.S X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0ab14ae2a448941bc3bdc4266795e6ef2c38d85;p=binutils-gdb.git 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. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c3765b58220..d5e6bba195f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2020-08-12 Gary Benson + + * gdb.dwarf2/dw2-op-out-param.S (.Ltext5): Fix duplicate label. + 2020-08-04 Andrew Burgess * 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 2a20b638c11..325a99d2028 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 */