https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96230
--- Comment #2 from z.zhanghaijian at huawei dot com <z.zhanghaijian at huawei dot com> --- (In reply to Richard Biener from comment #1) > But then an empty dumpbase should be OK? The case ic-misattribution-1.c in the gcc testsuite contains an empty string -dumpbase "". However, this case directly generates an executable without -S/-c. The have_c is false when without -S/-c. So it goes to the branch "else if (!have_c && (!explicit_dumpdir || (dumpbase && !*dumpbase)))" to process the empty string.