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:
@@ -12,8 +12,8 @@
|
|||||||
SubDirHdrs $(HAIKU_TOP) src add-ons kernel file_systems bfs ;
|
SubDirHdrs $(HAIKU_TOP) src add-ons kernel file_systems bfs ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if $(DEBUG) = 0 {
|
if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
|
||||||
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
|
# GCC2 doesn't compile BFS correctly with -O2 or more
|
||||||
OPTIM = -O1 ;
|
OPTIM = -O1 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,9 +13,7 @@ oldOPTIM = $(OPTIM) ;
|
|||||||
defines += COMPILE_FOR_R5 ;
|
defines += COMPILE_FOR_R5 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if $(DEBUG) {
|
if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
|
||||||
#defines += DEBUG ;
|
|
||||||
} else {
|
|
||||||
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
|
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
|
||||||
OPTIM = -O1 ;
|
OPTIM = -O1 ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ DEFINES += HAIKU_BUILD_COMPATIBILITY_H ;
|
|||||||
FS_SHELL
|
FS_SHELL
|
||||||
;
|
;
|
||||||
|
|
||||||
if $(DEBUG) = 0 {
|
if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
|
||||||
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
|
# GCC2 doesn't compile BFS correctly with -O2 or more
|
||||||
OPTIM = -O1 ;
|
OPTIM = -O1 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ DEFINES += HAIKU_BUILD_COMPATIBILITY_H ;
|
|||||||
FS_SHELL
|
FS_SHELL
|
||||||
;
|
;
|
||||||
|
|
||||||
if $(DEBUG) = 0 {
|
if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
|
||||||
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
|
# GCC2 doesn't compile BFS correctly with -O2 or more
|
||||||
OPTIM = -O1 ;
|
OPTIM = -O1 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ SEARCH_SOURCE += $(bfsTop) ;
|
|||||||
USER=1
|
USER=1
|
||||||
;
|
;
|
||||||
|
|
||||||
if $(DEBUG) = 0 {
|
if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
|
||||||
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
|
# GCC2 doesn't compile BFS correctly with -O2 or more
|
||||||
OPTIM = -O1 ;
|
OPTIM = -O1 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ DEFINES += HAIKU_BUILD_COMPATIBILITY_H ;
|
|||||||
FS_SHELL
|
FS_SHELL
|
||||||
;
|
;
|
||||||
|
|
||||||
if $(DEBUG) = 0 {
|
if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
|
||||||
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
|
# GCC2 doesn't compile BFS correctly with -O2 or more
|
||||||
OPTIM = -O1 ;
|
OPTIM = -O1 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user