This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/52334] The user of "zero" register is wrong
- From: "cslhc at qq dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Feb 2012 01:01:56 +0000
- Subject: [Bug middle-end/52334] The user of "zero" register is wrong
- Auto-submitted: auto-generated
- References: <bug-52334-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52334
--- Comment #5 from haichang417 <cslhc at qq dot com> 2012-02-23 01:01:56 UTC ---
(In reply to comment #3)
> (In reply to comment #0)
> > if( _find_port( g_pstv->member.pstid, index,
> > (void*)&pstid)
>
> This bit looks like a strict-aliasing violation waiting to happen.
But When I compiled without any warning that about strict-aliasing. I think
that his result is caused by the optimization. In the assembly of 4.3.2, there
is nothing code about calling the _find_port() func.
lw v0,76(zero) //"zero" should be "v1"