22720117 GCC 5.3 wants to use xpg6 instead of xpg7 for C++11/14
authorNorm Jacobs <Norm.Jacobs@Oracle.COM>
Thu, 11 Feb 2016 13:36:30 -0800
changeset 5444 9f72ce29e7f4
parent 5443 51abc0fb79b7
child 5445 9b7b887c6955
22720117 GCC 5.3 wants to use xpg6 instead of xpg7 for C++11/14
components/gcc53/patches/007-std-macros.patch
--- a/components/gcc53/patches/007-std-macros.patch	Thu Feb 11 16:08:54 2016 -0500
+++ b/components/gcc53/patches/007-std-macros.patch	Thu Feb 11 13:36:30 2016 -0800
@@ -6,7 +6,7 @@
 #
 --- gcc-5.3.0/gcc/config/sol2.h.orig	Sat Jan 16 22:00:10 2016
 +++ gcc-5.3.0/gcc/config/sol2.h	Sat Jan 16 22:02:58 2016
-@@ -94,12 +94,26 @@
+@@ -94,12 +94,23 @@
  	   library.  */					\
  	if (c_dialect_cxx ())				\
  	  {						\
@@ -24,9 +24,6 @@
 +                break;					\
 +              case cxx11:				\
 +              case cxx14:				\
-+                builtin_define ("__STDC_VERSION__=199901L");\
-+                builtin_define ("_XOPEN_SOURCE=700");	\
-+                break;					\
 +              default:					\
 +	        builtin_define ("__STDC_VERSION__=199901L");\
 +                builtin_define ("_XOPEN_SOURCE=600");	\