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
This commit is contained in:
Steven Dake 2006-04-13 02:51:39 +00:00
parent 701b56e551
commit fc6d32494a

View File

@ -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)