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/48380] [gcc-4.7 regression] ICE in postreload.c while building trunk


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

Vladimir Makarov <vmakarov at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vmakarov at redhat dot com

--- Comment #4 from Vladimir Makarov <vmakarov at redhat dot com> 2011-04-01 20:47:39 UTC ---
We have the following situation:
  - a pseudo has equivalent constant.
  - a loop allocno corresponding to the pseudo got hard reg and
    the subloop allocno got memory.
  - the load generated by IRA on the loop/subloop border is not removed.
  - the loop allocno is spilled in reload transforming the load into mem-mem
move.
  - reload skip processing the move because it sets up regno with equiv
constant.
  - gcc dies in the post=reload.

There are several possible solutions but the most optimal would be removing the
load transformed into mem-mem move in the reload.  We need to add the load to
equiv init insn.

I'll submit a patch solving the problem soon.


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