From a56e7c0854c156a0555743d1b98597c650cf6499 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 5 Jan 2000 23:26:06 +0000 Subject: Add support for generating unique sections for unitialised data. From-SVN: r31250 --- gcc/config/i386/winnt.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/config/i386/winnt.c') diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c index 2c2ce76..13701e2 100644 --- a/gcc/config/i386/winnt.c +++ b/gcc/config/i386/winnt.c @@ -480,6 +480,9 @@ i386_pe_unique_section (decl, reloc) without a .rdata section. */ if (TREE_CODE (decl) == FUNCTION_DECL) prefix = ".text$"; + else if (DECL_INITIAL (decl) == 0 + || DECL_INITIAL (decl) == error_mark_node) + prefix = ""; else if (DECL_READONLY_SECTION (decl, reloc)) #ifdef READONLY_DATA_SECTION prefix = ".rdata$"; -- cgit v1.1