This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gold commit] PR 21040: Fix compile errors with GCC 4.2
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Cary Coutant <ccoutant at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Wed, 11 Jan 2017 12:13:19 -0800
- Subject: Re: [gold commit] PR 21040: Fix compile errors with GCC 4.2
- Authentication-results: sourceware.org; auth=none
- References: <CAJimCsGJ5pPsLOzK9Vcbyr=Rw45=c72G=RZ_RWyq2jUHTomimQ@mail.gmail.com>
On Wed, Jan 11, 2017 at 11:51 AM, Cary Coutant <ccoutant@gmail.com> wrote:
> Committed on master and backported to 2.28 branch.
>
> -cary
>
>
> 2017-01-11 Cary Coutant <ccoutant@gmail.com>
>
> 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.
I still got
/net/gnu-6/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc:1873:
error: using ‘typename’ outside of template
/net/gnu-6/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc:1874:
error: using ‘typename’ outside of template
/net/gnu-6/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc:1913:
error: using ‘typename’ outside of template
/net/gnu-6/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc:1914:
error: using ‘typename’ outside of template
/net/gnu-6/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc:1928:
error: using ‘typename’ outside of template
/net/gnu-6/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc:1929:
error: using ‘typename’ outside of template
/net/gnu-6/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc:1962:
error: using ‘typename’ outside of template
/net/gnu-6/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc:1963:
error: using ‘typename’ outside of template
/net/gnu-6/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc:1964:
error: using ‘typename’ outside of template
/net/gnu-6/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc:2164:
error: using ‘typename’ outside of template
/net/gnu-6/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc:2166:
error: using ‘typename’ outside of template
/net/gnu-6/export/gnu/import/git/sources/binutils-gdb/gold/x86_64.cc:2170:
error: using ‘typename’ outside of template
..
/net/gnu-6/export/gnu/import/git/sources/binutils-gdb/gold/powerpc.cc:2013:
warning: comparison is always false due to limited range of data type
--
H.J.