[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#302989: optimizer breaks function inlining



On Fri, Apr 08, 2005 at 11:52:15PM +0200, Matthias Klose wrote:
> Steve M. Robbins writes:
>  > Package: g++-4.0
>  > Version: 4.0-0pre5
>  > Severity: normal
>  > 
>  > Hi,
>  > 
>  > The following test code (atof.cc) elicits no warning when compiled with
>  > 
>  >   g++-4.0 -c -Wall atof.cc
>  > 
>  > but with optimization GCC complains about the standard library
>  > function atof():
>  > 
>  >   steve@riemann{test}g++-4.0 -c -Wall -O atof.cc
>  >   atof.cc: In member function 'double A::foo()':
>  >   atof.cc:15: warning: control may reach end of non-void function 'double atof(const char*)' being inlined
>  >   /usr/include/stdlib.h:378: warning: control may reach end of non-void function 'double strtod(const char*, char**)' being inlined
> 
> fixed upstream, please recheck with the gcc-snapshot package

Yup, gcc-snapshot compiles the example without complaint.


Andreas: do you mind checking whether gcc-snapshot will compile Ipe
with the addition of a virtual destructor in IpeletHelper, as described
in BTS #302606.

Thanks,
-Steve




Reply to: