[Issue 23042] New: -betterC still includes RTInfo

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 21 15:26:11 UTC 2022


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 at puremagic.com
          Reporter: duser at neet.fi
                CC: duser at 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?)

--


More information about the Digitalmars-d-bugs mailing list