aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/darwin.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r--gcc/config/darwin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index fd4ff32..a626045 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -1304,7 +1304,10 @@ darwin_globalize_label (FILE *stream, const char *name)
void
darwin_asm_named_section (const char *name, unsigned int flags ATTRIBUTE_UNUSED)
{
- fprintf (asm_out_file, ".section %s\n", name);
+ if (flag_reorder_blocks_and_partition)
+ fprintf (asm_out_file, SECTION_FORMAT_STRING, name);
+ else
+ fprintf (asm_out_file, ".section %s\n", name);
}
unsigned int