This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Re: m68k bootstrap failure
- From: Gunther Nikl <gni at gecko dot de>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: Bernardo Innocenti <bernie at develer dot com>, GCC Mailing List <gcc at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 29 Oct 2003 14:08:10 +0100
- Subject: Re: [PATCH] Re: m68k bootstrap failure
- References: <3F9C505B.6080703@develer.com> <20031027171359.GA11774@lorien.int.gecko.de> <20031028143152.GA39589@lorien.int.gecko.de> <873cddkmk8.fsf_-_@egil.codesourcery.com>
On Tue, Oct 28, 2003 at 02:46:31PM -0800, Zack Weinberg wrote:
> Gunther Nikl <gni@gecko.de> writes:
> > Your patch http://gcc.gnu.org/ml/gcc-patches/2003-10/msg02274.html changing
> > genmodes.c/machmode.h breaks m68k when using FPU mode. A testcase can be
> > found here: http://gcc.gnu.org/ml/gcc/2003-10/msg01317.html.
>
> It took me an appallingly long time to track this down, but it turns
> out to be because I accidentally changed what GET_MODE_NUNITS returns
> for scalar modes, which caused HARD_REGNO_NREGS to return 0 for
> floating point registers. The appended patch should fix it. Please
> test it and let me know if it works.
With the patch installed the ICE is gone. The mentioned testcase does now
compile properly. I was also able to build a native compiler for my target.
If it doesn't work, it's probably not your fault :-)
Thank you very much for quickly providing a fix!
Gunther