This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch]: Use .rdata section for initialized consts on mingw and cygwin
On Tue, Oct 07, 2003 at 03:17:34AM +0100, Danny Smith wrote:
>
>----- Original Message -----
>From: "Christopher Faylor" <cgf@redhat.com>
>To: "Danny Smith" <danny_r_smith_2001@yahoo.co.nz>
>Cc: "GCC Patches" <gcc-patches@gcc.gnu.org>; <gp@familiehaase.de>
>Sent: Tuesday, 7 October 2003 00:59
>Subject: Re: [Patch]: Use .rdata section for initialized consts on mingw
>and cygwin
>
>
>> On Tue, Oct 07, 2003 at 09:43:13AM +1000, Danny Smith wrote:
>> >2003-10-06 Danny Smith <dannysmith@users.sourceforge.net>
>> >
>> > * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
>> > (switch_to_section): Handle in_readonly_data.
>> > * config/i386/winnt.c (i386_pe_asm_named_section): Handle
>> > readonly data.
>>
>> Thanks for doing this. Looks good to me. Please check in.
>>
>> Would it make sense for the cygwin-mingw 3.3 branch, too?
>
>My preference would be to put it in FSF 3.3.2 so that we can check
>__GNUC_PATCHLEVEL__ to allow preprocessor switch in e.g.,
> w32api/bastyps.h to put GUID consts in .rdata rather than .text.
Sounds like a good plan.
cgf