https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110282

--- Comment #20 from Martin Jambor <jamborm at gcc dot gnu.org> ---
(In reply to mcccs from comment #17)
>
[...]
> 
> The problem is that the parameter pointer is not set to the argument so
> dereferencing it causes a segfault. Dumping all the passes, this problem is
> first present in the output of the pass "x.c.100t.fixup_cfg3.c" as compiled
> with the modified GCC with -O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-dse
> -fno-tree-dse
> 

This looks pretty much like a bug that...

(In reply to mcccs from comment #15)
> There's indeed a miscompilation and I've confirmed it's still present in the
> current trunk. With -fno-dce -fno-ipa-cp -fno-tree-dce the issue was visible
> until r12-248 which made the issue latent. So I added -fno-tree-dse and then
> it was made latent by r12-1848. So I added:

...the commit r12-1848 aimed to fix.  What makes you think it is
"latent?"

>
[...]
> 
> Download the minimized testcase from
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110282#c14
> 
> -O3 -fno-dce -fno-ipa-cp -fno-tree-dce -fno-dse -fno-tree-dse
> 
> sed -i -e 's/mark_dead_statements (m_oparms\[i\]/(void)3;\/\//g'
> ./gcc/gcc/ipa-param-manipulation.cc
> 

This looks like undoing a fix for the problem you described in
comment#17, I'm afraid.

Reply via email to