mirror of git://gcc.gnu.org/git/gcc.git
arm.c (arm_function_in_section_p): Fix predicate to correctly check weak symbol binding.
2015-03-05 Alex Velenko <alex.velenko@arm.com> * config/arm/arm.c (arm_function_in_section_p): Fix predicate to correctly check weak symbol binding. From-SVN: r221220
This commit is contained in:
parent
a8eeec27a9
commit
2755b64ed5
|
|
@ -1,3 +1,8 @@
|
||||||
|
2015-03-05 Alex Velenko <alex.velenko@arm.com>
|
||||||
|
|
||||||
|
* config/arm/arm.c (arm_function_in_section_p): Fix predicate to
|
||||||
|
correctly check weak symbol binding.
|
||||||
|
|
||||||
2015-03-05 Steve Ellcey <sellcey@imgtec.com>
|
2015-03-05 Steve Ellcey <sellcey@imgtec.com>
|
||||||
|
|
||||||
PR middle-end/65315
|
PR middle-end/65315
|
||||||
|
|
|
||||||
|
|
@ -6396,14 +6396,8 @@ arm_set_default_type_attributes (tree type)
|
||||||
static bool
|
static bool
|
||||||
arm_function_in_section_p (tree decl, section *section)
|
arm_function_in_section_p (tree decl, section *section)
|
||||||
{
|
{
|
||||||
/* We can only be certain about functions defined in the same
|
/* We can only be certain about the prevailing symbol definition. */
|
||||||
compilation unit. */
|
if (!decl_binds_to_current_def_p (decl))
|
||||||
if (!TREE_STATIC (decl))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
/* Make sure that SYMBOL always binds to the definition in this
|
|
||||||
compilation unit. */
|
|
||||||
if (!targetm.binds_local_p (decl))
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* If DECL_SECTION_NAME is set, assume it is trustworthy. */
|
/* If DECL_SECTION_NAME is set, assume it is trustworthy. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue