This is the mail archive of the gcc-patches@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]

[Committed] Fix PR target/29945, ICE in simplify_subreg with simple code in libgfortran


Hi,
  I found this while try to compile the libgfortran for the spu-elf.  The 
problem here is that
we have an unspec which is used for a set which has no mode.  Also we have 
a subreg
here so when we go to simplify the subreg, we crash as the mode is 
VOIDmode which is
incorrect.  This fixes the problem by creating secondary patterns 
extend_compare<mode>
so that we get a mode on the unspec.

Committed after a build and test on spu-elf.

Thanks,
Andrew Pinski

        * config/spu/spu.md  (extend_compare<mode>): New pattern.
        (extend_compare): Change to expand and use the above pattern.


        * gcc.c-torture/compile/pr29945.c: New testcase.

Attachment: fixpr.diff.txt
Description: Text document


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