darwin.c (machopic_symbol_defined_p): In addition to being SYMBOL_REF_LOCAL_P...
commit156a126c4fdec4d8b86e458318475bf5a17cb0d2
authorMike Stump <mrs@apple.com>
Wed, 1 Sep 2004 17:18:02 +0000 (1 17:18 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Wed, 1 Sep 2004 17:18:02 +0000 (1 17:18 +0000)
tree9e41ebffeb3e69e887e931f907b91cf65b019361
parentffbef0240f8fe57c2addd6bd47ff44cdb459dff7
darwin.c (machopic_symbol_defined_p): In addition to being SYMBOL_REF_LOCAL_P...

* config/darwin.c (machopic_symbol_defined_p): In addition to
being SYMBOL_REF_LOCAL_P, a symbol must also be
! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
defined in this output file, or translation unit in the case
of IMA not being used.
(machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
never need .indirect_symbol when indirecting.

From-SVN: r86915
gcc/ChangeLog
gcc/config/darwin.c
gcc/testsuite/gcc.dg/visibility-b.c [new file with mode: 0644]