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