aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>2018-08-15 09:19:39 +0000
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>2018-08-15 09:19:39 +0000
commit0f7228d4b5ae3a8644b9411bb262560cc4c21ffe (patch)
tree89a7c6b5af664de8a2da8b22d31207c8437ab013
parentbf82eff7334feda8e0df4ff69403076febd8fe1f (diff)
Update Darwin section names for DWARF5
gcc/ 2018-08-15 Iain Sandoe <iain@sandoe.co.uk> PR target/81685 * config/darwin.h: (DEBUG_STR_OFFSETS_SECTION, DEBUG_LOCLISTS_SECTION, DEBUG_RNGLISTS_SECTION) new macros. (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION) update to include GNU variant. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@263553 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/darwin.h33
2 files changed, 28 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 40c7be5470a..16d89d4abe1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2018-08-15 Iain Sandoe <iain@sandoe.co.uk>
+
+ PR target/81685
+ * config/darwin.h: (DEBUG_STR_OFFSETS_SECTION, DEBUG_LOCLISTS_SECTION,
+ DEBUG_RNGLISTS_SECTION) new macros. (DEBUG_PUBNAMES_SECTION,
+ DEBUG_PUBTYPES_SECTION) update to include GNU variant.
+
2018-08-15 Martin Liska <mliska@suse.cz>
PR tree-optimization/86925
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index 980ad9b4057..f27c077b8ea 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -430,18 +430,20 @@ extern GTY(()) int darwin_ms_struct;
#define DWARF2_DEBUGGING_INFO 1
-#define DEBUG_FRAME_SECTION "__DWARF,__debug_frame,regular,debug"
-#define DEBUG_INFO_SECTION "__DWARF,__debug_info,regular,debug"
-#define DEBUG_ABBREV_SECTION "__DWARF,__debug_abbrev,regular,debug"
-#define DEBUG_ARANGES_SECTION "__DWARF,__debug_aranges,regular,debug"
-#define DEBUG_MACINFO_SECTION "__DWARF,__debug_macinfo,regular,debug"
-#define DEBUG_LINE_SECTION "__DWARF,__debug_line,regular,debug"
-#define DEBUG_LOC_SECTION "__DWARF,__debug_loc,regular,debug"
-#define DEBUG_PUBNAMES_SECTION "__DWARF,__debug_pubnames,regular,debug"
-#define DEBUG_PUBTYPES_SECTION "__DWARF,__debug_pubtypes,regular,debug"
-#define DEBUG_STR_SECTION "__DWARF,__debug_str,regular,debug"
-#define DEBUG_RANGES_SECTION "__DWARF,__debug_ranges,regular,debug"
-#define DEBUG_MACRO_SECTION "__DWARF,__debug_macro,regular,debug"
+#define DEBUG_FRAME_SECTION "__DWARF,__debug_frame,regular,debug"
+#define DEBUG_INFO_SECTION "__DWARF,__debug_info,regular,debug"
+#define DEBUG_ABBREV_SECTION "__DWARF,__debug_abbrev,regular,debug"
+#define DEBUG_ARANGES_SECTION "__DWARF,__debug_aranges,regular,debug"
+#define DEBUG_MACINFO_SECTION "__DWARF,__debug_macinfo,regular,debug"
+#define DEBUG_LINE_SECTION "__DWARF,__debug_line,regular,debug"
+#define DEBUG_LOC_SECTION "__DWARF,__debug_loc,regular,debug"
+#define DEBUG_LOCLISTS_SECTION "__DWARF,__debug_loclists,regular,debug"
+
+#define DEBUG_STR_SECTION "__DWARF,__debug_str,regular,debug"
+#define DEBUG_STR_OFFSETS_SECTION "__DWARF,__debug_str_offs,regular,debug"
+#define DEBUG_RANGES_SECTION "__DWARF,__debug_ranges,regular,debug"
+#define DEBUG_RNGLISTS_SECTION "__DWARF,__debug_rnglists,regular,debug"
+#define DEBUG_MACRO_SECTION "__DWARF,__debug_macro,regular,debug"
#define DEBUG_LTO_INFO_SECTION "__GNU_DWARF_LTO,__debug_info,regular,debug"
#define DEBUG_LTO_ABBREV_SECTION "__GNU_DWARF_LTO,__debug_abbrev,regular,debug"
@@ -451,6 +453,13 @@ extern GTY(()) int darwin_ms_struct;
#define DEBUG_LTO_MACRO_SECTION "__GNU_DWARF_LTO,__debug_macro,regular,debug"
#define TARGET_WANT_DEBUG_PUB_SECTIONS true
+#define DEBUG_PUBNAMES_SECTION ((debug_generate_pub_sections == 2) \
+ ? "__DWARF,__debug_gnu_pubn,regular,debug" \
+ : "__DWARF,__debug_pubnames,regular,debug")
+
+#define DEBUG_PUBTYPES_SECTION ((debug_generate_pub_sections == 2) \
+ ? "__DWARF,__debug_gnu_pubt,regular,debug" \
+ : "__DWARF,__debug_pubtypes,regular,debug")
/* When generating stabs debugging, use N_BINCL entries. */