Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Mar 2018 12:25:56 +0000
From:      Antoine Brodin <antoine@freebsd.org>
To:        Dimitry Andric <dim@freebsd.org>, re <re@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org,  svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   Re: svn commit: r331838 - in stable/11: . contrib/compiler-rt/include/sanitizer contrib/compiler-rt/include/xray contrib/compiler-rt/lib/BlocksRuntime contrib/compiler-rt/lib/asan contrib/compiler-rt/l...
Message-ID:  <CAALwa8mB-FWA%2B_tKXO19x%2B9_CKy6%2B80vxqbKieEXY9fre1ZPdg@mail.gmail.com>
In-Reply-To: <201803311138.w2VBcKHP014025@repo.freebsd.org>
References:  <201803311138.w2VBcKHP014025@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 31, 2018 at 11:38 AM, Dimitry Andric <dim@freebsd.org> wrote:
> Author: dim
> Date: Sat Mar 31 11:38:16 2018
> New Revision: 331838
> URL: https://svnweb.freebsd.org/changeset/base/331838
>
> Log:
>   Merge clang, llvm, lld, lldb, compiler-rt and libc++ 6.0.0 release, and
>   several follow-up fixes.
...
Index: CompilerInvocation.cpp
===================================================================
--- CompilerInvocation.cpp      (revision 331837)
+++ CompilerInvocation.cpp      (revision 331838)
...
@@ -1690,11 +1765,7 @@
       break;
     case InputKind::CXX:
     case InputKind::ObjCXX:
-      // The PS4 uses C++11 as the default C++ standard.
-      if (T.isPS4())
-        LangStd = LangStandard::lang_gnucxx11;
-      else
-        LangStd = LangStandard::lang_gnucxx98;
+      LangStd = LangStandard::lang_gnucxx14;
       break;
     case InputKind::RenderScript:
       LangStd = LangStandard::lang_c99;
...

Hi,

Is it safe to change the default c++ standard from gnu++98 to gnu++14
in a stable branch?
Around 380 ports are still broken by the gnu++98 -> gnu++14 switch.

Cheers,

Antoine



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAALwa8mB-FWA%2B_tKXO19x%2B9_CKy6%2B80vxqbKieEXY9fre1ZPdg>