Hi, Attached is the patch for new -flive-patching=[inline-only-static | inline-clone] master option. '-flive-patching=LEVEL' Control GCC's optimizations to provide a safe compilation for live-patching. Provides multiple-level control on how many of the optimizations are enabled by users' request. The LEVEL argument should be one of the following: 'inline-only-static' Only enable inlining of static functions, disable all other ipa optimizations/analyses. As a result, when patching a static routine, all its callers need to be patches as well. 'inline-clone' Only enable inlining and all optimizations that internally create clone, for example, cloning, ipa-sra, partial inlining, etc.; disable all other ipa optimizations/analyses. As a result, when patching a routine, all its callers and its clones' callers need to be patched as well. When -flive-patching specified without any value, the default value is "inline-clone". This flag is disabled by default. let me know your comments and suggestions on the implementation. thanks a lot. Qing