This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23497] [4.1 regression] Bogus 'is used uninitialized...' warning about std::complex<T>
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2005 00:32:04 -0000
- Subject: [Bug middle-end/23497] [4.1 regression] Bogus 'is used uninitialized...' warning about std::complex<T>
- References: <bug-23497-2589@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from pinskia at gcc dot gnu dot org 2005-10-12 00:32 -------
Hmm, we also have a missed optimization on the tree level too.
For the following code:
__complex__ double t1;
void f() {
__complex__ double t;
__imag__ t = 0;
__real__ t = 0;
t1 = t;
}
we get:
t1 = COMPLEX_EXPR <0.0, IMAGPART_EXPR <COMPLEX_EXPR <REALPART_EXPR <t>,
0.0>>>;
We should just get t1 = COMPLEX_CST {0.0, 0.0}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|i686-suse-linux |
GCC host triplet|i686-suse-linux |
GCC target triplet|i686-suse-linux |
Keywords| |missed-optimization, TREE
Last reconfirmed|0000-00-00 00:00:00 |2005-10-12 00:32:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23497