Strict aliasing and chains revisited

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Nov 29 08:48:04 UTC 2010


I changed the chain control definition to (in CVS head):

typedef union {
  struct {
    Chain_Node Node;
    Chain_Node *fill;
  } Head;

  struct {
    Chain_Node *fill;
    Chain_Node Node;
  } Tail;
} Chain_Control;

This will lead to compile time errors in user code in case of chain API violations.

I also added test cases to

testsuites/sptests/spchain

to ensure that the layout is as expected.

-- 
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 users mailing list