change log for rtems (2010-11-04)

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Nov 5 07:27:32 UTC 2010


On 11/05/2010 12:11 AM, rtems-vc at rtems.org wrote:
[...]
> diff -u rtems/cpukit/ChangeLog:1.2641 rtems/cpukit/ChangeLog:1.2642
> --- rtems/cpukit/ChangeLog:1.2641	Thu Nov  4 17:22:48 2010
> +++ rtems/cpukit/ChangeLog	Thu Nov  4 18:00:04 2010
> @@ -1,5 +1,11 @@
>  2010-11-04	Joel Sherrill <joel.sherrill at oarcorp.com>
>  
> +	* libmisc/stackchk/check.c: Make compile again.
> +	* sapi/src/io.c, score/src/heap.c: Address dead assignment
> +	issues found by clang.
> +
[...]
> diff -u rtems/cpukit/score/src/heap.c:1.39 rtems/cpukit/score/src/heap.c:1.40
> --- rtems/cpukit/score/src/heap.c:1.39	Wed Aug 25 07:35:52 2010
> +++ rtems/cpukit/score/src/heap.c	Thu Nov  4 18:00:04 2010
> @@ -416,7 +416,6 @@
>      uintptr_t const prev_block_size = _Heap_Block_size( prev_block );
>  
>      block = prev_block;
> -    block_begin = (uintptr_t) block;
>      block_size += prev_block_size;
>    }

Yes, this assignment has no effect on the generated code.  It was provided for
consistency.  The three variables belong to one entity (which clang cannot
know).  After these three assignment the three variables are in a consistent
state.  If you omit the block_begin assignment this is not the case.  Its a
style question which variant you prefer.

-- 
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
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 vc mailing list