This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/6883] Fails to optimize temporary objects.
- 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: 8 Mar 2004 07:04:08 -0000
- Subject: [Bug optimization/6883] Fails to optimize temporary objects.
- References: <20020531030602.6883.rguenth@tat.physik.uni-tuebingen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-08 07:04 -------
I have a fix which converts what I gave into:
if ((bool)(int)!(T.4 > T.6) goto <L0>; else goto <L14>;
which is better but there are still some stores to the stack (at least on powerpc-apple-darwin) but that is caused by the C++ front-end lowering things like &a[b] and such.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6883