ld testsuite function pointer comparisons vs. hppa
authorAlan Modra <amodra@gmail.com>
Thu, 16 Feb 2017 11:49:10 +0000 (22:19 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 16 Feb 2017 12:40:09 +0000 (23:10 +1030)
commit37d7d56caea508e836bc0d4f0fef0cb520f3ba22
treeb6252a765d4bdde68bad6a64bea7f74a202f73d5
parenta8c75b765e57aaebb99d4e32e0f228835cff2737
ld testsuite function pointer comparisons vs. hppa

ld/testsuite/ld-elf/check-ptr-eq.c fails for hppa, since function
pointers may point at plabels.  It isn't valid to cast two function
pointers to void* and then compare the void pointers.

* testsuite/ld-elf/check-ptr-eq.c (check_ptr_eq): Change params
from void pointers to function pointers.
* testsuite/ld-elf/pr18718.c: Update to suit.
* testsuite/ld-elf/pr18720a.c: Update to suit.
ld/ChangeLog
ld/testsuite/ld-elf/check-ptr-eq.c
ld/testsuite/ld-elf/pr18718.c
ld/testsuite/ld-elf/pr18720a.c