diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-10-25 03:59:37 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-10-25 03:59:37 +0000 |
commit | 9361f82f3a9d4b3c848159cfe0cf8310f0747def (patch) | |
tree | ed4104d29cdceb2504f559d1b065a03779853a7f /ld/testsuite/ld-elfvsb | |
parent | a7dd0df59ee046eb4377e2b208414848755c6b0c (diff) | |
download | gdb-9361f82f3a9d4b3c848159cfe0cf8310f0747def.zip gdb-9361f82f3a9d4b3c848159cfe0cf8310f0747def.tar.gz gdb-9361f82f3a9d4b3c848159cfe0cf8310f0747def.tar.bz2 |
Remove address check if HIDDEN_UNDEF_TEST is defined
* ld-elfvsb/main.c (main_visibility_checkcom): Remove address
check for visibility_def if HIDDEN_UNDEF_TEST is defined.
(main_visibility_checkweak): Remove address check for
visibility_func if HIDDEN_UNDEF_TEST is defined.
Diffstat (limited to 'ld/testsuite/ld-elfvsb')
-rw-r--r-- | ld/testsuite/ld-elfvsb/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/ld-elfvsb/main.c b/ld/testsuite/ld-elfvsb/main.c index b498d43..5419826 100644 --- a/ld/testsuite/ld-elfvsb/main.c +++ b/ld/testsuite/ld-elfvsb/main.c @@ -205,13 +205,13 @@ asm (".hidden visibility_func"); int main_visibility_checkcom (void) { - return & visibility_def != NULL && visibility_def == 2; + return visibility_def == 2; } int main_visibility_checkweak (void) { - return & visibility_func != NULL && visibility_func () == 2; + return visibility_func () == 2; } #else int |