#2 fix packing of struct HOTSPOT with gcc 3

closed-accepted
nobody
None
5
2005-11-17
2005-07-10
Dirk Jagdmann
No

gcc 3.x does ignores the __attribute__(packed)
declaration and therefore struct HOTSPOT has the wrong
size. This patch fixed packing of struct HOTSPOT.

Further I have added an assert which check that
sizeof(HOTSPOT) is really 15 bytes, so a wrongly packed
HOTSPOT will not result in an undefined run of this
program.

Discussion

  • Dirk Jagdmann
    Dirk Jagdmann
    2005-07-10

    fix packing of struct HOTSPOT with gcc 3

     
    Attachments
  • Paul Wise
    Paul Wise
    2005-11-17

    • status: open --> closed
     
  • Paul Wise
    Paul Wise
    2005-11-17

    Logged In: YES
    user_id=35028

    Applied the patch as-is, thanks for your contribution.

     
  • Paul Wise
    Paul Wise
    2005-11-17

    • status: closed --> closed-accepted