This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR69195, Reload confused by invalid reg equivs
- From: Alan Modra <amodra at gmail dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Bernd Schmidt <bschmidt at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Sat, 12 Mar 2016 09:43:50 +1030
- Subject: Re: [PATCH] PR69195, Reload confused by invalid reg equivs
- Authentication-results: sourceware.org; auth=none
- References: <20160304145430 dot GD9617 at bubble dot grove dot modra dot org> <56D9C86A dot 8050302 at redhat dot com> <20160307144656 dot GF9617 at bubble dot grove dot modra dot org> <20160310091808 dot GO9617 at bubble dot grove dot modra dot org> <877fh8ycip dot fsf at linux-m68k dot org> <20160311221624 dot GB16812 at bubble dot grove dot modra dot org>
The underlying problem happens somewhere in tree-ssa-dse.c. So we get
an indirect jump to a random location instead of a jump to 0.
pr58164.c.035t.mergephi1
;; Function foo (foo, funcdef_no=0, decl_uid=1389, cgraph_uid=0, symbol_order=0)
foo ()
{
int x;
<bb 2>:
x = 0;
goto &x;
}
pr58164.c.036t.dse1
;; Function foo (foo, funcdef_no=0, decl_uid=1389, cgraph_uid=0, symbol_order=0)
Deleted dead store 'x = 0;
'
foo ()
{
int x;
<bb 2>:
goto &x;
}
--
Alan Modra
Australia Development Lab, IBM