This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The attached patch resolves a problem with gcc.dg/tree-ssa/wholeprogram-1.c and testing with -fPIC. With -fPIC, the inliner believes that large_function is not eligible for inlining because global symbols can be overridden from other modules, which causes the testcase to fail. The simplest solution is to mark large_function as static, thereby ensuring that large_function is a local symbol rather than a global one. Tested on powerpc-wrs-vxworks with and without -fPIC. No regressions. OK to commit? -Nathan 2007-07-25 Nathan Froyd <froydnj@codesourcery.com> gcc/testsuite/ * gcc.dg/tree-ssa/wholeprogram-1.c (large_function): Declare as static to ensure it gets inlined even when -fPIC.
Attachment:
wholeprogram.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |