Просмотр исходного кода

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 20 лет назад
Родитель
Сommit
fc6d32494a
1 измененных файлов с 4 добавлено и 1 удалено
  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)