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

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Oct 5 07:14:34 UTC 2018


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.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list