This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/37669] [4.4 Regression] ice for legal code with -O2
- From: "nemet at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Oct 2008 03:54:46 -0000
- Subject: [Bug middle-end/37669] [4.4 Regression] ice for legal code with -O2
- References: <bug-37669-9596@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #16 from nemet at gcc dot gnu dot org 2008-10-20 03:54 -------
I'm seeing this with mips64octeon-linux-gnu as well.
I think the problem is that in
ccp_fold_builtin():
2502 memset (val, 0, sizeof (val));
2503 for (i = 0; i < nargs; i++)
2504 {
2505 if ((arg_mask >> i) & 1)
arg_mask is an int and in the testcase nargs is 35. Therefore the result of
the shift can be undefined. I will start testing a fix soon.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37669