[llvm-dev] Debug Info is not generated for extern variables .

Umesh Kalappa via llvm-dev llvm-dev at lists.llvm.org
Fri May 17 09:20:41 PDT 2019


Hi All,

for the below case :
$cat test.c
extern void sharedLibTestLibRtn (int arg);
extern int testExt;
int main (void)
    {
    testExt++;
    sharedLibTestLibRtn (5);

    return 0;
    }
we don't see the debug-info for "testExt" i.e no DW_AT_type  entry for
extern symbol ,where gcc has the same .

we are  fixing  the same in clang as compatibility with gcc .

before we start our analysis on DIBuilder in clang ,any inputs here
will be appreciated .

Thank you
~Umesh


More information about the llvm-dev mailing list