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]
Other format: [Raw text]

C++ parser refusing asm statatement


Hi,
now with fixed xmmintrin.h I am almost able to compile it with C++.
However this looks like parser bug:
hubicka@kampanus:/aux/hubicka/egcs2/gcc/build/gcc$ ./g++ -B ./ -O2 t.C
-msse2
In file included from t.C:1:
include/xmmintrin.h: In function `void _mm_pause()':
include/xmmintrin.h:1064: error: expected string-literal
include/xmmintrin.h:1064: error: expected `('
include/xmmintrin.h:1064: error: expected primary-expression
include/xmmintrin.h:1064: error: expected `)'
t.C:5: error: expected `;'
t.C:5: error: expected `}'

line in question is
static __inline void
_mm_pause (void)
{
  __asm__ __volatile__ ("rep; nop" : : );
}
that looks valid to me.
t.C:
#include <xmmintrin.h>
main()
{
}


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