From: Andi Kleen <ak@muc.de>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org, jh@suse.cz
Subject: [PATCH] Add -Winline
Date: Wed, 14 Jan 2004 10:07:43 +0100 [thread overview]
Message-ID: <20040114090743.GA1975@averell> (raw)
Add -Winline by default. This makes the compiler warn when something
marked inline is not getting inlined. This is often because the
It should only make a difference with gcc 3.4, because in earlier
compilers we use always_inline and not inlining with always_inline
is an error already.
--- linux-34/Makefile-o 2004-01-09 09:27:08.000000000 +0100
+++ linux-34/Makefile 2004-01-14 09:36:18.172866544 +0100
@@ -448,6 +449,9 @@
# warn about C99 declaration after statement
CFLAGS += $(call check_gcc,-Wdeclaration-after-statement,)
+# warn about impossible inlines
+CFLAGS += $(call check_gcc,-Winline,)
+
#
# INSTALL_PATH specifies where to place the updated kernel and system map
# images. Uncomment if you want to place them anywhere other than root.
next reply other threads:[~2004-01-14 9:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-14 9:07 Andi Kleen [this message]
2004-01-15 12:42 ` [PATCH] Add -Winline Adrian Bunk
2004-01-15 12:55 ` Jan Hubicka
2004-01-17 1:12 ` Adrian Bunk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040114090743.GA1975@averell \
--to=ak@muc.de \
--cc=akpm@osdl.org \
--cc=jh@suse.cz \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.