NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/53023: config(1) behavior change with new gcc6



The following reply was made to PR toolchain/53023; it has been noted by GNATS.

From: Paul Goyette <paul%whooppee.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: toolchain-manager%netbsd.org@localhost
Subject: Re: toolchain/53023: config(1) behavior change with new gcc6
Date: Wed, 14 Feb 2018 05:04:33 +0800 (+08)

 On Tue, 13 Feb 2018, Christos Zoulas wrote:
 
 > |  That variable IS generated with both new and old configs, but the new
 > |  gcc fails with (and you have trimmed the relevant part):
 > |
 > |  ioconf.c:436:33: error: 'dbcoolcf_iattrdata' defined but not used [-Werror=unused-const-variable=]
 > |
 > |  which is new in gcc6, i guess.  A bit of background:
 > |
 > |    https://gcc.gnu.org/ml/gcc-patches/2015-09/msg00847.html
 > |
 >
 > Yes, uwe is correct. This is not a gcc bug; it is a new warning. The new
 > gcc ioconf.c is the same as the old gcc ioconf.c in that respect. Both
 > have the iattr data for dbcool, but the gcc correctly warns because it
 > is unused. It get's created because of the extra attribute that you've
 > commented out.
 
 Yes, thanks to both of you for the detailed explanation.  I totally 
 missed the fact that the error message was for a new -W in gcc6.
 
 Since the extraneous attribute has already been deleted, I will go ahead 
 and close this PR.
 
 Thanks again for the details.
 


Home | Main Index | Thread Index | Old Index