9c13a0
diff --git a/tools/build/src/tools/gcc.jam b/tools/build/src/tools/gcc.jam
9c13a0
index ff3209f7b..1d8e7cbfe 100644
9c13a0
--- a/tools/build/src/tools/gcc.jam
9c13a0
+++ b/tools/build/src/tools/gcc.jam
9c13a0
@@ -577,7 +577,7 @@ rule compile.fortran ( targets * : sources * : properties * )
9c13a0
 
9c13a0
 actions compile.c++ bind PCH_FILE
9c13a0
 {
9c13a0
-    "$(CONFIG_COMMAND)" $(LANG) -ftemplate-depth-$(TEMPLATE_DEPTH) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(PCH_FILE:D)" -I"$(INCLUDES)" -include"$(FORCE_INCLUDES)" -c -o "$(<:W)" "$(>:W)"
9c13a0
+    "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(PCH_FILE:D)" -I"$(INCLUDES)" -include"$(FORCE_INCLUDES)" -c -o "$(<:W)" "$(>:W)"
9c13a0
 }
9c13a0
 
9c13a0
 actions compile.c bind PCH_FILE
9c13a0
@@ -587,7 +587,7 @@ actions compile.c bind PCH_FILE
9c13a0
 
9c13a0
 actions compile.c++.preprocess bind PCH_FILE
9c13a0
 {
9c13a0
-    "$(CONFIG_COMMAND)" $(LANG) -ftemplate-depth-$(TEMPLATE_DEPTH) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(PCH_FILE:D)" -I"$(INCLUDES)" -include"$(FORCE_INCLUDES)" "$(>:W)" -E >"$(<:W)"
9c13a0
+    "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(PCH_FILE:D)" -I"$(INCLUDES)" -include"$(FORCE_INCLUDES)" "$(>:W)" -E >"$(<:W)"
9c13a0
 }
9c13a0
 
9c13a0
 actions compile.c.preprocess bind PCH_FILE
9c13a0
@@ -704,20 +704,20 @@ actions compile.c.pch
9c13a0
 ###
9c13a0
 
9c13a0
 # Declare flags and action for compilation.
9c13a0
-toolset.flags gcc.compile OPTIONS <optimization>off   : -O0 ;
9c13a0
-toolset.flags gcc.compile OPTIONS <optimization>speed : -O3 ;
9c13a0
-toolset.flags gcc.compile OPTIONS <optimization>space : -Os ;
9c13a0
-
9c13a0
-toolset.flags gcc.compile OPTIONS <inlining>off  : -fno-inline ;
9c13a0
-toolset.flags gcc.compile OPTIONS <inlining>on   : -Wno-inline ;
9c13a0
-toolset.flags gcc.compile OPTIONS <inlining>full : -finline-functions -Wno-inline ;
9c13a0
-
9c13a0
-toolset.flags gcc.compile OPTIONS <warnings>off : -w ;
9c13a0
-toolset.flags gcc.compile OPTIONS <warnings>on  : -Wall ;
9c13a0
-toolset.flags gcc.compile OPTIONS <warnings>all : -Wall ;
9c13a0
-toolset.flags gcc.compile OPTIONS <warnings>extra : -Wall -Wextra ;
9c13a0
-toolset.flags gcc.compile OPTIONS <warnings>pedantic : -Wall -Wextra -pedantic ;
9c13a0
-toolset.flags gcc.compile OPTIONS <warnings-as-errors>on : -Werror ;
9c13a0
+toolset.flags gcc.compile OPTIONS <optimization>off   :  ;
9c13a0
+toolset.flags gcc.compile OPTIONS <optimization>speed :  ;
9c13a0
+toolset.flags gcc.compile OPTIONS <optimization>space :  ;
9c13a0
+
9c13a0
+toolset.flags gcc.compile OPTIONS <inlining>off  :  ;
9c13a0
+toolset.flags gcc.compile OPTIONS <inlining>on   :  ;
9c13a0
+toolset.flags gcc.compile OPTIONS <inlining>full :  ;
9c13a0
+
9c13a0
+toolset.flags gcc.compile OPTIONS <warnings>off :  ;
9c13a0
+toolset.flags gcc.compile OPTIONS <warnings>on  :  ;
9c13a0
+toolset.flags gcc.compile OPTIONS <warnings>all :  ;
9c13a0
+toolset.flags gcc.compile OPTIONS <warnings>extra :  ;
9c13a0
+toolset.flags gcc.compile OPTIONS <warnings>pedantic :  ;
9c13a0
+toolset.flags gcc.compile OPTIONS <warnings-as-errors>on :  ;
9c13a0
 
9c13a0
 toolset.flags gcc.compile OPTIONS <debug-symbols>on : -g ;
9c13a0
 toolset.flags gcc.compile OPTIONS <profiling>on : -pg ;
9c13a0
-- 
9c13a0
2.26.2
9c13a0