[llvm-bugs] [Bug 40709] New: ARM64: Debug info for structure argument missing DW_AT_location

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 12 15:17:23 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40709

            Bug ID: 40709
           Summary: ARM64: Debug info for structure argument missing
                    DW_AT_location
           Product: new-bugs
           Version: 7.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: maya.madhavan at windriver.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

For the given test case, with LLVM 6.0.0, the DW_AT_location information is
generated but with LLVM 7.0.0, that is no longer the case.

$ cat small.c
extern int printf(const char *, ...);

typedef struct
    {
    char structchar1;       
    char structchar2;       
    char structchar3;       
    int structinteger1;     
    int structinteger2;     
    int structinteger3;     
    float structfloating1;  
    float structfloating2;  
    float structfloating3;  
    } mystruct;

int functionDifferentArgTest (mystruct structByValue)
    {
    printf ("in function functionDifferentArgTest, str=%llx\n", (unsigned long
long) &structByValue);

    return (16);
    }
$


With LLVM 6.0.0:

$ clang -gdwarf-3  --target=arm64  -c small.c
$ llvm-dwarfdump small.o
...
0x00000055:     DW_TAG_formal_parameter [4]
                  DW_AT_location [DW_FORM_data4]        (0x00000000)
                  DW_AT_name [DW_FORM_strp]     ( .debug_str[0x000000f5] =
"structByValue")
                  DW_AT_decl_file [DW_FORM_data1]      
("/tmp/realTest/small.c")
                  DW_AT_decl_line [DW_FORM_data1]       (16)
                  DW_AT_type [DW_FORM_ref4]     (cu + 0x006c => {0x0000006c})

...



With LLVM 7.0.0:
$ clang -gdwarf-3  --target=arm64  -c small.c
$ llvm-dwarfdump small.o
0x00000055:     DW_TAG_formal_parameter [4]
                  DW_AT_name [DW_FORM_strp]     ( .debug_str[0x000000f5] =
"structByValue")
                  DW_AT_decl_file [DW_FORM_data1]      
("/tmp/realTest/small.c")
                  DW_AT_decl_line [DW_FORM_data1]       (16)
                  DW_AT_type [DW_FORM_ref4]     (cu + 0x0068 => {0x00000068})

...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190212/a4dd0d21/attachment-0001.html>


More information about the llvm-bugs mailing list