This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
-fdata-sections for uninitialised data (mk III)
- To: Nick Clifton <nickc at cygnus dot com>
- Subject: -fdata-sections for uninitialised data (mk III)
- From: Gavin Romig-Koch <gavin at cygnus dot com>
- Date: Wed, 5 Jan 2000 12:39:17 -0500 (EST)
- Cc: gcc-patches at gcc dot gnu dot org
- References: <200001050141.RAA17716@elmo.cygnus.com>
Nick Clifton writes:
> 2000-01-04 Nick Clifton <nickc@cygnus.com>
>
> * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
> own definition of this macro.
> (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
> flag_data_sections or UNIQUE_SECTION_P are true.
>
> * tm.texi (UNIQUE)SECTION): Document that it can be called for
> unitialised data decls.
>
> * config/i386/winnt.c (i386_pe_unique_section): Cope with
> being called for uninitialised data.
>
> * config/i386/interix.c (i386_pe_unique_section): Cope with
> being called for uninitialised data.
>
> * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
> for uninitialised data.
>
> * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
> for uninitialised data.
>
> * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
> for uninitialised data.
>
> * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
> (UNIQUE_SECTION_P): Always generate a unique section if
> flag_data_sections is true.
> (UNIQUE_SECTION): Also generate unique sections for
> uninitialised data.
> (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
> (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
> named_section().
The mips parts are OK.
-gavin...