From fc6d32494a3ae25c597bb564cbf6732b8b691267 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Thu, 13 Apr 2006 02:51:39 +0000 Subject: [PATCH] Workaround possible optimizer bug in gcc 4.1 by forcing a function not to inline. This would cause segfaults on fc4. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@980 fd59a12c-fef9-0310-b244-a6a79926bd2f --- lcr/lcr_ifact.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lcr/lcr_ifact.c b/lcr/lcr_ifact.c index 15aa886e..3ab51d16 100644 --- a/lcr/lcr_ifact.c +++ b/lcr/lcr_ifact.c @@ -83,7 +83,10 @@ static int lcr_select_so (struct dirent *dirent) return (0); } -static inline struct lcr_component_instance *lcr_comp_find ( +/* TODO + * FC5 gcc 4.1 optimizer breaks if this code is automatically inlined + */ +__attribute__((noinline)) static struct lcr_component_instance *lcr_comp_find ( char *iface_name, unsigned int version, int *iface_number)