This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [3.1.1/mainline] expand_builtin_init_dwarf_reg_sizes fix.
- From: Jason Merrill <jason at redhat dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org, patches at x86-64 dot org, rth at cygnus dot com
- Date: Wed, 22 May 2002 11:50:45 -0400
- Subject: Re: [3.1.1/mainline] expand_builtin_init_dwarf_reg_sizes fix.
- References: <20020522141026.GO18955@atrey.karlin.mff.cuni.cz>
>>>>> "Jan" == Jan Hubicka <jh@suse.cz> writes:
> ! for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
> ! if (DWARF_FRAME_REGNUM (i) < DWARF_FRAME_REGISTERS)
As long as you're doing this test here,
> ! {
> ! HOST_WIDE_INT offset = DWARF_FRAME_REGNUM (i) * GET_MODE_SIZE (mode);
> ! HOST_WIDE_INT size = GET_MODE_SIZE (reg_raw_mode[i]);
> ! if (offset < 0)
> ! continue;
you might as well do this test at the same time, i.e.
if (DWARF_FRAME_REGNUM (i) >= 0
&& DWARF_FRAME_REGNUM (i) < DWARF_FRAME_REGISTERS)
Otherwise, looks fine.
Jason