This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] loosen eh4.d test regexps so x86_64-*-nacl* passes too
- From: Roland McGrath <mcgrathr at google dot com>
- To: binutils at sourceware dot org
- Date: Tue, 22 May 2012 11:25:27 -0700
- Subject: [PATCH] loosen eh4.d test regexps so x86_64-*-nacl* passes too
This is the very same issue as the last change I posted, solved similarly.
In future, please contact me before adding any XFAILs or exclusions for
any *-*-nacl* targets. We don't want to have any less testing for these
targets, and usually simple tweaks like these are all it takes.
Ok for trunk?
Thanks,
Roland
ld/testsuite/
* ld-elf/eh4.d: Revert last change.
Loosen CFI-matching regexps so they match x86_64-*-nacl* variant too.
diff --git a/ld/testsuite/ld-elf/eh4.d b/ld/testsuite/ld-elf/eh4.d
index a708efd..29f418f 100644
--- a/ld/testsuite/ld-elf/eh4.d
+++ b/ld/testsuite/ld-elf/eh4.d
@@ -3,7 +3,7 @@
#as: --64
#ld: -melf_x86_64 -shared -Ttext 0x400
#readelf: -wf
-#notarget: x86_64-*-linux-gnux32 x86_64-*-nacl*
+#notarget: x86_64-*-linux-gnux32
#target: x86_64-*-*
Contents of the .eh_frame section:
@@ -29,17 +29,14 @@ Contents of the .eh_frame section:
DW_CFA_set_loc: 00000417
DW_CFA_def_cfa_offset: 80
-00000048 00000024 0000004c FDE cie=00000000 pc=00000240..00000260
+00000048 00000024 0000004c FDE cie=00000000 pc=[0-9a-f]+\.\.[0-9a-f]+
DW_CFA_def_cfa_offset: 16
- DW_CFA_advance_loc: 6 to 00000246
+ DW_CFA_advance_loc: [0-9a-f]+ to [0-9a-f]+
DW_CFA_def_cfa_offset: 24
- DW_CFA_advance_loc: 10 to 00000250
- DW_CFA_def_cfa_expression \(DW_OP_breg7 \(rsp\): 8; DW_OP_breg16 \(rip\): 0; DW_OP_lit15; DW_OP_and; DW_OP_lit11; DW_OP_ge; DW_OP_lit3; DW_OP_shl; DW_OP_plus\)
- DW_CFA_nop
- DW_CFA_nop
- DW_CFA_nop
+ DW_CFA_advance_loc: [0-9a-f]+ to [0-9a-f]+
+ DW_CFA_def_cfa_expression \(DW_OP_breg7 \(rsp\): 8; DW_OP_breg16 \(rip\): 0;.*
DW_CFA_nop
+#...
-00000070 ZERO terminator
+[0-9a-f]+ ZERO terminator
#pass
-