diff --git a/gold/ChangeLog b/gold/ChangeLog index e9b79d4b462..f668eadcc58 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2010-04-09 H.J. Lu + + * testsuite/plugin_common_test_1.c (foo): Add prototype. + * testsuite/plugin_common_test_2.c (foo): Likewise. + 2010-04-08 Doug Kwan * merge.cc (Output_merge_data::set_final_data_size): Handle empty diff --git a/gold/testsuite/plugin_common_test_1.c b/gold/testsuite/plugin_common_test_1.c index cf9ca2f78ee..262c298597d 100644 --- a/gold/testsuite/plugin_common_test_1.c +++ b/gold/testsuite/plugin_common_test_1.c @@ -32,6 +32,8 @@ extern int c3; int c4; int c5 = 50; +extern void foo (void); + int main (int argc __attribute__ ((unused)), char** argv __attribute__ ((unused))) { diff --git a/gold/testsuite/plugin_common_test_2.c b/gold/testsuite/plugin_common_test_2.c index 149fd456d80..54139ceb9c5 100644 --- a/gold/testsuite/plugin_common_test_2.c +++ b/gold/testsuite/plugin_common_test_2.c @@ -32,8 +32,10 @@ int c3; int c4 = 40; int c5; +extern void foo (void); + void -foo () +foo (void) { c1 = 10; c2 = 20;