From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UCXqe-0000BA-Or for mharc-grub-devel@gnu.org; Mon, 04 Mar 2013 11:02:44 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCXqY-0000Au-Cn for grub-devel@gnu.org; Mon, 04 Mar 2013 11:02:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCXqT-000369-Cz for grub-devel@gnu.org; Mon, 04 Mar 2013 11:02:38 -0500 Received: from mail-bk0-f49.google.com ([209.85.214.49]:56069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCXqT-00035s-6Q for grub-devel@gnu.org; Mon, 04 Mar 2013 11:02:33 -0500 Received: by mail-bk0-f49.google.com with SMTP id w11so2482009bku.8 for ; Mon, 04 Mar 2013 08:02:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer; bh=H2SVY6lCa06wAszfvtRoTw8BKMcMYXmm7XDjrGwZpuI=; b=mAX3uKRJB+7coTdcdDE4KwjSXobPTjvsK8vzYvuSI2w8R0WpnIHDBBUo9OUWeyl7rb 98DDqYzUJkBsIIuuGosa677VSNYp0G5q/Wwa80okTRnz+OgEd5Jq185QH7ACYzDF/XNI amMblNqLP5pzz9IDAYwqCy1+FIWB9gSDP2kcXwbNxccUp8Cw6rYlx6LlbeRWhpk0W4Xk AF6EEpYa3vXZz3of1TN6q3JY4ueotwF53sDMWDztPI2RAtH8u2xKZTfDzye5bakMa77S uKTitHbM891Uowac4EY235rlAcWhPrZbLYq6DWBZSZM6q6EQ4NiIMvNvxJwki+uDLGn+ pxVA== X-Received: by 10.204.145.145 with SMTP id d17mr7780792bkv.31.1362412951419; Mon, 04 Mar 2013 08:02:31 -0800 (PST) Received: from localhost.localdomain (ppp79-139-243-180.pppoe.spdop.ru. [79.139.243.180]) by mx.google.com with ESMTPS id ge12sm6020445bkc.19.2013.03.04.08.02.28 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Mar 2013 08:02:28 -0800 (PST) From: Andrey Borzenkov To: grub-devel@gnu.org Subject: [PATCH] remove always_inline from fs/iso9660.c, caused gcc error Date: Mon, 4 Mar 2013 20:01:07 +0400 Message-Id: <1362412867-29833-1-git-send-email-arvidjaar@gmail.com> X-Mailer: git-send-email 1.7.10.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.214.49 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Mar 2013 16:02:43 -0000 gcc -DHAVE_CONFIG_H -I. -Wall -W -I./include -DGRUB_UTIL=1 -DGRUB_LIBDIR=\"/usr/local/lib64/grub\" -DLOCALEDIR=\"/usr/local/share/locale\" -DGRUB_FILE=\"grub-core/fs/iso9660.c\" -I. -I. -I. -I. -I./include -I./include -I./grub-core/lib/libgcrypt-grub/include -I./grub-core/lib/libgcrypt-grub/src/ -I./grub-core/lib/minilzo -I./grub-core/lib/xzembed -DMINILZO_HAVE_CONFIG_H \ -Wall -W -Wshadow -Wold-style-definition -Wpointer-arith -Wundef -Wextra -Waddress -Wattributes -Wcast-align -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wempty-body -Wendif-labels -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-braces -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-noreturn -Wmultichar -Wnonnull -Woverflow -Wparentheses -Wpointer-arith -Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wstrict-aliasing -Wswitch -Wtrigraphs -Wundef -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -Wnested-externs -Wstrict-prototypes -Wpointer-sign -Werror -fno-builtin -Wno-undef -Wno-error=missing-noreturn \ -MT grub-core/fs/libgrubmods_a-iso9660.o -MD -MP -MF grub-core/fs/.deps-util/libgrubmods_a-iso9660.Tpo -c -o grub-core/fs/libgrubmods_a-iso9660.o `test -f 'grub-core/fs/iso9660.c' || echo './'`grub-core/fs/iso9660.c grub-core/fs/iso9660.c:528:1: error: always_inline function might not be inlinable [-Werror=attributes] cc1: all warnings being treated as errors bor@opensuse:~/build/grub> gcc --version gcc (SUSE Linux) 4.7.1 20120723 [gcc-4_7-branch revision 189773] Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Signed-off-by: Andrey Borzenkov --- ChangeLog | 5 +++++ grub-core/fs/iso9660.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cacba37..9cab5c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-03-04 Andrey Borzenkov + + * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute + causing gcc error with gcc 4.7.1. + 2013-03-03 Vladimir Serbinenko Remove all trampoline support. Add -Wtrampolines when diff --git a/grub-core/fs/iso9660.c b/grub-core/fs/iso9660.c index 01a07b8..cdbd6dc 100644 --- a/grub-core/fs/iso9660.c +++ b/grub-core/fs/iso9660.c @@ -524,7 +524,7 @@ struct iterate_dir_ctx }; /* Extend the symlink. */ -static void __attribute__ ((always_inline)) +static void add_part (struct iterate_dir_ctx *ctx, const char *part, int len2) -- tg: (ddda55c..) fu/iso9660_always_inline (depends on: master)