https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77904

--- Comment #10 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
Author: thopre01
Date: Mon Dec 12 10:58:17 2016
New Revision: 243543

URL: https://gcc.gnu.org/viewcvs?rev=243543&root=gcc&view=rev
Log:
Fix PR77904: callee-saved register trashed when clobbering sp

2016-12-12 Thomas Preud'homme <thomas.preudho...@arm.com>

    Backport from mainline
    2016-11-22  Thomas Preud'homme  <thomas.preudho...@arm.com>

    gcc/
    PR target/77904
    * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
    in save register mask if it is needed.

    gcc/testsuite/
    PR target/77904
    * gcc.target/arm/pr77904.c: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/gcc.target/arm/pr77904.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/config/arm/arm.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog

Reply via email to