This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/69666] [5/6 Regression] gcc ICE at -O2 and -O3 on valid code on x86_64-linux-gnu in "verify_gimple failed"
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 04 Feb 2016 07:58:53 +0000
- Subject: [Bug tree-optimization/69666] [5/6 Regression] gcc ICE at -O2 and -O3 on valid code on x86_64-linux-gnu in "verify_gimple failed"
- Auto-submitted: auto-generated
- References: <bug-69666-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69666
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Qirun Zhang from comment #3)
> (In reply to Jakub Jelinek from comment #2)
> > This invalid VCE is created by SRA. The code has multiple undefined
> > behaviors in it, but we shouldn't ICE on that.
>
> Hi Jakub,
>
> This code example is reduced from a file from ghostscript. Therefore, I
> assume the original test case should not have any undefined behavior. If
> helpful, I can attach the original pre-processed file which triggers the
> same ICE.
Why do you think ghostscript doesn't have undefined behavior in it?
Anyway, the bugs are both store of e[16] (only &e[16] is valid, but not
dereferencing it), and memcpy of 16 characters to c which has only sizeof (int)
(usually 4) characters.