[GOLD] undef after using DW_IDX and friends
authorAlan Modra <amodra@gmail.com>
Mon, 3 Jul 2017 12:16:59 +0000 (21:46 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 3 Jul 2017 12:19:34 +0000 (21:49 +0930)
* dwarf.h (DW_FIRST_IDX, DW_IDX, DW_IDX_DUP, DW_END_IDX): Undef
after using.

elfcpp/ChangeLog
elfcpp/dwarf.h

index 1ca1df17f80071253ccceda45be6ef228df658bd..fc864bf6fadc4e6719971fb0efe97d6915ac878f 100644 (file)
@@ -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>
 
index 85004a4ba9ca4425bc1f4d33a5d8667fe2c9eeef..e5053c4444d3729f80d9249f1057ea97464d13fe 100644 (file)
@@ -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