On 10/27/2015 12:38 PM, Maxim Ostapenko wrote:
Anyway, disabling any compile options provided by user explicitly sounds like a bad idea for me, so disabling -freorder-blocks-and-partition if it can't find .gcda file seems to be not acceptable.
The current situation is that -fr-b-a-p is disabled if -fprofile-use is not also present, because it would have no effect in this case. We're looking at fixing -fr-b-a-p testcases to pass -fprofile-use; ideally that will stay working with your patch (I haven't checked).
Bernd