This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] [GOLD] undef after using DW_IDX and friends
- From: Alan Modra <amodra at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 3 Jul 2017 12:22:24 -0000
- Subject: [binutils-gdb] [GOLD] undef after using DW_IDX and friends
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c8cf1feee1bcb793d919b14853355a7ba09ab836
commit c8cf1feee1bcb793d919b14853355a7ba09ab836
Author: Alan Modra <amodra@gmail.com>
Date: Mon Jul 3 21:46:59 2017 +0930
[GOLD] undef after using DW_IDX and friends
* dwarf.h (DW_FIRST_IDX, DW_IDX, DW_IDX_DUP, DW_END_IDX): Undef
after using.
Diff:
---
elfcpp/ChangeLog | 3 ++-
elfcpp/dwarf.h | 5 +++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/elfcpp/ChangeLog b/elfcpp/ChangeLog
index 1ca1df1..fc864bf 100644
--- a/elfcpp/ChangeLog
+++ b/elfcpp/ChangeLog
@@ -1,6 +1,7 @@
2017-07-03 Alan Modra <amodra@gmail.com>
- * dwarf.h (DW_FIRST_IDX, DW_IDX, DW_IDX_DUP, DW_END_IDX): Define.
+ * dwarf.h (DW_FIRST_IDX, DW_IDX, DW_IDX_DUP, DW_END_IDX): Define,
+ and undefine after using.
2017-06-21 Alan Modra <amodra@gmail.com>
diff --git a/elfcpp/dwarf.h b/elfcpp/dwarf.h
index 85004a4..e5053c4 100644
--- a/elfcpp/dwarf.h
+++ b/elfcpp/dwarf.h
@@ -110,6 +110,11 @@ namespace elfcpp
#undef DW_CFA
#undef DW_END_CFA
+#undef DW_FIRST_IDX
+#undef DW_IDX
+#undef DW_IDX_DUP
+#undef DW_END_IDX
+
// Frame unwind information.
enum DW_EH_PE