From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id CE8523858039 for ; Wed, 28 Jul 2021 15:31:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CE8523858039 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 9BBB31FFC0; Wed, 28 Jul 2021 15:31:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1627486316; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wUShYLoUONOJ2jEEXM0bMglyMbq4502VOAHQQHUVxNk=; b=JTt4ccv+yla5HbCJE9mIDRctoR9UC2AWfcG/aA6AgqFYH5qQofk+M9cDtM1ijzRrsHrCpJ HNuwoQEz+NlkrEDgEj8sj/GnzFqK+QEDIRbhG21VrJirWezNykrOnBMEJOlbZ3Fk1sedJ5 P1mCAT1HiYfltiCXty5AjwAUuSd22MA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1627486316; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wUShYLoUONOJ2jEEXM0bMglyMbq4502VOAHQQHUVxNk=; b=FsHX9hIhJyl1hymX2xE7iauXwpjpRImDUsbU+EMHBsb3lmjUzowVQC87ZL4tbdDU5niTDt xLKLwLB++R8CHHAw== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 845BD13318; Wed, 28 Jul 2021 15:31:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id a4I6H2x4AWHPEAAAGKfGzw (envelope-from ); Wed, 28 Jul 2021 15:31:56 +0000 Subject: Re: [gdb/build] Fix Werror=nonnull-compare build breaker with gcc 12 To: Andrew Burgess Cc: Jan-Benedict Glaw , "gdb-patches@sourceware.org" References: <20210726211101.ivychvbfgaafxjtz@lug-owl.de> <20210727100354.GB4037238@embecosm.com> <20210727113511.GC4037238@embecosm.com> <6cf80ba9-b010-bb42-c92d-84e4f396813c@suse.de> <20210728092832.GA8980@embecosm.com> From: Tom de Vries Message-ID: <5bfd6fbc-b97b-fad3-c7a5-87fb4ce97318@suse.de> Date: Wed, 28 Jul 2021 17:31:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210728092832.GA8980@embecosm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, KAM_SHORT, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jul 2021 15:31:59 -0000 On 7/28/21 11:28 AM, Andrew Burgess wrote: > Sorry, I missed that the thread had moved to the patches list. > Np, happens to me all the time :) > Using trunk GCC I see a warning like this: > > error: 'volatile'-qualified return type is deprecated [-Werror=volatile] > 21 | const T * volatile > | ^~~~~ > cc1plus: all warnings being treated as errors > Compiler returned: 1 > > See: https://godbolt.org/z/nfhq6zb7q > I could reproduce that after adding -std=c++20. Thanks for finding that, I had no idea about certain uses of volatile being deprecated. I've looked a bit further into things today, and submitted "[PATCH][gcc/doc] Improve nonnull attribute documentation" ( https://gcc.gnu.org/pipermail/gcc-patches/2021-July/576218.html ) . Let's see if we get any useful feedback there. Thanks, - Tom