aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-10-13 14:57:31 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2015-10-13 14:57:31 +0200
commit16315711d815580afa77f93424cc49c7362ab5b8 (patch)
tree09c5d771858c83a606f26dbfcf7b266822778135 /common
parentdaed22eb5afdc86267c8f90b55008267c9383fca (diff)
downloadcompcert-16315711d815580afa77f93424cc49c7362ab5b8.tar.gz
compcert-16315711d815580afa77f93424cc49c7362ab5b8.zip
Implement the usage of the debug_str section for the gcc backend.
GCC prints all string larger than 3 characters in the debug_str section which reduces the size of the debug information since entries containing the same string now map to the same string in the debug_str sections. Bug 17392.
Diffstat (limited to 'common')
-rw-r--r--common/Sections.ml3
-rw-r--r--common/Sections.mli3
2 files changed, 4 insertions, 2 deletions
diff --git a/common/Sections.ml b/common/Sections.ml
index cc8b0758..70311d4e 100644
--- a/common/Sections.ml
+++ b/common/Sections.ml
@@ -27,10 +27,11 @@ type section_name =
| Section_literal
| Section_jumptable
| Section_user of string * bool (*writable*) * bool (*executable*)
- | Section_debug_info of string
| Section_debug_abbrev
+ | Section_debug_info of string
| Section_debug_loc
| Section_debug_line of string
+ | Section_debug_str
type access_mode =
| Access_default
diff --git a/common/Sections.mli b/common/Sections.mli
index 7a8c8225..276fc047 100644
--- a/common/Sections.mli
+++ b/common/Sections.mli
@@ -26,10 +26,11 @@ type section_name =
| Section_literal
| Section_jumptable
| Section_user of string * bool (*writable*) * bool (*executable*)
- | Section_debug_info of string
| Section_debug_abbrev
+ | Section_debug_info of string
| Section_debug_loc
| Section_debug_line of string
+ | Section_debug_str
type access_mode =
| Access_default