This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix ARM ICE for register var asm ("pc") (PR target/60606)
- From: Richard Henderson <rth at redhat dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>, gcc-patches at gcc dot gnu dot org
- Cc: richard dot earnshaw at arm dot com
- Date: Mon, 25 Aug 2014 08:54:32 -0700
- Subject: Re: Fix ARM ICE for register var asm ("pc") (PR target/60606)
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1408222113120 dot 16713 at digraph dot polyomino dot org dot uk>
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~