Hi, there is a bug in the current support for -flive-patching=inline-only-static:
it rejects inlining of external always_inline routine, therefore triggers a compilation time error. we should always inline “always_inline” routines. please review the following simple patch, it has been bootstrapped and regression tested on aarch64. Okay for committing? thanks. Qing. gcc/ChangeLog: 2019-03-20 qing zhao <qing.z...@oracle.com> PR tree-optimization/89730 * ipa-inline.c (can_inline_edge_p): Grant always_inline even when -flive-patching=inline-only-static. gcc/testsuite/ChangeLog: 2019-03-20 qing zhao <qing.z...@oracle.com> * gcc.dg/live-patching-4.c: New test.
PR89730.patch
Description: Binary data