summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-03 20:45:01 +0000
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-03 20:45:01 +0000
commit44bbb5f37df96b6aa1bce7ef396fb6100a1b2b95 (patch)
treedce3e07e2b70a2d683eee64990c15bab9c7a1363 /gcc/dwarf2out.c
parentff2e99a48c55be7196be09c54e06ec5cbb40c0b0 (diff)
downloadgcc-44bbb5f37df96b6aa1bce7ef396fb6100a1b2b95.tar.gz
* dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67403 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index aa657802e3f..3d908e47325 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -3908,7 +3908,9 @@ static int maybe_emit_file PARAMS ((int));
/* Section flags for .debug_str section. */
#ifdef HAVE_GAS_SHF_MERGE
#define DEBUG_STR_SECTION_FLAGS \
- (SECTION_DEBUG | SECTION_MERGE | SECTION_STRINGS | 1)
+ (flag_merge_constants \
+ ? SECTION_DEBUG | SECTION_MERGE | SECTION_STRINGS | 1 \
+ : SECTION_DEBUG)
#else
#define DEBUG_STR_SECTION_FLAGS SECTION_DEBUG
#endif