http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58828

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2013-10-23
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
gengtype includes double-int.h and builds with -fkeep-inline-functions which
breaks as double-int.h refers to functions in double-int.c which is not linked
in.

My attempt to reproduce this doesn't get me -fkeep-inline-functions though.

There is

# This pulls in tm-pred.h which contains inline functions wrapping up
# predicates from the back-end so those functions must be discarded.
# No big deal since gencondmd.c is a dummy file for non-GCC compilers.
build/gencondmd.o : \
  BUILD_CFLAGS := $(filter-out -fkeep-inline-functions, $(BUILD_CFLAGS))

in Makefile.in which hints that this kind of issue has hit us before.

It also seems that -fkeep-inline-functions was removed from the toplevel with

2009-06-23  Ian Lance Taylor  <i...@google.com>

        * configure.ac: Add --enable-build-with-cxx.  When set, add c++ to
        boot_languages.  Only bootstrap target libraries listed in
        target_libs for some boot language.  Add --with-stage1-ldflags,
        --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.  Remove
        with_host_libstdcxx from ppllibs.  Only add -fkeep-inline-functions
        if not building with C++.

as I can find no reference of it on the 4.8 branch.

So, please check where -fkeep-inline-functions is coming from in your build.

Reply via email to