This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix ARM ICE for register var asm ("pc") (PR target/60606)


On 08/22/2014 02:14 PM, Joseph S. Myers wrote:
> Tested with no regressions for cross to arm-none-eabi (it also fixes
> failures of gcc.dg/noncompile/920507-1.c, which is PR 61330).  OK to
> commit?
> 
> 2014-08-22  Joseph Myers  <joseph@codesourcery.com>
> 
> 	PR target/60606
> 	PR target/61330
> 	* varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
> 	DECL_HARD_REGISTER and return for invalid register specifications.
> 	* cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
> 	DECL_HARD_REGISTER, call expand_one_error_var.
> 	* config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
> 	CC_REGNUM with non-MODE_CC modes.
> 	(arm_regno_class): Return NO_REGS for PC_REGNUM.
> 
> 2014-08-22  Joseph Myers  <joseph@codesourcery.com>
> 
> 	PR target/60606
> 	PR target/61330
> 	* gcc.dg/torture/pr60606-1.c, gcc.target/arm/pr60606-2.c,
> 	gcc.target/arm/pr60606-3.c, gcc.target/arm/pr60606-4.c: New tests.

Ok.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]