From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay05.ispgateway.de ([80.67.31.99]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SGaR6-0000wU-8s for ptxdist@pengutronix.de; Sat, 07 Apr 2012 20:32:33 +0200 Received: from [93.104.157.189] (helo=localhost) by smtprelay05.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1SGaR5-0002FI-SL for ptxdist@pengutronix.de; Sat, 07 Apr 2012 20:32:31 +0200 From: Bernhard Walle Date: Sat, 7 Apr 2012 20:32:25 +0200 Message-Id: <1333823545-62787-1-git-send-email-bernhard@bwalle.de> In-Reply-To: <20120407183017.GA32754@regiomontanus.bwalle.de> References: <20120407183017.GA32754@regiomontanus.bwalle.de> Subject: [ptxdist] [PATCH] argp-fmtstream.h: Force inlining of 'extern inline' functions Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de LLVM GCC (at least i686-apple-darwin11-llvm-gcc-4.2) doesn't generate a non-inlined version of argp_fmtstream_putc (even if compiled with -O2), so linking the final program fails: ------------------------------------------------------ Undefined symbols for architecture x86_64: "_argp_fmtstream_putc", referenced from: _usage_argful_short_opt in argp-help.o _argp_args_usage in argp-help.o ld: symbol(s) not found for architecture x86_64 ------------------------------------------------------ FSF GCC doesn't have the problem, BTW. Signed-off-by: Bernhard Walle --- NOTE: This patch applies to ptx branch of mol/localedef, not to PTXdist. eglibc/argp/argp-fmtstream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eglibc/argp/argp-fmtstream.h b/eglibc/argp/argp-fmtstream.h index f94207a..67d1ea2 100644 --- a/eglibc/argp/argp-fmtstream.h +++ b/eglibc/argp/argp-fmtstream.h @@ -203,7 +203,7 @@ extern int __argp_fmtstream_ensure (argp_fmtstream_t __fs, size_t __amount); #endif #ifndef ARGP_FS_EI -#define ARGP_FS_EI extern inline +#define ARGP_FS_EI extern inline __attribute__ ((always_inline)) #endif ARGP_FS_EI size_t -- 1.7.9.5 -- ptxdist mailing list ptxdist@pengutronix.de