Date: 18 Jul 2003 18:21:11 -0700 From: LLeweLLyn Reese <llewelly@lifesupport.shutdown.com> To: Nate Lawson <nate@root.org> Cc: current@freebsd.org Subject: Re: warning: inlining failed Message-ID: <x3oezrnwfs.fsf@lifesupport.shutdown.com> In-Reply-To: <20030718121511.I26395@root.org> References: <20030718121511.I26395@root.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Nate Lawson <nate@root.org> writes:
> Warner mentioned this was due to the gcc import. Nearly every part of the
> kernel that uses newbus or buf.h prints out lots of warnings. Can someone
> see about fixing this, whether it's by fixing our headers or build flags
> or gcc itself? I've already wasted a few reboot cycles because valid
> warnings were lost in the crowd.
>
> cc -O -pipe -mcpu=pentiumpro -D_KERNEL -Wall -Wredundant-decls
> -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
> -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99
> -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/dev -I@/../include
> -I/usr/include -fno-common -mno-align-long-strings
> -mpreferred-stack-boundary=2 -ffreestanding -Wall -Wredundant-decls
> -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
> -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99
> -c
[snip]
-Wno-inline will disable warnings about functions not getting
inlined. If the inlining is necessary, consider -finline-limit as
suggested by another poster.
I haven't tried it myself, but it seems probably harmless and at least
useful for seeing those other warnings you'd like to see.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?x3oezrnwfs.fsf>
