This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/70722] include_next in cmath skips user-defined wrapper
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 19 Apr 2016 05:59:47 +0000
- Subject: [Bug libstdc++/70722] include_next in cmath skips user-defined wrapper
- Auto-submitted: auto-generated
- References: <bug-70722-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70722
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |trippels at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
See: http://gcc.gnu.org/gcc-6/porting_to.html
For Firefox the following patch works for me:
diff --git a/nsprpub/config/make-system-wrappers.pl
b/nsprpub/config/make-system-wrappers.pl
index fa0873a78e0a..6a3aee337908 100644
--- a/nsprpub/config/make-system-wrappers.pl
+++ b/nsprpub/config/make-system-wrappers.pl
@@ -19,7 +19,9 @@ while (<STDIN>) {
open OUT, ">$output_dir/$_";
print OUT "#pragma GCC system_header\n"; # suppress include_next warning
print OUT "#pragma GCC visibility push(default)\n";
+ print OUT "#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS\n";
print OUT "#include_next \<$_\>\n";
+ print OUT "#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS\n";
print OUT "#pragma GCC visibility pop\n";
close OUT;
}