diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/varasm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 3ecf9e0..ac256ef 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1340,6 +1340,12 @@ use_blocks_for_decl_p (tree decl) { struct symtab_node *snode; + /* Don't create object blocks if each DECL is placed into a separate + section because that will uselessly create a section anchor for + each DECL. */ + if (flag_data_sections) + return false; + /* Only data DECLs can be placed into object blocks. */ if (!VAR_P (decl) && TREE_CODE (decl) != CONST_DECL) return false; |