From b13c96f5733a070e2c9f497cf81055bbab85b28f Mon Sep 17 00:00:00 2001 From: Roland Schulz Date: Wed, 17 Sep 2014 13:39:29 -0400 Subject: [PATCH] Remove no-inline-max-size and suppress remark To avoid the remark that inlining isn't possible I added the flag in d28edf2a07dcf11. This causes slow compile and should be avoided. Instead suppress the remark. TODO (for later): Check whether the additional inlining can improve permance and consider enable it for release build. Change-Id: I5866fcc5865fb44ca3dca0cf217e0cab2afbea0c --- cmake/gmxCFlags.cmake | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cmake/gmxCFlags.cmake b/cmake/gmxCFlags.cmake index aabadfbc59..0ccbc001ff 100644 --- a/cmake/gmxCFlags.cmake +++ b/cmake/gmxCFlags.cmake @@ -173,11 +173,11 @@ MACRO(gmx_c_flags) #2557: comparison between signed and unsigned operands #3280: declaration hides member ".." #3346: dynamic exception specifications are deprecated - GMX_TEST_CFLAG(CFLAGS_WARN "-w3 -wd111 -wd177 -wd181 -wd193 -wd271 -wd304 -wd383 -wd424 -wd444 -wd522 -wd593 -wd869 -wd981 -wd1418 -wd1419 -wd1572 -wd1599 -wd2259 -wd2415 -wd2547 -wd2557 -wd3280 -wd3346" GMXC_CFLAGS) +#11074: Inlining inhibited by limit max-size(/max-total-size) +#11076: To get full report use -opt-report=3 -opt-report-phase ipo (shown for previous remark) + GMX_TEST_CFLAG(CFLAGS_WARN "-w3 -wd111 -wd177 -wd181 -wd193 -wd271 -wd304 -wd383 -wd424 -wd444 -wd522 -wd593 -wd869 -wd981 -wd1418 -wd1419 -wd1572 -wd1599 -wd2259 -wd2415 -wd2547 -wd2557 -wd3280 -wd3346 -wd11074 -wd11076" GMXC_CFLAGS) GMX_TEST_CFLAG(CFLAGS_STDGNU "-std=gnu99" GMXC_CFLAGS) GMX_TEST_CFLAG(CFLAGS_OPT "-ip -funroll-all-loops -alias-const -ansi-alias" GMXC_CFLAGS_RELEASE) - #documented to be default but not set for ICC15. Gives remarks that inlining is not possible because of max-size setting - GMX_TEST_CFLAG(CFLAGS_INLINE "-no-inline-max-size -no-inline-max-total-size" GMXC_CFLAGS) else() if(NOT GMX_OPENMP) if(CMAKE_C_COMPILER_VERSION VERSION_GREATER 13.99.99) @@ -203,9 +203,8 @@ MACRO(gmx_c_flags) #All but the following warnings are identical for the C-compiler (see above) #1782: #pragma once is obsolete #2282: unrecognized GCC pragma - GMX_TEST_CXXFLAG(CXXFLAGS_WARN "-w3 -wd111 -wd177 -wd181 -wd193 -wd271 -wd304 -wd383 -wd424 -wd444 -wd522 -wd593 -wd869 -wd981 -wd1418 -wd1419 -wd1572 -wd1599 -wd2259 -wd2415 -wd2547 -wd2557 -wd3280 -wd3346 -wd1782 -wd2282" GMXC_CXXFLAGS) + GMX_TEST_CXXFLAG(CXXFLAGS_WARN "-w3 -wd111 -wd177 -wd181 -wd193 -wd271 -wd304 -wd383 -wd424 -wd444 -wd522 -wd593 -wd869 -wd981 -wd1418 -wd1419 -wd1572 -wd1599 -wd2259 -wd2415 -wd2547 -wd2557 -wd3280 -wd3346 -wd11074 -wd11076 -wd1782 -wd2282" GMXC_CXXFLAGS) GMX_TEST_CXXFLAG(CXXFLAGS_OPT "-ip -funroll-all-loops -alias-const -ansi-alias" GMXC_CXXFLAGS_RELEASE) - GMX_TEST_CXXFLAG(CXXFLAGS_INLINE "-no-inline-max-size -no-inline-max-total-size" GMXC_CXXFLAGS) else() if(NOT GMX_OPENMP) if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 13.99.99) -- 2.22.0