[PATCH,testsuite] fix PR 19232
Janis Johnson
janis187@us.ibm.com
Wed Jul 25 23:04:00 GMT 2007
On Wed, 2007-07-25 at 13:52 -0700, Nathan Froyd wrote:
> The attached patch fixes PR 19232, which is a problem with -fPIC and
> inlining. The compiler will not inline single-use functions that are
> not declared inline with -fPIC, as those functions could be overridden
> in other translation units.
>
> The simplest fix seems to be to declare the relevant functions as
> inline, since that is what the test intended. The compiler is then
> perfectly happy to inline the functions, which triggers the intended
> warnings.
>
> Tested on powerpc-wrs-vxworks with and without -fPIC with no
> regressions. OK to commit?
OK.
Janis
More information about the Gcc-patches
mailing list