This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Incorrect movem optimization on m68k


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]