[Bug rtl-optimization/32557] [4.3 Regression] internal compiler error: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:956
ebotcazou at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jul 15 15:43:00 GMT 2007
------- Comment #2 from ebotcazou at gcc dot gnu dot org 2007-07-15 15:43 -------
> I get something similiar with my 16-bit x86 port compiling libgcc:
Same on SPARC/Solaris:
http://gcc.gnu.org/ml/gcc-patches/2007-06/msg02135.html
> This patch seems to fix it:
>
> Index: gcc/df-problems.c
> ===================================================================
> --- gcc/df-problems.c (revision 126653)
> +++ gcc/df-problems.c (working copy)
> @@ -4023,8 +4023,9 @@ df_note_bb_compute (unsigned int bb_inde
> while (*mws_rec)
> {
> struct df_mw_hardreg *mws = *mws_rec;
> + rtx reg = REG_P (mws->mw_reg) ? mws->mw_reg : SUBREG_REG
> (mws->mw_reg);
> if ((mws->type != DF_REF_REG_DEF)
> - && !df_ignore_stack_reg (REGNO (mws->mw_reg)))
> + && !df_ignore_stack_reg (REGNO (reg)))
> old_dead_notes
> = df_set_dead_notes_for_mw (insn, old_dead_notes,
> mws, live, do_not_gen,
See the discussion at
http://gcc.gnu.org/ml/gcc-patches/2007-06/msg01894.html
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-07-15 15:43:00
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32557
More information about the Gcc-bugs
mailing list