From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id D904D1F4B4 for ; Mon, 25 Jan 2021 10:57:06 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E62D639450E1; Mon, 25 Jan 2021 10:57:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E62D639450E1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1611572226; bh=WcSAGAxiEJdjyef2r9q7EZ4xnKCYVE/ldiq71XHVv+c=; h=To:Subject:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=v6F+byxGnoBL4qfmY7g6i8UOQot2Us7ZH/dH80iXCWFpjAM+44S6t2YJD0GrASWWx 6xOi1iTF6fzk/Qv0u3lFf8N+cmQDz6IoDYDDkGX2b+TRS+naRpD4I6qCh75qrgQZ4w EUVagtka1f3pJDnDGquJR970N1lu7AmN7lP+UUD0= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id 139833840C22 for ; Mon, 25 Jan 2021 10:57:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 139833840C22 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-202-UqY05KnZME-t1504WquaPw-1; Mon, 25 Jan 2021 05:56:59 -0500 X-MC-Unique: UqY05KnZME-t1504WquaPw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 650D210054FF; Mon, 25 Jan 2021 10:56:58 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-113-35.ams2.redhat.com [10.36.113.35]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4C76570476; Mon, 25 Jan 2021 10:56:56 +0000 (UTC) To: Martin Sebor via Libc-alpha Subject: Re: [PATCH] add support for -Wmismatched-dealloc References: <74efece7-9a4b-83ee-7fdd-475c0d514378@gmail.com> <758e723b-67cf-a211-7bc2-2ccd3fc744e5@gmail.com> <2555516b-4583-21fc-e844-fd44619488cd@gmail.com> <655918b2-16c6-74b1-6a49-505a7607007f@gmail.com> <87mtxok7ob.fsf@oldenburg2.str.redhat.com> <0aae9006-6001-8fc8-ad6d-c8e3ee60f82c@gmail.com> <87turwiqqw.fsf@oldenburg2.str.redhat.com> <87czybsuoe.fsf@oldenburg2.str.redhat.com> Date: Mon, 25 Jan 2021 11:56:54 +0100 In-Reply-To: (Martin Sebor via Libc-alpha's message of "Mon, 11 Jan 2021 17:01:42 -0700") Message-ID: <87r1m9jnd5.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Florian Weimer via Libc-alpha Reply-To: Florian Weimer Cc: Joseph Myers Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" * Martin Sebor via Libc-alpha: > diff --git a/libio/stdio.h b/libio/stdio.h > index 144137cf67..62814c93db 100644 > --- a/libio/stdio.h > +++ b/libio/stdio.h > @@ -202,15 +214,9 @@ extern char *tmpnam_r (char *__s) __THROW __wur; > P_tmpdir is tried and finally "/tmp". The storage for the filename > is allocated by `malloc'. */ > extern char *tempnam (const char *__dir, const char *__pfx) > - __THROW __attribute_malloc__ __wur; > + __attribute_malloc__ __wur __attr_dealloc_free __THROW; > #endif This breaks boostrap because in some C++ modes, __THROW (aka noexcept) needs to come before all attributes. Further tests are ongoing; this is difficult to do due to general toolchain breakage (although things have improved lately). Thanks, Florian -- Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB 153243, Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill