This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

Strange warnings building libstdc++


G++-20010201 emits warnings while compiling the files
exception_support.cc and locale-inst.cc of the libstdc++ library. Especially
the warnings compiling exception_support.cc seem strange ("ambiguates
built-in declaration ...") and may indicate a problem.  

Peter Schmid



/home/peter/egcs/build/gcc/g++ -B/home/peter/egcs/build/gcc/ -nostdinc++ -L/home/peter/egcs/build/i686-pc-linux-gnu/libstdc++-v3/src -L/home/peter/egcs/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -I../../../../gcc/libstdc++-v3/../gcc -I../../../../gcc/libstdc++-v3/../include -I../../../../gcc/libstdc++-v3/include -I../../../../gcc/libstdc++-v3/include/std -I../../../../gcc/libstdc++-v3/include/c_std -I../include -I../../../../gcc/libstdc++-v3/libsupc++ -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -c ../../../../gcc/libstdc++-v3/libsupc++/exception_support.cc  -fPIC -DPIC -o exception_support.o
../../../../gcc/libstdc++-v3/libsupc++/exception_support.cc: In function 
   `cp_eh_info* __start_cp_handler()':
../../../../gcc/libstdc++-v3/libsupc++/exception_support.cc:127: warning: new 
   declaration `cp_eh_info* __start_cp_handler()'
../../../../gcc/libstdc++-v3/libsupc++/exception_support.cc:127: warning: ambiguates
   built-in declaration `cp_eh_info* __start_cp_handler()'
../../../../gcc/libstdc++-v3/libsupc++/exception_support.cc: In function `void 
   __check_null_eh_spec()':
../../../../gcc/libstdc++-v3/libsupc++/exception_support.cc:350: warning: `noreturn'
   function does return

/home/peter/egcs/build/gcc/g++ -B/home/peter/egcs/build/gcc/ -nostdinc++ -L/home/peter/egcs/build/i686-pc-linux-gnu/libstdc++-v3/src -L/home/peter/egcs/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -nostdinc++ -I../../../../gcc/libstdc++-v3/include -I../../../../gcc/libstdc++-v3/include/std -I../../../../gcc/libstdc++-v3/include/c_std -I../include -I../../../../gcc/libstdc++-v3/libsupc++ -I../libio -I../../../../gcc/libstdc++-v3/libio -I../../../../gcc/libstdc++-v3/libmath -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -fimplicit-templates -c ../../../../gcc/libstdc++-v3/src/locale-inst.cc  -fPIC -DPIC -o .libs/locale-inst.o
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h: In method `_CharT 
   std::moneypunct<_CharT, _Intl>::decimal_point() const [with _CharT = char, 
   bool _Intl = false]':
../../../../gcc/libstdc++-v3/src/locale-inst.cc:53:   instantiated from here
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h:1281: warning: can't 
   inline call to `_CharT std::moneypunct<_CharT, _Intl>::decimal_point() const 
   [with _CharT = char, bool _Intl = false]'
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h:1281: warning: called 
   from here
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h: In method `_CharT 
   std::moneypunct<_CharT, _Intl>::thousands_sep() const [with _CharT = char, 
   bool _Intl = false]':
../../../../gcc/libstdc++-v3/src/locale-inst.cc:53:   instantiated from here
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h:1285: warning: can't 
   inline call to `_CharT std::moneypunct<_CharT, _Intl>::thousands_sep() const 
   [with _CharT = char, bool _Intl = false]'
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h:1285: warning: called 
   from here
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h: In method `string 
   std::moneypunct<_CharT, _Intl>::grouping() const [with _CharT = char, bool 
   _Intl = false]':
../../../../gcc/libstdc++-v3/src/locale-inst.cc:53:   instantiated from here
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h:1289: warning: can't 
   inline call to `string std::moneypunct<_CharT, _Intl>::grouping() const 
   [with _CharT = char, bool _Intl = false]'
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h:1289: warning: called 
   from here
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h: In method `_CharT 
   std::moneypunct<_CharT, _Intl>::decimal_point() const [with _CharT = char, 
   bool _Intl = true]':
../../../../gcc/libstdc++-v3/src/locale-inst.cc:54:   instantiated from here
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h:1281: warning: can't 
   inline call to `_CharT std::moneypunct<_CharT, _Intl>::decimal_point() const 
   [with _CharT = char, bool _Intl = true]'
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h:1281: warning: called 
   from here
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h: In method `_CharT 
   std::moneypunct<_CharT, _Intl>::thousands_sep() const [with _CharT = char, 
   bool _Intl = true]':
../../../../gcc/libstdc++-v3/src/locale-inst.cc:54:   instantiated from here
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h:1285: warning: can't 
   inline call to `_CharT std::moneypunct<_CharT, _Intl>::thousands_sep() const 
   [with _CharT = char, bool _Intl = true]'
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h:1285: warning: called 
   from here
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h: In method `string 
   std::moneypunct<_CharT, _Intl>::grouping() const [with _CharT = char, bool 
   _Intl = true]':
../../../../gcc/libstdc++-v3/src/locale-inst.cc:54:   instantiated from here
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h:1289: warning: can't 
   inline call to `string std::moneypunct<_CharT, _Intl>::grouping() const 
   [with _CharT = char, bool _Intl = true]'
../../../../gcc/libstdc++-v3/include/bits/locale_facets.h:1289: warning: called 
   from here


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