This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: FW: How to let Linux kernel Makefile generate intermediate *.i files ? It doesn't work to add "EXTRA_CFLAGS += -save-temps" in Makefile and gets "cc: warning: -pipe ignored because -wave-temps specified."
- From: Randy Dunlap <rdunlap at xenotime dot net>
- To: Liu Wang <liuw at supermicro dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Mon, 17 Oct 2011 09:35:10 -0700
- Subject: Re: FW: How to let Linux kernel Makefile generate intermediate *.i files ? It doesn't work to add "EXTRA_CFLAGS += -save-temps" in Makefile and gets "cc: warning: -pipe ignored because -wave-temps specified."
- References: <09F85D53A2F0C547BF5E05E214DB880A23C8563248@MAIL5.supermicro.com>
On 10/17/2011 09:27 AM, Liu Wang wrote:
>
>
> -----Original Message-----
> From: Liu Wang
> Sent: Saturday, October 15, 2011 5:42 PM
> To: 'gcc-help@gcc.gnu.org'
> Subject: How to let Linux kernel Makefile generate intermediate *.i files ? It doesn't work to add "EXTRA_CFLAGS += -save-temps" in Makefile and gets "cc: warning: -pipe ignored because -wave-temps specified."
>
> Sir./Madam,
>
> Appreciate your helping me with the following.
>
> How to let Linux kernel Makefile generate intermediate *.i files ?
> It doesn't work to add "EXTRA_CFLAGS += -save-temps" in Makefile and gets "cc: warning: -pipe ignored because -wave-temps specified."
The Linux kernel Makefile already has support for generating .i files.
"make help" (partial output) says:
(for targets)
dir/file.[oisS] - Build specified target only
I have binary files built in the X64 subdirectory, so I tested like so:
$ make O=X64 ARCH=x86_64 init/calibrate.i
$ ls -l X64/init/*.i
-rw-r--r-- 1 rddunlap users 354232 Oct 17 09:32 X64/init/calibrate.i
--
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***