re PR debug/52983 (internal compiler error: in df_uses_record, at df-scan.c:3243)

PR debug/52983
* valtrack.c (dead_debug_insert_temp): Use cleanup_auto_inc_dec.

From-SVN: r190063
This commit is contained in:
Alexandre Oliva 2012-08-02 00:34:41 +00:00 committed by Alexandre Oliva
parent 375e3d0742
commit e7206ab1c3
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2012-08-01 Alexandre Oliva <aoliva@redhat.com>
PR debug/52983
* valtrack.c (dead_debug_insert_temp): Use cleanup_auto_inc_dec.
2012-08-01 Alexandre Oliva <aoliva@redhat.com>
PR debug/52983

View File

@ -388,7 +388,7 @@ dead_debug_insert_temp (struct dead_debug *debug, unsigned int uregno,
breg = NULL;
/* Cool, it's the same REG, we can use SRC. */
else if (dest == reg)
breg = copy_rtx (src);
breg = cleanup_auto_inc_dec (src, VOIDmode);
else if (REG_P (dest))
{
/* Hmm... Something's fishy, we should be setting REG here. */
@ -406,7 +406,8 @@ dead_debug_insert_temp (struct dead_debug *debug, unsigned int uregno,
/* Ok, it's the same (hardware) REG, but with a different
mode, so SUBREG it. */
else
breg = lowpart_subreg (GET_MODE (reg), copy_rtx (src),
breg = lowpart_subreg (GET_MODE (reg),
cleanup_auto_inc_dec (src, VOIDmode),
GET_MODE (dest));
}
else if (GET_CODE (dest) == SUBREG)
@ -427,7 +428,8 @@ dead_debug_insert_temp (struct dead_debug *debug, unsigned int uregno,
breg = NULL;
/* Yay, we can use SRC, just adjust its mode. */
else
breg = lowpart_subreg (GET_MODE (reg), copy_rtx (src),
breg = lowpart_subreg (GET_MODE (reg),
cleanup_auto_inc_dec (src, VOIDmode),
GET_MODE (dest));
}
/* Oh well, we're out of luck. */