mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-06 06:43:27 +00:00
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:
parent
701b56e551
commit
fc6d32494a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user