This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Compiler crashes with _push_/_pop_ instrinsics

When using the new instrinsic functions
_push_() and _pop_() with variables other than int, the compiler crashes.

Example:
---------------------------------
#include <intrins.h>

void crash(void)
{
int *i;
// ...
// ... abritrary code
// ...
_push_(i);
// ...
// ... abritrary code
// ...
i = _pop_();
}

----------------------------------

Even and explicit type cast, such as

_push_((int)i);
i = (int*)_pop_();

wouldn't solve the problem.

BTW, the problem seems to be in the optimizer, because optimize levels below 2 (access optimization) work!
But as I wanted to utilize these instrinsics for producing very dense code, lowering the optimize level wouldn't be a proper work-around...

regards,
Ralf

0