diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2013-12-01 12:20:58 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2013-12-01 12:20:58 +0000 |
commit | 06623961c72590f9d58271ce9b1cb59c581867e1 (patch) | |
tree | 9d85398ec6dda7aa84f21b3d0487fcd519980a32 /gcc | |
parent | 343ab49260fd5f88e228df6a38cb27b19fb9045f (diff) | |
download | gcc-06623961c72590f9d58271ce9b1cb59c581867e1.zip gcc-06623961c72590f9d58271ce9b1cb59c581867e1.tar.gz gcc-06623961c72590f9d58271ce9b1cb59c581867e1.tar.bz2 |
winnt.c (i386_pe_asm_named_section): Be prepared for an identifier node.
* config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
identifier node.
From-SVN: r205568
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/config/i386/winnt.c | 5 |
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d3a30e9..d4fc7eb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,11 @@ -2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de> +2013-12-01 Eric Botcazou <ebotcazou@adacore.com> - * expr.c (emit_group_store): Corrected BITFIELD_END parameter. + * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an + identifier node. + +2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de> + + * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument. 2013-11-30 Paulo Matos <pmatos@broadcom.com> Eric Botcazou <ebotcazou@adacore.com> diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c index 10a637e..55b38d7 100644 --- a/gcc/config/i386/winnt.c +++ b/gcc/config/i386/winnt.c @@ -565,8 +565,9 @@ i386_pe_asm_named_section (const char *name, unsigned int flags, sets 'discard' characteristic, rather than telling linker to warn of size or content mismatch, so do the same. */ bool discard = (flags & SECTION_CODE) - || lookup_attribute ("selectany", - DECL_ATTRIBUTES (decl)); + || (TREE_CODE (decl) != IDENTIFIER_NODE + && lookup_attribute ("selectany", + DECL_ATTRIBUTES (decl))); fprintf (asm_out_file, "\t.linkonce %s\n", (discard ? "discard" : "same_size")); } |