[wwwdocs] [PATCH]introduce new -flive-patching master option into gcc9

Qing Zhao qing.zhao@oracle.com
Fri Nov 30 17:04:00 GMT 2018


Hi,

This is the patch for update https://gcc.gnu.org/gcc-9/changes.html <https://gcc.gnu.org/gcc-9/changes.html> to include the introducing of new option
-flive-patching into gcc9.

Okay for commit?

thanks.
Qing

=====
Index: gcc-9/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-9/changes.html,v
retrieving revision 1.28
diff -u -r1.28 changes.html
--- gcc-9/changes.html	21 Nov 2018 20:07:26 -0000	1.28
+++ gcc-9/changes.html	30 Nov 2018 16:50:16 -0000
@@ -48,6 +48,15 @@
 
 <!-- .................................................................. -->
 <h2 id="general">General Improvements</h2>
+<ul>
+  <li>
+    A new option -flive-patching=[inline-only-static|inline-clone] is 
+    introduced to provide a safe compilation for live-patching. At the same
+    time, provides multiple-level control on the enabled IPA optimizations.
+    See the user guide for further information about the option for more
+    details. 
+  </li>
+</ul>
 
 <!-- .................................................................. -->
 <h2 id="languages">New Languages and Language specific improvements</h2>


On Nov 20, 2018, at 9:32 AM, Qing Zhao <qing.zhao@oracle.com> wrote:
>> 
>> 
>> Qing.
>> 
>> ===========
>> gcc/ChangeLog:
>> 
>> 2018-11-20  qing zhao  <qing.zhao@oracle.com>
>> 
>> 	* cif-code.def (EXTERN_LIVE_ONLY_STATIC): New CIF code.
>> 	* common.opt: Add -flive-patching flag.
>> 	* doc/invoke.texi: Document -flive-patching.
>> 	* flag-types.h (enum live_patching_level): New enum.
>> 	* ipa-inline.c (can_inline_edge_p): Disable external functions from
>> 	inlining when flag_live_patching is LIVE_PATCHING_INLINE_ONLY_STATIC.
>> 	* opts.c (control_options_for_live_patching): New function.
>> 	(finish_options): Make flag_live_patching incompatible with flag_lto.
>> 	Control IPA optimizations based on different levels of 
>> 	flag_live_patching.
>> 
>> gcc/testsuite/ChangeLog:
>> 
>> 2018-11-20  qing zhao  <qing.zhao@oracle.com>
>> 
>> 	* gcc.dg/live-patching-1.c: New test.
>> 	* gcc.dg/live-patching-2.c: New test.
>> 	* gcc.dg/live-patching-3.c: New test.
>> 	* gcc.dg/tree-ssa/writeonly-3.c: New test.
>> 	* gcc.target/i386/ipa-stack-alignment-2.c: New test.
>> 
>> <flive-patching-new.patch>
> 



More information about the Gcc-patches mailing list