#1073 gcc-4.2.1-dw2-2 does not handle dllexport properly

closed-fixed
gcc (462)
2008-06-07
2007-08-16
Takashi Ono
No

gcc-4.2.1-dw2-2 seems to be ignoring dllexport attribute on uninitialized data.

__declspec(dllexport) int a;

does not work like gcc-3.x.x. The compiler does not emit the assembler directive.

__declspec(dllexport) int a=0;

seems to be OK.

Takashi Ono

Discussion

  • Danny Smith

    Danny Smith - 2007-08-16

    Logged In: YES
    user_id=11494
    Originator: NO

    Confirmed.

     
  • Danny Smith

    Danny Smith - 2008-06-07

    Logged In: YES
    user_id=11494
    Originator: NO

    This is result of incomplete backport of dllimport changes from 4.3.0.
    Works as expected in 4.3.x and 4.4.0.

    Danny

     
  • Danny Smith

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