This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r136909 - in /branches/lto/gcc: ChangeLog.lto l...
- From: aaw at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 18 Jun 2008 20:22:25 -0000
- Subject: r136909 - in /branches/lto/gcc: ChangeLog.lto l...
Author: aaw
Date: Wed Jun 18 20:22:24 2008
New Revision: 136909
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136909
Log:
gcc/
* langhooks-def.h (lhd_begin_section): New function declaration.
(lhd_write_section): New function declaration.
(lhd_end_section): New function declaration.
(LANG_HOOKS_BEGIN_SECTION): New macro.
(LANG_HOOKS_WRITE_SECTION_DATA): New macro.
(LANG_HOOKS_END_SECTION): New macro.
(LANG_HOOKS_LTO): New macro.
(LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
* langhooks.c (output.h): Add include.
(saved_section): New static variable.
(lhd_begin_section): New function.
(lhd_write_section_data): New function.
(lhd_end_section): New function.
* langhooks.h (struct lang_hooks_for_lto): New structure.
(struct lang_hooks): Add member lto.
* lto-function-out.c (output.h): Remove include.
(produce_asm): Call the lto.begin_section, lto.write_section_data, and
lto.end_section language hooks.
(lto_output): Remove saved_section and call to switch_to_section.
* lto-section-out.c (output.h): Remove include.
(lto_get_section): Remove function.
(lto_write_stream): Call the lto.write_section_data language hook.
(lto_destroy_simple_output_block): Call the lto.begin_section,
lto.write_section_data, and lto.end_section language hooks.
(produce_asm_for_decls): Call the lto.begin_section,
lto.write_section_data, and lto.end_section language hooks.
* lto-header.h (lto_get_section): Remove function declaration.
Modified:
branches/lto/gcc/ChangeLog.lto
branches/lto/gcc/langhooks-def.h
branches/lto/gcc/langhooks.c
branches/lto/gcc/langhooks.h
branches/lto/gcc/lto-function-out.c
branches/lto/gcc/lto-header.h
branches/lto/gcc/lto-section-out.c