Support inlining various small performance-critical functions on non-GCC
compilers, by applying a configure check to see if the compiler will accept an unreferenced "static inline foo ..." function without warnings. It is believed that such warnings are the only reason not to declare inlined functions in headers, if the compiler understands "inline" at all. Kurt Harriman
Showing
- config/c-compiler.m4 25 additions, 1 deletionconfig/c-compiler.m4
- configure 69 additions, 0 deletionsconfigure
- configure.in 2 additions, 2 deletionsconfigure.in
- src/backend/nodes/list.c 5 additions, 7 deletionssrc/backend/nodes/list.c
- src/backend/utils/mmgr/mcxt.c 5 additions, 6 deletionssrc/backend/utils/mmgr/mcxt.c
- src/include/nodes/pg_list.h 8 additions, 8 deletionssrc/include/nodes/pg_list.h
- src/include/pg_config.h.in 4 additions, 0 deletionssrc/include/pg_config.h.in
- src/include/pg_config.h.win32 11 additions, 5 deletionssrc/include/pg_config.h.win32
- src/include/port/win32.h 1 addition, 10 deletionssrc/include/port/win32.h
- src/include/portability/instr_time.h 2 additions, 2 deletionssrc/include/portability/instr_time.h
- src/include/utils/palloc.h 5 additions, 5 deletionssrc/include/utils/palloc.h
Loading
Please register or sign in to comment