]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/54314 (undefined references to 'construction vtable for std::ostream...
authorJakub Jelinek <jakub@gcc.gnu.org>
Mon, 4 Feb 2013 17:19:56 +0000 (18:19 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 4 Feb 2013 17:19:56 +0000 (18:19 +0100)
PR libstdc++/54314
* config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
about visibility on artificial decls.
* config/sol2.c (solaris_assemble_visibility): Likewise.

From-SVN: r195723

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

index 7d0988c5ed3dfe2684143b19bce14565bd65b78e..cc67ff91508e0ca13f923309ad9b45c31139b2ff 100644 (file)
@@ -1,3 +1,10 @@
+2013-02-04  Jakub Jelinek  <jakub@redhat.com>
+
+       PR libstdc++/54314
+       * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
+       about visibility on artificial decls.
+       * config/sol2.c (solaris_assemble_visibility): Likewise.
+
 2013-02-04  Kai Tietz  <ktietz@redhat.com>
 
        PR target/56186
@@ -9,10 +16,9 @@
        (return_in_memory_ms_64): Sync 16-byte sized mode handling with
        handling infunction_value_64 function.
 
-
 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
 
-       * gcc/reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
+       * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
 
 2013-02-04  Richard Biener  <rguenther@suse.de>
 
index d14e11d4face23ef283bc3de4a4d927779b90ac9..118b1ecb0074bd0161da65406e4ce293b238e91a 100644 (file)
@@ -250,8 +250,9 @@ i386_pe_assemble_visibility (tree decl,
   if (!decl
       || !lookup_attribute ("visibility", DECL_ATTRIBUTES (decl)))
     return;
-  warning (OPT_Wattributes, "visibility attribute not supported "
-          "in this configuration; ignored");
+  if (!DECL_ARTIFICIAL (decl))
+    warning (OPT_Wattributes, "visibility attribute not supported "
+                             "in this configuration; ignored");
 }
 
 /* This is used as a target hook to modify the DECL_ASSEMBLER_NAME
index 0b7699b2496d45ad9f0479916995c51b503d0368..33c8c3d53157ffd058295ade461fc472b42c3e45 100644 (file)
@@ -124,8 +124,7 @@ solaris_output_init_fini (FILE *file, tree decl)
    the visibility type VIS, which must not be VISIBILITY_DEFAULT.  */
 
 void
-solaris_assemble_visibility (tree decl ATTRIBUTE_UNUSED,
-                            int vis ATTRIBUTE_UNUSED)
+solaris_assemble_visibility (tree decl, int vis ATTRIBUTE_UNUSED)
 {
 #ifdef HAVE_GAS_HIDDEN
   /* Sun as uses .symbolic for STV_PROTECTED.  STV_INTERNAL is marked as
@@ -152,8 +151,9 @@ solaris_assemble_visibility (tree decl ATTRIBUTE_UNUSED,
   assemble_name (asm_out_file, name);
   fprintf (asm_out_file, "\n");
 #else
-  warning (OPT_Wattributes, "visibility attribute not supported "
-          "in this configuration; ignored");
+  if (!DECL_ARTIFICIAL (decl))
+    warning (OPT_Wattributes, "visibility attribute not supported "
+                             "in this configuration; ignored");
 #endif
 }