This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Incorrect movem optimization on m68k
- To: Tony Mantler <eek at escape dot ca>
- Subject: Re: Incorrect movem optimization on m68k
- From: Horst von Brand <vonbrand at pincoya dot inf dot utfsm dot cl>
- Date: Thu, 02 Mar 2000 11:42:20 -0300
- cc: gcc-bugs at gcc dot gnu dot org
Tony Mantler <eek@escape.ca> said:
> I've got gcc 2.95.2 (debian package 20000220) running on and compiling for
> an m68k mac, and I'm finding that gcc is optimizing away a large chunk of a
> rather important movem instruction.
Your movem instruction comes out of the inards of an asm(), which gcc
doesn't even touch (it just substitutes arguments for %<foo>'s and passes
the rest on). If the binary isn't right, check the assembly output (gcc -S
source.c). If _that_ isn't right, then gcc is to blame. But (given the
above) I strongly suspect your assembler in this case.
Sorry I can't help more.
--
Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513