Menu

#1116 gcc-4.2 aligns stack data incorrecly

closed-fixed
nobody
gcc (462)
2008-06-15
2008-01-03
No

The attached code shows a simple example of the align keyword not working properly for stack data.

Discussion

  • Gonzalo Garramuno

     
  • Gonzalo Garramuno

    Logged In: YES
    user_id=961712
    Originator: YES

    Oh yes. The expected behavior is that all the checks succeed.

     
  • Gonzalo Garramuno

    Logged In: YES
    user_id=961712
    Originator: YES

    Sorry. The title and bug should be aligns "static" data incorrectly. stack data seems okay in 4.1 (but was bad in 3.4.5).

     
  • Danny Smith

    Danny Smith - 2008-06-15

    Logged In: YES
    user_id=11494
    Originator: NO

    All checks succeed for me with gcc 4.2.1 and binutils 2.18, but I wouldn't depend on uninitialized data being aligned unless you compile with -fno-common, since PE-COFF format does not support aligned common.

    Danny

     
  • Danny Smith

    Danny Smith - 2008-06-15
    • status: open --> closed-fixed