This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/7479: wrong arithmetic output
- From: "Christian Ehrhardt" <ehrhardt at mathematik dot uni-ulm dot de>
- To: gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, olivier dot baudron at m4x dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, jakub at redhat dot com
- Date: Wed, 4 Dec 2002 14:44:42 +0100
- Subject: Re: c/7479: wrong arithmetic output
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7479
Hi,
confirmed on 3.2.1. I tracked this down to a bug in associate_trees that
is fixed in 3.3. I didn't check the acutal patch but this change log
entry is quite obviously the fix I'm looking for.
| 2002-08-05 Jakub Jelinek <jakub@redhat.com>
|
| * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
| of the operands into MINUS_EXPR if code is PLUS_EXPR.
Could this go into 3.2.2 and the PR closed afterwards?
regards Christian
--
THAT'S ALL FOLKS!