This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: basic asm and memory clobbers - Proposed solution



Am 03.12.2015 um 16:24 schrieb Paul_Koning@Dell.com:
> On the other hand, asm volatile ("foo":::) has a different meaning. 
> That specifically says that "foo" doesn't clobber anything. 


Well, not exactly, see the md_asm_adjust target callback.

On i386, rs6000, visium, cris and mn10300 targets asm volatile ("foo":::)
implicitly clobbers the "cc" register, even if that is not in the 
clobber list


Bernd.


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