This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc-7 warning breaks ld testsuite


On Wed, Mar 01, 2017 at 08:59:54AM +1030, Alan Modra wrote:
> .../ld/testsuite/ld-elf/new.cc:21:31: warning: dynamic exception specifications are deprecated in C++11; use
>  'noexcept' instead [-Wdeprecated]
>  operator new (std::size_t sz) throw (std::bad_alloc)
>                                ^~~~~
> 
> The same warning is given for ld/testsuite/ld-elf/dl5.cc, and result
> in the tests failing with ERROR.  What's the right thing to do about
> the above gcc-7 warning, given that many different compilers might be
> used to build binutils?
> 
> I'm leaning towards passing -ansi.

I think I may as well commit that patch.  If there's a better solution
then we can update as required later.

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]