Re: [PATCH] Fix gcc.dg/ipa/inline-8.c for -fPIC

2021-08-30 Thread Richard Biener via Gcc-patches
On Tue, Aug 31, 2021 at 7:41 AM apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > The problem here is with -fPIC, both cmp and move > don't bind locally so they are not even tried to be > inlined. This fixes the issue by marking both > functions as static and now the testcase passes

[PATCH] Fix gcc.dg/ipa/inline-8.c for -fPIC

2021-08-30 Thread apinski--- via Gcc-patches
From: Andrew Pinski The problem here is with -fPIC, both cmp and move don't bind locally so they are not even tried to be inlined. This fixes the issue by marking both functions as static and now the testcase passes for both -fPIC and -fno-PIC cases. OK? Tested on x86_64-linux-gnu. gcc/testsui