www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23042] New: -betterC still includes RTInfo

https://issues.dlang.org/show_bug.cgi?id=23042

          Issue ID: 23042
           Summary: -betterC still includes RTInfo
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: betterC
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: duser neet.fi
                CC: duser neet.fi

test file: struct containing a pointer

struct S { int* x; }

compile with "dmd -c -betterC test.d", list the names using "nm test.o" (on
linux, don't know about windows)

0000000000000000 V _D6object__T10RTInfoImplVAmA2i8i1ZQwyG2m

there's an RTInfoImpl symbol even though D runtime stuff should be disabled by
-betterC

from the comments in object.d, RTInfo seems to be used by the precise GC, but
garbage collection is listed as unsupported on the betterC spec page so there
should be no use for the RTInfo data (or is there?)

--
Apr 21 2022