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 target/29907] ARM Optimization Bug



------- Comment #1 from rearnsha at gcc dot gnu dot org  2006-11-20 16:27 -------
Not a bug.  The value in IP is the value of rdy->last at the time that
         old_last_node       = rdy->last;
was *conceptually* executed (note that instruction scheduling has moved the
loads and stores around, but that doesn't affect the final result).

I would note, however, that 
    a->next             = (Chain_Node*)&rdy->permanent_null;

creats a potential aliasing violation in your code, which is most likely the
source of your real problem.  See discussions aliasing in a good C book.


-- 

rearnsha at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29907


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