diff options
Diffstat (limited to 'gcc/config/i386')
-rw-r--r-- | gcc/config/i386/interix.c | 3 | ||||
-rw-r--r-- | gcc/config/i386/winnt.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/i386/interix.c b/gcc/config/i386/interix.c index 5a2b8b6ab41..4f4f8233e18 100644 --- a/gcc/config/i386/interix.c +++ b/gcc/config/i386/interix.c @@ -93,6 +93,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$"; diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c index 2c2ce763359..13701e2c4e2 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$"; |