diff options
author | Sriraman Tallam <tmsriram@google.com> | 2009-08-12 19:03:16 +0000 |
---|---|---|
committer | Sriraman Tallam <tmsriram@google.com> | 2009-08-12 19:03:16 +0000 |
commit | 48c187ced8fcf0c09c26ab1782e63752bf206b4e (patch) | |
tree | 139f6a887edb3544c108164fee359016f5a5a48f /gold/options.h | |
parent | 645afe0c5b028b013231f5890f66376e4dfc811d (diff) | |
download | gdb-48c187ced8fcf0c09c26ab1782e63752bf206b4e.zip gdb-48c187ced8fcf0c09c26ab1782e63752bf206b4e.tar.gz gdb-48c187ced8fcf0c09c26ab1782e63752bf206b4e.tar.bz2 |
Sriraman Tallam <tmsriram@google.com>
* icf.cc (Icf::find_identical_sections): Unfold symbols that have
been maked as --keep-unique.
(Icf::unfold_section): New function.
* icf.h (Icf::unfold_section): New function.
* options.h (General_options::keep_unique): New option.
* testsuite/Makefile.am: Add commands to build icf_keep_unique_test.
* testsuite/Makefile.in: Regenerate.
* testsuite/icf_keep_unique_test.sh: New file.
* testsuite/icf_keep_unique_test.cc: New file.
Diffstat (limited to 'gold/options.h')
-rw-r--r-- | gold/options.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gold/options.h b/gold/options.h index eeade6f..8d444ca 100644 --- a/gold/options.h +++ b/gold/options.h @@ -814,7 +814,7 @@ class General_options N_("Do not link against shared libraries"), NULL); DEFINE_bool(icf, options::TWO_DASHES, '\0', false, - N_("Fold identical functions"), + N_("Identical Code Folding (Fold identical functions)"), N_("Don't fold identical functions (default)")); DEFINE_uint(icf_iterations, options::TWO_DASHES , '\0', 0, @@ -824,6 +824,9 @@ class General_options N_("List folded identical sections on stderr"), N_("Do not list folded identical sections")); + DEFINE_set(keep_unique, options::TWO_DASHES, '\0', + N_("Do not fold this symbol during ICF"), N_("SYMBOL")); + DEFINE_bool(gc_sections, options::TWO_DASHES, '\0', false, N_("Remove unused sections"), N_("Don't remove unused sections (default)")); |