Commit 7ac3af38 by Jakub Jelinek

re PR libstdc++/54314 (undefined references to 'construction vtable for…

re PR libstdc++/54314 (undefined references to 'construction vtable for std::ostream-in-std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >')

	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
parent 85018f40
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>
......
......@@ -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
......
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment