mirror of
https://github.com/kdlucas/byte-unixbench.git
synced 2024-12-11 23:30:07 +08:00
arith: use volatile to attempt to thwart optimizer
github: fixes #7, fixes #10, fixes #21
This commit is contained in:
parent
9665b29c99
commit
ab61513f03
@ -35,7 +35,7 @@ char SCCSid[] = "@(#) @(#)arith.c:3.3 -- 5/15/91 19:30:19";
|
|||||||
|
|
||||||
int dumb_stuff(int);
|
int dumb_stuff(int);
|
||||||
|
|
||||||
unsigned long iter;
|
volatile unsigned long iter;
|
||||||
|
|
||||||
/* this function is called when the alarm expires */
|
/* this function is called when the alarm expires */
|
||||||
void report()
|
void report()
|
||||||
|
Loading…
Reference in New Issue
Block a user