This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/12372] [3.4 regression] miscompilation of execute/20030307-1.c at -O2 and -Os


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]