aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-01-18 15:46:43 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2008-01-18 15:46:43 +0000
commit28a0816854bc2a988f69f6f6a41455208b97ac96 (patch)
tree84df8eb9f36c5fe1275521e9196420e0b58781f1 /gcc/dwarf2out.c
parent1ea193c21f060b7e7837138122b24c9d07f57d57 (diff)
downloadgcc-28a0816854bc2a988f69f6f6a41455208b97ac96.zip
gcc-28a0816854bc2a988f69f6f6a41455208b97ac96.tar.gz
gcc-28a0816854bc2a988f69f6f6a41455208b97ac96.tar.bz2
common.opt: Add fmerge-debug-strings.
./: * common.opt: Add fmerge-debug-strings. * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test flag_merge_debug_strings rather than flag_merge_constants. * doc/invoke.texi (Option Summary): Mention -fmerge-debug-strings. (Debugging Options): Document -fmerge-debug-strings. testsuite/: * gcc.dg/debug/dwarf2/var1.c: Add -fno-merge-debug-strings. From-SVN: r131630
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index d06e499..3a5b897c 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -4393,7 +4393,7 @@ static int maybe_emit_file (struct dwarf_file_data *fd);
/* Section flags for .debug_str section. */
#define DEBUG_STR_SECTION_FLAGS \
- (HAVE_GAS_SHF_MERGE && flag_merge_constants \
+ (HAVE_GAS_SHF_MERGE && flag_merge_debug_strings \
? SECTION_DEBUG | SECTION_MERGE | SECTION_STRINGS | 1 \
: SECTION_DEBUG)