From af15c95e707cfc911400d40d1a1109727dcabcf3 Mon Sep 17 00:00:00 2001 From: Brian Dessent Date: Tue, 5 Aug 2008 19:20:58 +0000 Subject: * config/i386/profile.h (mcount): Mark asms volatile. --- winsup/cygwin/config/i386/profile.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/config') diff --git a/winsup/cygwin/config/i386/profile.h b/winsup/cygwin/config/i386/profile.h index ad5f625d0..748b89aa0 100644 --- a/winsup/cygwin/config/i386/profile.h +++ b/winsup/cygwin/config/i386/profile.h @@ -48,11 +48,11 @@ mcount() \ * \ * selfpc = pc pushed by mcount call \ */ \ - __asm("movl 4(%%ebp),%0" : "=r" (selfpc)); \ + __asm __volatile ("movl 4(%%ebp),%0" : "=r" (selfpc)); \ /* \ * frompcindex = pc pushed by call into self. \ */ \ - __asm("movl (%%ebp),%0;movl 4(%0),%0" : "=r" (frompcindex)); \ + __asm __volatile ("movl (%%ebp),%0;movl 4(%0),%0" : "=r" (frompcindex));\ _mcount(frompcindex, selfpc); \ } -- cgit v1.2.3