mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
Symbols defined using assembler directives lack type info, but in this
case one ought to be able to cast a pointer to the symbol and
dereference the pointer to get a value. Without this change, D
disallows this trick since it requires all identifiers to have a type.
Relax the rules slightly and allow an identifier to have type "void" if
we know we're just taking its address.
As a result, the following dtrace invocation works:
dtrace -n 'tick-1s {printf("%d", *(int *)&`ticks);}'
In particular, since commit
|
||
|---|---|---|
| .. | ||
| compat/opensolaris | ||
| contrib/opensolaris | ||
| lib | ||
| sbin | ||
| share | ||
| tests | ||
| usr.bin | ||
| usr.libexec | ||
| usr.sbin | ||
| Makefile | ||
| Makefile.inc | ||