r235809 - in /trunk/gcc: ChangeLog df-scan.c ha...
bernds@gcc.gnu.org
bernds@gcc.gnu.org
Tue May 3 09:35:00 GMT 2016
Author: bernds
Date: Tue May 3 09:35:42 2016
New Revision: 235809
URL: https://gcc.gnu.org/viewcvs?rev=235809&root=gcc&view=rev
Log:
Fix PR44281, bad RA with global regs.
PR rtl-optimization/44281
* hard-reg-set.h (struct target_hard_regs): New field
x_fixed_nonglobal_reg_set.
(fixed_nonglobal_reg_set): New macro.
* reginfo.c (init_reg_sets_1): Initialize it.
* ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
of fixed_reg_set.
* df-scan.c (df_insn_refs_collect): Asms may reference global regs.
testsuite/
PR rtl-optimization/44281
* gcc.target/i386/pr44281.c: New test.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr44281.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/df-scan.c
trunk/gcc/hard-reg-set.h
trunk/gcc/ira.c
trunk/gcc/reginfo.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list