This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33654] New: Strange message + bad code generated for -fPIC -O3
- From: "ndbecker2 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Oct 2007 11:29:31 -0000
- Subject: [Bug c++/33654] New: Strange message + bad code generated for -fPIC -O3
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Strange message and wrong code only happen with -O3 + -fPIC.
g++ -c -g -O3 -Wall -fPIC cic.ii
src/cic.hpp: In member function ‘void CICDecim<inputtype>::Compute(const
in_t&, out_t&) [with in_t = boost::numeric::ublas::vector<int,
boost::numeric::ublas::unbounded_array<int, std::allocator<int> > >, out_t =
boost::numeric::ublas::vector<int, boost::numeric::ublas::unbounded_array<int,
std::allocator<int> > >, inputtype = int]’:
src/cic.hpp:66: warning: ‘x’ may be used uninitialized in this
function
src/fixed.hpp: In member function ‘void
CICDecim<inputtype>::Compute(const
in_t&, out_t&) [with in_t = boost::numeric::ublas::vector<std::complex<int>,
boost::numeric::ublas::unbounded_array<std::complex<int>,
std::allocator<std::complex<int> > > >, out_t =
boost::numeric::ublas::vector<std::complex<int>,
boost::numeric::ublas::unbounded_array<std::complex<int>,
std::allocator<std::complex<int> > > >, inputtype = std::complex<int>]’:
src/fixed.hpp:36: warning: ‘__imag__
x.std::complex<double>::_M_value’ is used
uninitialized in this function
src/fixed.hpp:36: warning: ‘__real__
x.std::complex<double>::_M_value’ is used
uninitialized in this function
--
Summary: Strange message + bad code generated for -fPIC -O3
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ndbecker2 at gmail dot com
GCC host triplet: gcc-c++-4.1.2-27.fc7.x86_64
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33654