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

Message ID F1B1C0F2-9303-42A2-81B0-20336A13D5A5@oracle.com
State New
Headers show
Series
  • [wwwdocs] introduce new -flive-patching master option into gcc9
Related show

Commit Message

Qing Zhao Nov. 30, 2018, 5:03 p.m.
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



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>

>

Comments

Jeff Law Nov. 30, 2018, 6:28 p.m. | #1
On 11/30/18 10:03 AM, Qing Zhao wrote:
> 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?

OK
jeff
Qing Zhao Nov. 30, 2018, 8:44 p.m. | #2
just checked in the change.

https://gcc.gnu.org/gcc-9/changes.html <https://gcc.gnu.org/gcc-9/changes.html>

thanks.

Qing
> On Nov 30, 2018, at 12:28 PM, Jeff Law <law@redhat.com> wrote:

> 

> On 11/30/18 10:03 AM, Qing Zhao wrote:

>> 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?

> OK

> jeff

Patch

=====
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>