BFS: Only compile with -O1 under GCC2.

GCC7+ does not have whatever compiler bugs plague GCC2, so we can
use -O2 there as usual.
This commit is contained in:
Augustin Cavalier
2019-09-09 20:30:47 -04:00
parent 194a45c6b4
commit 4ee6978ed7
6 changed files with 11 additions and 13 deletions
@@ -12,8 +12,8 @@
SubDirHdrs $(HAIKU_TOP) src add-ons kernel file_systems bfs ;
}
if $(DEBUG) = 0 {
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
# GCC2 doesn't compile BFS correctly with -O2 or more
OPTIM = -O1 ;
}
@@ -13,9 +13,7 @@ oldOPTIM = $(OPTIM) ;
defines += COMPILE_FOR_R5 ;
}
if $(DEBUG) {
#defines += DEBUG ;
} else {
if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
OPTIM = -O1 ;
}
@@ -12,8 +12,8 @@ DEFINES += HAIKU_BUILD_COMPATIBILITY_H ;
FS_SHELL
;
if $(DEBUG) = 0 {
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
# GCC2 doesn't compile BFS correctly with -O2 or more
OPTIM = -O1 ;
}
@@ -11,8 +11,8 @@ DEFINES += HAIKU_BUILD_COMPATIBILITY_H ;
FS_SHELL
;
if $(DEBUG) = 0 {
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
# GCC2 doesn't compile BFS correctly with -O2 or more
OPTIM = -O1 ;
}
@@ -11,8 +11,8 @@ SEARCH_SOURCE += $(bfsTop) ;
USER=1
;
if $(DEBUG) = 0 {
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
# GCC2 doesn't compile BFS correctly with -O2 or more
OPTIM = -O1 ;
}
+2 -2
View File
@@ -12,8 +12,8 @@ DEFINES += HAIKU_BUILD_COMPATIBILITY_H ;
FS_SHELL
;
if $(DEBUG) = 0 {
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
# GCC2 doesn't compile BFS correctly with -O2 or more
OPTIM = -O1 ;
}