[PATCH]Come up with -flive-patching master option.
Qing Zhao
qing.zhao@oracle.com
Fri Nov 16 01:36:00 GMT 2018
Hi,
this is the new version of the patch.
I have bootstrapped it on both aarch64 and x86, no regression.
please take a look.
Okay for commit?
thanks.
Qing
==================================
gcc/ChangeLog:
2018-11-15 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_optimizations_for_live_patching): New function.
(finish_options): Make flag_live_patching incompatible with flag_lto.
(common_handle_option): Handle flive-patching flag.
gcc/testsuite/ChangeLog:
2018-11-15 qing zhao <qing.zhao@oracle.com>
* gcc.dg/live-patching-1.c: New test.
* gcc.dg/live-patching-2.c: New test.
* gcc.dg/tree-ssa/writeonly-3.c: New test.
* gcc.target/i386/ipa-stack-alignment-2.c: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flive-patching.patch
Type: application/octet-stream
Size: 13071 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181116/2c4f5b37/attachment.obj>
More information about the Gcc-patches
mailing list