https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78038
--- Comment #12 from ktkachov at gcc dot gnu.org --- Author: ktkachov Date: Fri Dec 2 12:22:54 2016 New Revision: 243175 URL: https://gcc.gnu.org/viewcvs?rev=243175&root=gcc&view=rev Log: [ree] PR rtl-optimization/78038: Handle global register dataflow definitions in ree 2016-12-02 Kyrylo Tkachov <kyrylo.tkac...@arm.com> Backport from mainline 2016-10-21 Kyrylo Tkachov <kyrylo.tkac...@arm.com> PR rtl-optimization/78038 * ree.c (get_defs): Return NULL if a defining insn for REG cannot be deduced to set REG through the RTL structure. (make_defs_and_copies_lists): Return false on a failing get_defs call. * gcc.target/aarch64/pr78038.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.target/aarch64/pr78038.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/ree.c branches/gcc-5-branch/gcc/testsuite/ChangeLog