https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78038
--- Comment #11 from ktkachov at gcc dot gnu.org --- Author: ktkachov Date: Tue Nov 1 10:29:40 2016 New Revision: 241735 URL: https://gcc.gnu.org/viewcvs?rev=241735&root=gcc&view=rev Log: [ree] PR rtl-optimization/78038: Handle global register dataflow definitions in ree 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-6-branch/gcc/testsuite/gcc.target/aarch64/pr78038.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/ree.c branches/gcc-6-branch/gcc/testsuite/ChangeLog