gcc/gcc/doc
Steven Bosscher c082f9f317 configure.ac (--enable-lto): Add x86_64-apple-darwin* as a platform that supports LTO.
ChangeLog:
	* configure.ac (--enable-lto): Add x86_64-apple-darwin* as
	a platform that supports LTO.
	* configure: Regenerate.

gcc/ChangeLog:
	* config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
	lto-macho as lto_binary_reader.
	* target.h (struct gcc_target): New hooks lto_start and	lto_end.
	* target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
	* cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
	in lto_start and lto_end calls.
	(is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
	magic numbers.
	(scan_prog_file): Update is_elf_or_coff call.
	* doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.

	* collect2.c (main): Fix enum comparison.

	* config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
	Add prototypes.
	* darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
	* darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
	and TARGET_ASM_LTO_END.
	* darwin.c: Include obstack.h and lto-streamer.h.
	(lto_section_names_offset, lto_section_names_obstack,
	lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
	global variables.
	(LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
	(darwin_asm_lto_start): New function.  Redirect output to asm_out_file
	to a temporary file.
	(darwin_asm_lto_end): New function.  Restore asm_out_file.
	(darwin_asm_named_section): For LTO sections, replace the name with
	the offset of the section name in a string table, and build this
	table.
	(darwin_file_start): Initialize global vars for LTO support.
	(darwin_file_end): If output to asm_out_file was redirected, append it
	to the proper asm_out_file here.  Add the section names section.

lto/ChangeLog:
	* lto.h (struct lto_file_struct): Document offset member.
	* lto-endian.h: New file.
	* lto-macho.h: New file.
	* lto-macho.c: New file.
	* Make-lang.in: Add rule for lto-macho.o.

From-SVN: r159173
2010-05-07 21:37:43 +00:00
..
include
arm-neon-intrinsics.texi * doc/arm-neon-intrinsics.texi: Regenerated. 2009-11-18 17:06:46 +00:00
bugreport.texi
cfg.texi c-tree.texi (Types, [...]): Fix grammar nits. 2009-04-27 20:23:51 +00:00
collect2.texi collect2.texi (Collect2): Document search path behaviour when configured with --with-ld. 2009-05-02 22:03:05 +10:00
compat.texi
configfiles.texi configfiles.texi (Configuration Files): Removed fixinc/Makefile*, intl/Makefile.*. 2010-03-22 20:33:33 +00:00
configterms.texi Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
contrib.texi * doc/contrib.texi (Contributors): Add Dodji Seketeli. 2010-04-24 19:34:52 +00:00
contribute.texi
cpp.texi c-common.c (flag_isoc1x): New. 2010-04-25 22:54:22 +01:00
cppenv.texi
cppinternals.texi
cppopts.texi c-common.c (flag_isoc1x): New. 2010-04-25 22:54:22 +01:00
extend.texi * doc/extend.texi (Function Attributes): Fix a typo. 2010-05-02 15:25:21 +00:00
fragments.texi Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
frontends.texi
gcc.texi re PR libstdc++/37907 ([c++0x] support for std::is_standard_layout) 2009-07-16 16:36:10 -04:00
gccint.texi Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi. 2010-03-13 05:38:08 +00:00
gcov.texi Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
generic.texi Fix documentation typos. 2010-04-07 20:49:41 +00:00
gimple.texi gimple.texi (gimple_statement_with_ops): Remove addresses_taken field. 2010-04-27 09:15:11 +00:00
gnu.texi
gty.texi gengtype.c (plugin_output): New. 2009-09-29 18:26:33 +00:00
headerdirs.texi
hostconfig.texi hwint.h (HOST_LONG_FORMAT): New macro 2009-08-25 23:19:16 +00:00
implement-c.texi Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
implement-cxx.texi re PR libstdc++/37907 ([c++0x] support for std::is_standard_layout) 2009-07-16 16:36:10 -04:00
install-old.texi
install.texi config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from list of obsolete configurations. 2010-05-06 18:47:18 +00:00
install.texi2html ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
interface.texi
invoke.texi re PR c/40989 (-Werror= and #pragma diagnostics do not work with group flags) 2010-05-06 10:12:36 +00:00
languages.texi Make-lang.in, [...]: Update copyright years. 2010-04-02 19:54:46 +00:00
libgcc.texi
loop.texi c-tree.texi (Types, [...]): Fix grammar nits. 2009-04-27 20:23:51 +00:00
makefile.texi configfiles.texi (Configuration Files): Removed fixinc/Makefile*, intl/Makefile.*. 2010-03-22 20:33:33 +00:00
md.texi Replace tabs with spaces in .texi files. 2009-12-15 18:36:44 +00:00
objc.texi
options.texi invoke.texi, [...]: Fix typos. 2009-12-16 00:49:41 +00:00
passes.texi passes.texi: Document the Graphite infrastructure. 2009-11-25 05:08:37 +00:00
plugins.texi gcc.c (cc1_options): Handle -iplugindir before processing the cc1 spec. 2010-04-12 23:58:18 +00:00
portability.texi
rtl.texi Make-lang.in, [...]: Update copyright years. 2010-04-02 19:54:46 +00:00
service.texi * doc/service.texi (service directory): Update URL. 2009-08-27 21:21:18 +00:00
sourcebuild.texi Fix documentation typos. 2010-04-07 20:49:41 +00:00
standards.texi Fix link to outdated cxx0x status page. 2010-05-07 20:10:09 +00:00
tm.texi configure.ac (--enable-lto): Add x86_64-apple-darwin* as a platform that supports LTO. 2010-05-07 21:37:43 +00:00
tree-ssa.texi Make-lang.in, [...]: Update copyright years. 2010-04-02 19:54:46 +00:00
trouble.texi Make-lang.in, [...]: Update copyright years. 2010-04-02 19:54:46 +00:00