[haiku-commits] haiku: hrev51981 - src/system/libroot/os/arch/x86_64 build/jam src/system/libroot/posix/malloc_debug src/system/boot/arch/x86 src/system/libroot/posix/string/arch/x86_64

  • From: Jérôme Duval <jerome.duval@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 28 May 2018 12:55:40 -0400 (EDT)

hrev51981 adds 1 changeset to branch 'master'
old head: 8e4aa13350725d60da0f46b7d9e2b0538e470ce8
new head: b3e749b0c1b480beb8086b6783afde0fe302d0a8
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=b3e749b0c1b4+%5E8e4aa1335072

----------------------------------------------------------------------------

b3e749b0c1b4: kernel,libroot,boot: remove c++11 and gnu++11 flags.
  
  * c++14 is the default with current GCC
  * remove pragmas for x86intrin.h

                                   [ Jérôme Duval <jerome.duval@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev51981
Commit:      b3e749b0c1b480beb8086b6783afde0fe302d0a8
URL:         https://git.haiku-os.org/haiku/commit/?id=b3e749b0c1b4
Author:      Jérôme Duval <jerome.duval@xxxxxxxxx>
Date:        Mon May 28 14:44:05 2018 UTC

----------------------------------------------------------------------------

6 files changed, 18 deletions(-)
build/jam/ArchitectureRules                         | 4 ----
src/system/boot/arch/x86/Jamfile                    | 1 -
src/system/libroot/os/arch/x86_64/Jamfile           | 2 --
src/system/libroot/os/arch/x86_64/system_time.cpp   | 5 -----
src/system/libroot/posix/malloc_debug/Jamfile       | 4 ----
src/system/libroot/posix/string/arch/x86_64/Jamfile | 2 --

----------------------------------------------------------------------------

diff --git a/build/jam/ArchitectureRules b/build/jam/ArchitectureRules
index 1af07cfc30..6086d232ee 100644
--- a/build/jam/ArchitectureRules
+++ b/build/jam/ArchitectureRules
@@ -331,10 +331,6 @@ rule KernelArchitectureSetup architecture
        HAIKU_BOOT_LINKFLAGS = ;
        HAIKU_BOOT_LDFLAGS = -Bstatic ;
 
-       if $(gccVersion[1]) >= 4 {
-               HAIKU_KERNEL_C++FLAGS += -std=gnu++11 ;
-       }
-
        if $(gccVersion[1]) >= 6 {
                HAIKU_KERNEL_C++FLAGS += -fno-delete-null-pointer-checks ;
                HAIKU_KERNEL_CCFLAGS += -fno-delete-null-pointer-checks ;
diff --git a/src/system/boot/arch/x86/Jamfile b/src/system/boot/arch/x86/Jamfile
index 4b6873580c..1e03bf70bf 100644
--- a/src/system/boot/arch/x86/Jamfile
+++ b/src/system/boot/arch/x86/Jamfile
@@ -27,7 +27,6 @@ BootMergeObject boot_arch_$(TARGET_KERNEL_ARCH).o :
        $(kernelArchSpecificSources)
        $(kernelLibArchSpecificSources)
        $(librootOsArchSources)
-       : -std=c++11 # additional flags
 ;
 
 SEARCH on [ FGristFiles $(kernelArchSources) ]
diff --git a/src/system/libroot/os/arch/x86_64/Jamfile 
b/src/system/libroot/os/arch/x86_64/Jamfile
index 61d76d6335..86e96d19f4 100644
--- a/src/system/libroot/os/arch/x86_64/Jamfile
+++ b/src/system/libroot/os/arch/x86_64/Jamfile
@@ -1,7 +1,5 @@
 SubDir HAIKU_TOP src system libroot os arch x86_64 ;
 
-SubDirC++Flags -std=gnu++11 ;
-
 local architectureObject ;
 for architectureObject in [ MultiArchSubDirSetup x86_64 ] {
        on $(architectureObject) {
diff --git a/src/system/libroot/os/arch/x86_64/system_time.cpp 
b/src/system/libroot/os/arch/x86_64/system_time.cpp
index b75991e6e1..5678d31323 100644
--- a/src/system/libroot/os/arch/x86_64/system_time.cpp
+++ b/src/system/libroot/os/arch/x86_64/system_time.cpp
@@ -6,12 +6,7 @@
 
 #include <stdint.h>
 
-// disable a warning for GCC 5.4, fixed upstream.
-// will remove the pragmas after a while.
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wunused-variable"
 #include <x86intrin.h>
-#pragma GCC diagnostic pop
 
 
 static uint64_t cv_factor;
diff --git a/src/system/libroot/posix/malloc_debug/Jamfile 
b/src/system/libroot/posix/malloc_debug/Jamfile
index 0a2213d12f..f272da30ac 100644
--- a/src/system/libroot/posix/malloc_debug/Jamfile
+++ b/src/system/libroot/posix/malloc_debug/Jamfile
@@ -7,10 +7,6 @@ for architectureObject in [ MultiArchSubDirSetup ] {
        on $(architectureObject) {
                local architecture = $(TARGET_PACKAGING_ARCH) ;
 
-               if $(architecture) != x86_gcc2 {
-                       SubDirC++Flags -std=gnu++11 ;
-               }
-
                UsePrivateSystemHeaders ;
 
                MergeObject <$(architecture)>posix_malloc_debug.o :
diff --git a/src/system/libroot/posix/string/arch/x86_64/Jamfile 
b/src/system/libroot/posix/string/arch/x86_64/Jamfile
index b8cd49040d..e9324568a1 100644
--- a/src/system/libroot/posix/string/arch/x86_64/Jamfile
+++ b/src/system/libroot/posix/string/arch/x86_64/Jamfile
@@ -1,7 +1,5 @@
 SubDir HAIKU_TOP src system libroot posix string arch x86_64 ;
 
-SubDirC++Flags -std=gnu++11 ;
-
 local architectureObject ;
 for architectureObject in [ MultiArchSubDirSetup x86_64 ] {
        on $(architectureObject) {


Other related posts:

  • » [haiku-commits] haiku: hrev51981 - src/system/libroot/os/arch/x86_64 build/jam src/system/libroot/posix/malloc_debug src/system/boot/arch/x86 src/system/libroot/posix/string/arch/x86_64 - Jérôme Duval