LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 4063 - clang -MD -MF doesn't create dependency file for .S source files
Summary: clang -MD -MF doesn't create dependency file for .S source files
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: -New Bugs (show other bugs)
Version: unspecified
Hardware: PC Linux
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks: 4068
  Show dependency tree
 
Reported: 2009-04-25 13:15 PDT by Török Edwin
Modified: 2009-05-03 05:05 PDT (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Török Edwin 2009-04-25 13:15:17 PDT
Works fine for .c files, but not for .S files:

clang -MD -MF arch/x86/kernel/.entry_64.o.d  -nostdinc -isystem include -Iinclude  -I/home/edwin/builds/linux-2.6/arch/x86/include -include include/linux/autoconf.h -D__KERNEL__ -D__ASSEMBLY__ -m64 -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iarch/x86/include/asm/mach-default     -c -o arch/x86/kernel/entry_64.o arch/x86/kernel/entry_64.S
fixdep: arch/x86/kernel/.entry_64.o.d: No such file or directory
Comment 1 Eli Friedman 2009-05-01 15:39:26 PDT
Note that this also affects Valgrind.
Comment 2 Daniel Dunbar 2009-05-03 04:22:29 PDT
This is because clang-cc currently is unable to generate dependency files when using -E. The problem is that both -E and dependency generation want to register preprocessor actions; this is probably just a matter of chaining one onto the other.