linux-mips
[Top] [All Lists]

Re: [PATCH] mm/pg-r4k.c: Dump the generated code

To: Nigel Stephens <nigel@mips.com>
Subject: Re: [PATCH] mm/pg-r4k.c: Dump the generated code
From: Franck Bui-Huu <vagabon.xyz@gmail.com>
Date: Wed, 17 Oct 2007 09:56:41 +0200
Cc: Thiemo Seufer <ths@networkno.de>, "Maciej W. Rozycki" <macro@linux-mips.org>, Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type; bh=o58/wAJrY+5hEEe3FPiqjT1rYMIc5GyOOrStrPHx+v0=; b=XuqyDzvOhU6ZC9KeKs2Y1IGjffxCFVXngoSLZyeCotElQSZdV/NOu/rccv7bi8LI7wxBcHWhhRqI6n4vA5aQhGqnACWIcGZIzUpM/zlPiKjs7d9XFSK14sIsWeucmRf3tYMpQp7hgMPRNlUYh3LX3v7hH4K8DEPKXCHpjV7aA2I=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type; b=PIeeSL+yaOvDKHWCmYcYWDwZqLSDeIerRXpEfuOCvzpESfR2V7/rKFiCVNrhDxw/ggoD2xRsH1Wnp/Baj1bur/EXFKoKzx3W8x+I24XYCH393+cyfXGxffEBo1nMQV2WG2wvpfLZ4I+k3YyWkykOOrlpE9eXO7lOwPZH1aZrrNM=
In-reply-to: <4714B58E.8020005@mips.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20071004121557.GA28928@linux-mips.org> <4705004C.5000705@gmail.com> <Pine.LNX.4.64N.0710041616570.10573@blysk.ds.pg.gda.pl> <4705EFE5.7090704@gmail.com> <Pine.LNX.4.64N.0710051312490.17849@blysk.ds.pg.gda.pl> <470A4349.9090301@gmail.com> <Pine.LNX.4.64N.0710081611460.8873@blysk.ds.pg.gda.pl> <470BE1F4.3070800@gmail.com> <Pine.LNX.4.64N.0710101231290.9821@blysk.ds.pg.gda.pl> <47126EDC.1060305@gmail.com> <20071014195324.GT3379@networkno.de> <4713C11F.3010903@gmail.com> <4713C958.8080805@mips.com> <47147551.1010004@gmail.com> <4714B58E.8020005@mips.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 2.0.0.5 (X11/20070719)
Nigel Stephens wrote:
> 
> Could you run that gcc command manually, adding the options "-v
> --save-temps", and post the resulting output messages, and the user.s file.
> 

Ok, I did it except I used init/do_mounts.c file since it has at least
one nop load delay slot (cf label $L50 in do_mount.s)

Here's the output when adding "-v --save-temps" to the gcc cmd line:

mipsel-linux-gcc: warning: -pipe ignored because -save-temps specified
Reading specs from /usr/lib/gcc/mipsel-linux/3.4.4/specs
Configured with: 
/var/tmp/releasetool-rpm.tmp/bank-20061023-1709/B-i386-linux-rpm/rpmbuild/BUILD/mipssde-6.05.00/configure
 --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info 
--disable-gdbtk --enable-languages=c --with-local-prefix=/mipsel-linux/local 
--disable-multilib --disable-shared --enable-static --disable-threads 
--target=mipsel-linux --host=i386-linux --build=i386-linux
Thread model: single
gcc version 3.4.4 mipssde-6.05.00-20061023
 /usr/libexec/gcc/mipsel-linux/3.4.4/cc1 -E -quiet -nostdinc -v -Iinclude 
-Iinclude/asm-mips/mach-generic -U__PIC__ -U__pic__ -D__KERNEL__ 
-DVMLINUX_LOAD_ADDRESS=0xffffffffc0000000 -DKBUILD_STR(s)=#s 
-DKBUILD_BASENAME=KBUILD_STR(do_mounts) -DKBUILD_MODNAME=KBUILD_STR(mounts) 
-isystem /usr/lib/gcc/mipsel-linux/3.4.4/include -include 
include/linux/autoconf.h -MD init/.do_mounts.o.d init/do_mounts.c -G 0 -mabi=32 
-mno-abicalls -msoft-float -march=mips32r2 -msmartmips -Wall -Wundef 
-Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration 
-Wdeclaration-after-statement -fno-strict-aliasing -fno-common -fno-pic 
-ffreestanding -fomit-frame-pointer -fworking-directory -O2 -o do_mounts.i
#include "..." search starts here:
#include <...> search starts here:
 include
 include/asm-mips/mach-generic
 /usr/lib/gcc/mipsel-linux/3.4.4/include
End of search list.
 /usr/libexec/gcc/mipsel-linux/3.4.4/cc1 -fpreprocessed do_mounts.i -G 0 -quiet 
-dumpbase do_mounts.c -mabi=32 -mno-abicalls -msoft-float -march=mips32r2 
-msmartmips -auxbase-strip init/do_mounts.o -g -O2 -Wall -Wundef 
-Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration 
-Wdeclaration-after-statement -version -fno-strict-aliasing -fno-common 
-fno-pic -ffreestanding -fomit-frame-pointer -o do_mounts.s
GNU C version 3.4.4 mipssde-6.05.00-20061023 (mipsel-linux)
        compiled by GNU C version 3.3.
GGC heuristics: --param ggc-min-expand=90 --param ggc-min-heapsize=113135
 /usr/lib/gcc/mipsel-linux/3.4.4/../../../../mipsel-linux/bin/as -G 0 -EL 
-msmartmips -O2 -g -no-mdebug -32 -march=mips32r2 -v -non_shared -mips32r2 
--trap -o init/do_mounts.o do_mounts.s
GNU assembler version 2.15.94 (mipsel-linux) using BFD version 2.15.94 
mipssde-6.05.00-20061023

I also attached do_mount.s.

                Franck

Attachment: do_mounts.s.gz
Description: application/compressed-tar

<Prev in Thread] Current Thread [Next in Thread>