zephyr/tests/kernel/fatal
Eugeniy Paltsev ea8c4b91b5 tests: exception: workaround agressive optimization
The memset in the 'blow_up_stack' function can be optimized
away as it is called in the end of the function on the buffer
allocated on the stack (so it has 'no' effect on program
execution)

The 'stack_smasher' call can be optimized away as it's results
isn't used anywhere and stack_smasher function has no visible
side effects.

Fix that by disabling optimization on these functions.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
2020-10-06 11:41:23 -04:00
..
exception tests: exception: workaround agressive optimization 2020-10-06 11:41:23 -04:00
message_capture test: fatal exception: add test case 2020-09-17 21:37:39 -04:00