]> gcc.gnu.org Git - gcc.git/commitdiff
winnt.c (i386_pe_asm_named_section): Be prepared for an identifier node.
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 1 Dec 2013 12:20:58 +0000 (12:20 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 1 Dec 2013 12:20:58 +0000 (12:20 +0000)
* config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
identifier node.

From-SVN: r205568

gcc/ChangeLog
gcc/config/i386/winnt.c

index d3a30e9073a835fd90f5e5d3741689133b6d5b76..d4fc7ebc3768d0d1e65ffa5a1e9ab96010e956cc 100644 (file)
@@ -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>
index 10a637eddbcb1e9ba435419c4b308b2123c81f88..55b38d7b4afd235426f0f147664f6e50c92e8eac 100644 (file)
@@ -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"));
     }
This page took 0.100293 seconds and 5 git commands to generate.