[LLVMbugs] [Bug 13486] New: debug info has wrong AT_high_pc in CIE with global initializers
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jul 30 22:18:48 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13486
Bug #: 13486
Summary: debug info has wrong AT_high_pc in CIE with global
initializers
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: echristo at gmail.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
For testcase, look at
llvm/tools/clang/test/CodeGenCXX/debug-info-globalinit.cpp . The problem is
that clang emits a CIE that covers everything in the .text section, while
global variable initializers are placed in the .text.startup section. Note that
the point of the .text.startup section is to keep all of the global
initializers from all TUs laid out contiguously.
COMPILE_UNIT<header overall offset = 0>:
<0>< 11> DW_TAG_compile_unit
DW_AT_producer clang version 3.2 (trunk 161001)
DW_AT_language DW_LANG_C_plus_plus
DW_AT_name
llvm/tools/clang/test/CodeGenCXX/deb
ug-info-globalinit.cpp
DW_AT_stmt_list 0
DW_AT_comp_dir /home/nlewycky
DW_AT_low_pc 0x400540
DW_AT_high_pc 0x400576
[...]
<1>< 215> DW_TAG_subprogram
DW_AT_name __cxx_global_var_init
DW_AT_decl_file 1
llvm/tools/clang/test/CodeGenCXX/debug-info-globalinit.cpp
DW_AT_decl_line 13
DW_AT_low_pc 0x400580
DW_AT_high_pc 0x400592
DW_AT_frame_base DW_OP_reg6
--
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