-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Labels
clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl''clang' and 'clang++' user-facing binaries. Not 'clang-cl'
Description
https://godbolt.org/z/jsTch9cqq
Compile command clang -export-dynamic test.c
simply, but have a warning :
clang: warning: argument unused during compilation: '-e xport-dynamic' [-Wunused-command-line-argument]
It seem clang split option -export-dynamic
into -e xport-dynamic
.
It's dangerous if -e xport-dynamic
is sent to ld
, because of -e
means
-e ADDRESS, --entry ADDRESS Set start address
I don't think it's reasonable to split option -export-dynamic
into -e xport-dynamic
.
I can't find the code that split the option, if someone knows , just tell me.
Metadata
Metadata
Assignees
Labels
clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl''clang' and 'clang++' user-facing binaries. Not 'clang-cl'