[LLVMbugs] [Bug 14575] New: Debug info for unused _Complex parameters is missing

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 11 09:41:07 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=14575

             Bug #: 14575
           Summary: Debug info for unused _Complex parameters is missing
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: googler
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dblaikie at gmail.com
                CC: dgregor at apple.com, echristo at gmail.com,
                    llvmbugs at cs.uiuc.edu
            Blocks: 14330
    Classification: Unclassified


In the following example:

long double _Complex callcc (long double _Complex ld1, long double _Complex
ld2, int i) {
  return ld2;
}

long double _Complex ldc = 5.0L + 6.0iL;

int main() {
  callcc(ldc, ldc, 3);
}

clang produces a DW_TAG_subprogram with only two DW_TAG_formal_parameters; one
for 'ld2' and one for 'i', but none for 'ld1'. If the parameter is used or
isn't complex (I tried primitive types like int and user defined types like
structs) it is not emitted unless it is used.

This shows up in gdb.base/funcargs.exp in the GDB 7.5 test suite

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list