Re: [GXemul-users] Compilation Error
Status: Alpha
Brought to you by:
gavare
From: Anders G. <ga...@gm...> - 2010-03-22 06:10:38
|
Lör 2010-03-20 klockan 15:33 +0000 skrev Nigel Horne: ... > ... > c++ -Wstrict-aliasing -Wall -Werror -fno-rtti -fstrict-aliasing ... > -Wfloat-equal -Wformat-nonliteral -Winline -Wpointer-arith -Wundef > -D_GLIBCXX_PARALLEL -fopenmp -c -o GXemul.o GXemul.cc > cc1plus: warnings being treated as errors > ../include/refcount_ptr.h: In member function ‘void GXemul::InitUI()’: > ../include/refcount_ptr.h:141: error: inlining failed in call to > ‘refcount_ptr<T>::~refcount_ptr() [with T = UI]’: --param > inline-unit-growth limit reached > GXemul.cc:548: error: called from here > > It goes away without the -Werror, but I thought you'd like to know about it. If you add the -Winline flag to detect whenever things are inlined beyond the default limits, you should probably also add necessary flags to increase those limits. CXXFLAGS="-Winline --param max-inline-insns-single=XXXXX --param large-function-growth=YYYYY --param inline-unit-growth=ZZZZZ" ./configure or similar. Anders |