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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs