aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2017-01-11 11:47:27 -0800
committerCary Coutant <ccoutant@gmail.com>2017-01-11 11:47:27 -0800
commit976e204b369fd01f9d35d87ea2cd07707c3a40cf (patch)
treefa864e1d2d984c5219d897b680f1a495cf1dd355 /gold/testsuite
parent1fa5f68bf38fc29f173990614db70fed1b66c0e0 (diff)
downloadgdb-976e204b369fd01f9d35d87ea2cd07707c3a40cf.zip
gdb-976e204b369fd01f9d35d87ea2cd07707c3a40cf.tar.gz
gdb-976e204b369fd01f9d35d87ea2cd07707c3a40cf.tar.bz2
Fix compile errors with GCC 4.2.
gold/ PR gold/21040 * x86_64.cc (Output_data_plt_x86_64_bnd::do_fill_first_plt_entry): Remove unnecessary 'typename' keyword. (Output_data_plt_x86_64_bnd::do_fill_plt_entry): Likewise. (Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry): Likewise. (Output_data_plt_x86_64_bnd::fill_aplt_entry): Likewise. * testsuite/copy_test_relro_1.cc (p, b, c, q): Add separate extern declarations.
Diffstat (limited to 'gold/testsuite')
-rw-r--r--gold/testsuite/copy_test_relro_1.cc14
1 files changed, 10 insertions, 4 deletions
diff --git a/gold/testsuite/copy_test_relro_1.cc b/gold/testsuite/copy_test_relro_1.cc
index c5f280b..3628214 100644
--- a/gold/testsuite/copy_test_relro_1.cc
+++ b/gold/testsuite/copy_test_relro_1.cc
@@ -21,10 +21,16 @@
// MA 02110-1301, USA.
extern int a;
-extern int* const p = &a;
-extern const int b[] = { 100, 200, 300, 400 };
+extern int* const p;
+extern const int b[];
+extern const int c;
+extern const int* const q;
-extern const int c = 500;
+int* const p = &a;
-extern const int* const q = &c;
+const int b[] = { 100, 200, 300, 400 };
+
+const int c = 500;
+
+const int* const q = &c;