https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64453
--- Comment #4 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> --- Author: thopre01 Date: Wed Mar 4 02:06:07 2015 New Revision: 221170 URL: https://gcc.gnu.org/viewcvs?rev=221170&root=gcc&view=rev Log: 2015-03-04 Thomas Preud'homme <thomas.preudho...@arm.com> Backport from mainline 2015-01-14 Thomas Preud'homme <thomas.preudho...@arm.com> gcc/ PR target/64453 * config/arm/arm.c (callee_saved_reg_p): Define. (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if register is callee saved instead of !call_used_regs[reg]. (thumb1_compute_save_reg_mask): Likewise. gcc/testsuite/ PR target/64453 * gcc.target/arm/pr64453.c: New. Added: branches/gcc-4_8-branch/gcc/testsuite/gcc.target/arm/pr64453.c Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/config/arm/arm.c branches/gcc-4_8-branch/gcc/testsuite/ChangeLog