aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/simulate-thread/speculative-store.c
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2012-02-24 21:16:26 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>2012-02-24 21:16:26 +0000
commit9fced7562f07a2ff569dbb472f5f600d56fd0859 (patch)
treea0b3d285254aa38e8077dc9baf77a4aca28fda76 /gcc/testsuite/gcc.dg/simulate-thread/speculative-store.c
parent15498cfa4ee495c125aaf847a77bf1001505178b (diff)
downloadgcc-9fced7562f07a2ff569dbb472f5f600d56fd0859.zip
gcc-9fced7562f07a2ff569dbb472f5f600d56fd0859.tar.gz
gcc-9fced7562f07a2ff569dbb472f5f600d56fd0859.tar.bz2
simulate-thread.gdb: Use return value from simulate_thread_wrapper_other_threads
* gcc.dg/simulate-thread/simulate-thread.gdb: Use return value from simulate_thread_wrapper_other_threads * gcc.dg/simulate-thread/atomic-load-int128.c (simulate_thread_main): Move initialization of 'value' to main(). (main): Initialize 'value'; * gcc.dg/simulate-thread/speculative-store.c (simulate_thread_step_verify): Return 0 when successful. * gcc.dg/simulate-thread/simulate-thread.h (HOSTILE_THREAD_THRESHOLD): Reduce threshold. (INSN_COUNT_THRESHOLD): New. Instruction limit to terminate test. (simulate_thread_wrapper_other_threads): Return a success/fail value and issue an error if the instruction count threshold is exceeded. From-SVN: r184564
Diffstat (limited to 'gcc/testsuite/gcc.dg/simulate-thread/speculative-store.c')
-rw-r--r--gcc/testsuite/gcc.dg/simulate-thread/speculative-store.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/simulate-thread/speculative-store.c b/gcc/testsuite/gcc.dg/simulate-thread/speculative-store.c
index 71d1cca..ff9d71e0 100644
--- a/gcc/testsuite/gcc.dg/simulate-thread/speculative-store.c
+++ b/gcc/testsuite/gcc.dg/simulate-thread/speculative-store.c
@@ -24,6 +24,7 @@ int simulate_thread_step_verify()
printf("FAIL: global variable was assigned to. \n");
return 1;
}
+ return 0;
}
int simulate_thread_final_verify()