[LLVMbugs] [Bug 13337] New: strip out DW_TAG_restrict_type on linux

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 11 18:30:57 PDT 2012


             Bug #: 13337
           Summary: strip out DW_TAG_restrict_type on linux
           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: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

GDB 7.4 and earlier don't support DW_TAG_restrict_type, and GCC 4.7 and earlier
won't generate them. LLVM should strip them out when emitting the debug info on
platforms that don't support them.

This breaks in the following way:

void foo(void* __restrict__ dst) {
int main(void) {
  return 0;

Starting program: /home/nlewycky/r 

Breakpoint 2, foo (dst=<unknown type in /home/nlewycky/r, CU 0x0, DIE 0x45>)
    at r.cc:2
2         dst;

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