[Issue 21221] New: only print unique messages (from the compiler)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 4 04:30:32 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21221
Issue ID: 21221
Summary: only print unique messages (from the compiler)
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: mingwu at gmail.com
I'm using "-vtls" to view the thread local variables, but I saw thousands of
lines of duplicate messages like this:
...
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(729,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(723,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(729,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(723,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(729,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(723,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(729,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(723,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(729,8):
`aggregate` is thread local
/Users//.dub/packages/mir-core-1.1.10/mir-core/source/mir/reflection.d(723,8):
`aggregate` is thread local
...
[thousands of lines of duplication]
I'm wondering if dmd can detect such duplication, and only print unique
messages.
Right now, I'm using this shell work-around:
$ make release | grep 'is thread local' | sort | uniq
Thanks.
--
More information about the Digitalmars-d-bugs
mailing list