This is the mail archive of the gcc@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]

Generator programs can only be built with optimization enabled?


Typing "make" in $objdir/gcc (after a bootstrap) sometimes results in
errors like:

build/gencondmd.o: In function `VEC_rtx_heap_reserve':
/net/sparrowhawk/scratch/mitchell/src/lto/gcc/rtl.h:195: undefined
reference to `vec_heap_p_reserve'

For an ordinary "make" the generator programs are built without
optimization.  But, rtl.h use DEF_VEC_*, the expansion of which includes
inline functions.   With optimization disabled, the compiler apparently
emits the inline functions.  The inline functions reference symbols
(like vec_heap_p_reserve) that are not included in the build objects
linked into the generator program.

I'm using a version of mainline that's a few weeks old; is this
something that has been recently fixed?

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]