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 C7F8B3858010 for ; Thu, 25 Nov 2021 14:09:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C7F8B3858010 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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 BA1D41FD37; Thu, 25 Nov 2021 14:09:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1637849354; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R4gQ1AKTrI+BNjgZBYlYs/gOQwQRYNrQC/ErMFnf65k=; b=B2QZu8gHW+mQCl1c+quLafRB4zX5CDdI+xYw4rAwYySyk/2DIr8dG5qtwq66q9yN88QOcc 2pfWzYOKBWk+HNjYL7b2BImGGRp/iqM3/dEyiN+XrcuwfqCvMpkG0Wh2Kg3CXtfr9TkFYd 7WBhcycFcIb4GckBtQPX5Or5U2RVy1g= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1637849354; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R4gQ1AKTrI+BNjgZBYlYs/gOQwQRYNrQC/ErMFnf65k=; b=HPF+mGpp68tQf09VaLqpQ7IvBWq7XAWJXxJquDXX780bAXPQae3A3JFSSdnsx5/AcqSV5H fNZBvx9/3FfBm0BA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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 imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A62F613B70; Thu, 25 Nov 2021 14:09:14 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id q5qGJwqZn2E5BAAAMHmgww (envelope-from ); Thu, 25 Nov 2021 14:09:14 +0000 Message-ID: <93b68eb8-656d-8390-6489-c0c83ddd1dc5@suse.cz> Date: Thu, 25 Nov 2021 15:09:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: [committed 03/12] d: Insert null terminator in obstack buffers Content-Language: en-US To: Iain Buclaw , gcc-patches@gcc.gnu.org References: <20210730110111.569140-1-ibuclaw@gdcproject.org> <20210730110111.569140-3-ibuclaw@gdcproject.org> From: =?UTF-8?Q?Martin_Li=c5=a1ka?= In-Reply-To: <20210730110111.569140-3-ibuclaw@gdcproject.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Nov 2021 14:09:17 -0000 On 7/30/21 13:01, Iain Buclaw via Gcc-patches wrote: > |Covers cases where functions that handle the extracted strings ignore the explicit length. This isn't something that's known to happen in the current front-end, but the self-hosted front-end has been observed to do this in its conversions between D and C-style strings.| Can you please cherry pick this for gcc-11 branch as I see nasty output when using --verbose: $ gcc /home/marxin/Programming/gcc/gcc/testsuite/gdc.dg/attr_optimize4.d -c --verbose ... predefs GNU D_Version2 LittleEndian GNU_DWARF2_Exceptions GNU_StackGrowsDown GNU_InlineAsm D_LP64 assert D_ModuleInfo D_Exceptions D_TypeInfo all X86_64 D_HardFloat Posix linux CRuntime_Glibc CppRuntime_Gcc����������������������... Thanks, Martin