diff options
author | Jakub Jelinek <jakub@gcc.gnu.org> | 2013-02-04 18:19:56 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2013-02-04 18:19:56 +0100 |
commit | 7ac3af38365579c83426d3d6ddb6c62884d9f5d1 (patch) | |
tree | 110a7945e90f561a988048fcfafeacd627c78af5 /gcc | |
parent | 85018f40aedb5d60c63a8f3f85f17d71c84b01ac (diff) | |
download | gcc-7ac3af38365579c83426d3d6ddb6c62884d9f5d1.zip gcc-7ac3af38365579c83426d3d6ddb6c62884d9f5d1.tar.gz gcc-7ac3af38365579c83426d3d6ddb6c62884d9f5d1.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/config/i386/winnt.c | 5 | ||||
-rw-r--r-- | gcc/config/sol2.c | 8 |
3 files changed, 15 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7d0988c..cc67ff9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c index d14e11d..118b1ec 100644 --- a/gcc/config/i386/winnt.c +++ b/gcc/config/i386/winnt.c @@ -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 diff --git a/gcc/config/sol2.c b/gcc/config/sol2.c index 0b7699b..33c8c3d 100644 --- a/gcc/config/sol2.c +++ b/gcc/config/sol2.c @@ -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 } |