This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/12372] [3.4 regression] miscompilation of execute/20030307-1.c at -O2 and -Os
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jan 2004 21:39:39 -0000
- Subject: [Bug optimization/12372] [3.4 regression] miscompilation of execute/20030307-1.c at -O2 and -Os
- References: <20030922221224.12372.danglin@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-01-10 21:39 -------
The problem seems to arise because args[i].value can be null in
+ if (flags & ECF_CONST)
+ call_fusage = gen_rtx_EXPR_LIST (VOIDmode,
+ gen_rtx_USE (VOIDmode,
+ args[i].value),
+ call_fusage);
You should be able to reproduce it with g++.dg/opt/const3.C and a cross to i586.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12372