re PR ipa/58398 (gcc.dg/attr-ifunc-4.c runfail regression after r202111)
2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de> PR ipa/58398 * cgraph.c (cgraph_function_body_availability): Check for ifunc attribute, and don't inline the resolver in this case. From-SVN: r202655
This commit is contained in:
parent
753b9bc3bb
commit
27442c2405
@ -1,3 +1,9 @@
|
||||
2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
|
||||
|
||||
PR ipa/58398
|
||||
* cgraph.c (cgraph_function_body_availability): Check for ifunc
|
||||
attribute, and don't inline the resolver in this case.
|
||||
|
||||
2013-09-17 Teresa Johnson <tejohnson@google.com>
|
||||
|
||||
* coverage.c (get_coverage_counts): Add missing newline.
|
||||
|
@ -2048,6 +2048,8 @@ cgraph_function_body_availability (struct cgraph_node *node)
|
||||
avail = AVAIL_LOCAL;
|
||||
else if (node->symbol.alias && node->symbol.weakref)
|
||||
cgraph_function_or_thunk_node (node, &avail);
|
||||
else if (lookup_attribute ("ifunc", DECL_ATTRIBUTES (node->symbol.decl)))
|
||||
avail = AVAIL_OVERWRITABLE;
|
||||
else if (!node->symbol.externally_visible)
|
||||
avail = AVAIL_AVAILABLE;
|
||||
/* Inline functions are safe to be analyzed even if their symbol can
|
||||
|
Loading…
Reference in New Issue
Block a user