This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ICE outputting unaligned fp constant on powerpc-apple-darwin5.1
- From: Dale Johannesen <dalej at apple dot com>
- To: Stuart Hastings <stuart at apple dot com>
- Cc: Dale Johannesen <dalej at apple dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 5 Dec 2001 10:43:47 -0800
- Subject: Re: ICE outputting unaligned fp constant on powerpc-apple-darwin5.1
> My preferred solution would be for some enlightened person to explain
> that I've misunderstood the PPC alignment rules :-) .
Nope.
> Failing that, my next idea was to delete the sanity check, and Apple
> is currently using such a patch. However, that leaves the "align"
> parameter unreferenced, and presumably this is a useful check for
> every other GCC target.
>
> There are several possible fixes, all unpalatable. Either we 1) delete
> the check, 2) pass down more information to facilitate a smarter
> check, or 3) conditionalize it away for PPC.
Deleting the check is cleanest, and is arguably right since it isn't
correct for all targets. One thing that would be helpful to know is
just how useful this check is. Has it caught many actual errors in
the past?