aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2010-05-18 08:12:56 +0000
committerIain Sandoe <iains@gcc.gnu.org>2010-05-18 08:12:56 +0000
commit02540df4e6b7c030012c1c5d1383dc03a41f6f8e (patch)
tree39b77ee32c3ee392fdb9b93500e805b045d06bf2 /gcc
parent451078b5e0ebc5a97db4fa973088ec58ff11ece6 (diff)
downloadgcc-02540df4e6b7c030012c1c5d1383dc03a41f6f8e.zip
gcc-02540df4e6b7c030012c1c5d1383dc03a41f6f8e.tar.gz
gcc-02540df4e6b7c030012c1c5d1383dc03a41f6f8e.tar.bz2
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 From-SVN: r159527
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config.gcc2
-rw-r--r--gcc/config/darwin.c5
3 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e677aeb..56d1b0b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
+
+ * 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.
+
2010-05-17 Jan Hubicka <jh@suse.cz>
* cgraph.c (cgraph_create_virtual_clone): Only check
diff --git a/gcc/config.gcc b/gcc/config.gcc
index da56fbe..2c4d121 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1891,12 +1891,14 @@ powerpc-*-darwin*)
*-darwin[0-6]*)
;;
esac
+ lto_binary_reader=lto-macho
extra_headers=altivec.h
;;
powerpc64-*-darwin*)
tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h"
extra_options="${extra_options} ${cpu_type}/darwin.opt"
# We're omitting t-darwin8 to avoid building any multilibs
+ lto_binary_reader=lto-macho
extra_headers=altivec.h
;;
powerpc*-*-freebsd*)
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 93f7bab..6c63d7a 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. */