[PATCH] testsuite, clang: fix malloc04 and malloctest for on clang

Daniel Hellstrom daniel at gaisler.com
Fri Oct 5 07:26:33 UTC 2018


On 2018-10-05 09:14, Sebastian Huber wrote:
> On 05/10/2018 08:57, Daniel Hellstrom wrote:
>> malloc04 and malloctest tests from the rtems test-suite fails
>> when checking the return value of malloc(). The check is
>> optimized away and always fails.
>
> Please change the patch to use RTEMS_OBFUSCATE_VARIABLE() in the spots 
> where the compiler tries to be smarter than desired.
>
Thanks for the review, I will give it a try looks promising.



More information about the devel mailing list