summaryrefslogtreecommitdiff
path: root/gcc/config/darwin.c
diff options
context:
space:
mode:
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-18 08:12:56 +0000
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-18 08:12:56 +0000
commitf64b48e2ead18a7376ef387176e4f1711be71e92 (patch)
tree39b77ee32c3ee392fdb9b93500e805b045d06bf2 /gcc/config/darwin.c
parentbcad6fc79144a08329848ae8649ccc2e14ecf3b7 (diff)
downloadgcc-f64b48e2ead18a7376ef387176e4f1711be71e92.tar.gz
add lto to powerpc-*darwin and enable for 32bit darwin
Steven Bosscher <steven@gcc.gnu.org> ChangeLog: * configure.ac (--enable-lto): All *-apple-darwin* now support LTO. * configure: Regenerate. gcc/ChangeLog: * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add lto-macho as lto_binary_reader. * darwin.c (darwin_asm_named_section): Do not add assembler comment after .section directive; just print it before the directive instead. M gcc/config.gcc M gcc/config/darwin.c M ChangeLog M gcc/ChangeLog git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159527 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r--gcc/config/darwin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 93f7babbd6f..6c63d7a32b4 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -1460,8 +1460,9 @@ darwin_asm_named_section (const char *name,
obstack_grow (&lto_section_names_obstack, "\\0\"\n", 4);
/* Output the dummy section name. */
- fprintf (asm_out_file, "\t.section %s,__%08X,regular,debug\t# %s\n",
- LTO_SEGMENT_NAME, lto_section_names_offset, name);
+ fprintf (asm_out_file, "\t# %s\n", name);
+ fprintf (asm_out_file, "\t.section %s,__%08X,regular,debug\n",
+ LTO_SEGMENT_NAME, lto_section_names_offset);
/* Update the offset for the next section name. Make sure we stay
within reasonable length. */