This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/52334] The user of "zero" register is wrong


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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]