Hi Can a gatekeeper help review this patch, it's a bug fixed for bug#838 When building the gcc front end with opencc -g -O0, there is some dead functions that call other undefined functions. when building with gcc or opencc -O1 optimization above, the compiler will eliminated the dead function. But when building with opencc -O0, dead function would be kept, this fact will cause the undefined reference error.
This patch will add options -INLINE when build using open64 to build the front end with DEBUG optimization. With -O0 -INLINE, the open64 can eliminated the dead functions. Index: configure =================================================================== --- configure (revision 3737) +++ configure (working copy) @@ -1418,6 +1418,9 @@ DEBUG|debug) BUILD_OPTIMIZE=DEBUG GCC_CONFIGURE_CFLAGS="-O0 -g -DIs_True_On" + if test "${BUILD_COMPILER}" = "OSP"; then + GCC_CONFIGURE_CFLAGS="${GCC_CONFIGURE_CFLAGS} -INLINE" + fi ;; *) { { echo "$as_me:$LINENO: error: \"BUILD_OPTIMIZE=$BUILD_OPTIMIZE is not supported\"" >&5 Index: configure.ac =================================================================== --- configure.ac (revision 3737) +++ configure.ac (working copy) @@ -88,6 +88,9 @@ DEBUG|debug) BUILD_OPTIMIZE=DEBUG GCC_CONFIGURE_CFLAGS="-O0 -g -DIs_True_On" + if test "${BUILD_COMPILER}" = "OSP"; then + GCC_CONFIGURE_CFLAGS="${GCC_CONFIGURE_CFLAGS} -INLINE" + fi ;; *) AC_MSG_ERROR(["BUILD_OPTIMIZE=$BUILD_OPTIMIZE is not supported"]) -- yongchong ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel