This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-2.95 asm bug
On Sat, Jun 26, 1999 at 03:36:21PM -0700, Richard Henderson wrote:
> On Sat, Jun 26, 1999 at 12:30:36PM +1100, Alexander Sokolov wrote:
> > rol.c:8: Invalid `asm' statement:
> > rol.c:8: fixed or forbidden register 2 (cx) was spilled for class CREG.
>
> http://egcs.cygnus.com/faq.html#asmclobber
BTW it is possible to reproduce this crash even on correct code with
mregparm=3 and approx folowing code:
func(int eax, int edx)
{
asm(""::"a"(edx),"d"(eax));
}
combiner combines in the hardregs resulting in reload to crash.
So not all such error messages are bugs in the program :)
Honza
>
>
> r~
--
------------------------------------------------------------------------------
Have you browsed my www pages? Look at:
http://www.paru.cas.cz/~hubicka
Koules-the game for Svgalib,X11 and OS/2, Xonix-the game for X11
czech documentation for linux index, original 2D computer art and
funny 100 years old photos and articles are there!