Thanks. I updated ipa-inline.c as you suggested, and tested the gcc with all live-patching-*.c testing cases, all were fine. bootstrapped on aarch64, and now the regression testing is running.
the new patch is as following: Okay for trunk? thanks. Qing gcc/ChangeLog: 2019-03-28 qing zhao <qing.z...@oracle.com> PR tree-optimization/89730 * ipa-inline.c (can_inline_edge_p): Delete the checking for -flive-patching=inline-only-static. (can_inline_edge_by_limits_p): Add the checking for -flive-patching=inline-only-static and grant always_inline even when -flive-patching=inline-only-static is specified. gcc/testsuite/ChangeLog: 2019-03-28 qing zhao <qing.z...@oracle.com> PR tree-optimization/89730 * gcc.dg/live-patching-4.c: New test.
fixing-PR89730.patch
Description: Binary data