Commit 692dd8ed authored by Mans Rullgard's avatar Mans Rullgard

configure: x86: improve ebp availability check

Some compilers are extra strict about register usage in main(),
disallowing ebp in inline asm there while allowing it elsewhere.
This change makes the test better reflect actual usage.
Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent 714508bc
......@@ -863,6 +863,9 @@ check_exec_crash(){
static void sighandler(int sig){
raise(SIGTERM);
}
int foo(void){
$code
}
int main(void){
signal(SIGILL, sighandler);
signal(SIGFPE, sighandler);
......@@ -870,7 +873,7 @@ int main(void){
#ifdef SIGBUS
signal(SIGBUS, sighandler);
#endif
{ $code }
foo();
}
EOF
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment