aboutsummaryrefslogtreecommitdiff
path: root/elfcpp
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-07-03 21:46:59 +0930
committerAlan Modra <amodra@gmail.com>2017-07-03 21:49:34 +0930
commitc8cf1feee1bcb793d919b14853355a7ba09ab836 (patch)
treee4cdd3ffa8a14b63f6cacd2911eff0326fc7e001 /elfcpp
parent7e70564caed5f56b4937ef3f5a51ae2159cabef4 (diff)
downloadgdb-c8cf1feee1bcb793d919b14853355a7ba09ab836.zip
gdb-c8cf1feee1bcb793d919b14853355a7ba09ab836.tar.gz
gdb-c8cf1feee1bcb793d919b14853355a7ba09ab836.tar.bz2
[GOLD] undef after using DW_IDX and friends
* dwarf.h (DW_FIRST_IDX, DW_IDX, DW_IDX_DUP, DW_END_IDX): Undef after using.
Diffstat (limited to 'elfcpp')
-rw-r--r--elfcpp/ChangeLog3
-rw-r--r--elfcpp/dwarf.h5
2 files changed, 7 insertions, 1 deletions
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