Boost logo

Boost :

Subject: [boost] bjam assertion failure: does it really need stack alignment?
From: Steve M. Robbins (steve_at_[hidden])
Date: 2013-09-04 23:28:42


Hi,

A question for the bjam maintainers about
https://svn.boost.org/trac/boost/ticket/8993

The file tools/build/v2/engine/function.c contains this check:

  static void check_alignment( STACK * s )
  {
      assert( (size_t)s->data % sizeof( LIST * ) == 0 );
  }

However, things other than LIST* are allocated on the stack. For example
expand_modifiers() allocates VAR_EDITS objects, whose size turns out not to be
a multiple of sizeof(LIST*) on some architectures (m68k in the above ticket).

Does check_alignment() still make sense?

Thanks,
-Steve




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk