Explorar o código

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

Steven Dake %!s(int64=20) %!d(string=hai) anos
pai
achega
fc6d32494a
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      lcr/lcr_ifact.c

+ 4 - 1
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)