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