[Bug target/47675] [avr] problems with asm when all registers on clobber list

Kicer86 at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Feb 10 11:51:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47675

--- Comment #2 from Michał Walenciak <Kicer86 at gmail dot com> 2011-02-10 11:37:11 UTC ---
(In reply to comment #1)
> Don't use clobbers then but save/restore the registers yourself.  You can't
> obviously take away all regs from GCC.  Eventually this should be diagnosed
> though - I suppose you do see warnings?

the problem is that warn appears only if -O0 is used. It doesn't appear when
any other -Ox is used.
I know that I can push pop regs by myself but why g++ cannot ?



More information about the Gcc-bugs mailing list