This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/5079] Reference to static const int not eliminated during optimization
- From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Aug 2003 07:14:30 -0000
- Subject: [Bug optimization/5079] Reference to static const int not eliminated during optimization
- References: <20011211151602.5079.muaddib@fundsxpress.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5079
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-08-28 07:14 -------
Subject: Bug 5079
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2003-08-28 07:14:26
Modified files:
gcc/testsuite : ChangeLog
gcc/cp : ChangeLog call.c
Added files:
gcc/testsuite/g++.dg/opt: static3.C
Log message:
PR optimization/5079
* call.c (build_conditional_expr): Use decl_constant_value to
simplify the arguments.
PR optimization/5079
* g++.dg/opt/static3.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3008&r2=1.3009
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/opt/static3.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3627&r2=1.3628
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&r1=1.425&r2=1.426