From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id C01AB3858D39 for ; Mon, 3 Apr 2023 19:59:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C01AB3858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-x32c.google.com with SMTP id n10-20020a05600c4f8a00b003ee93d2c914so20217374wmq.2 for ; Mon, 03 Apr 2023 12:59:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680551991; h=content-transfer-encoding:content-language:to:subject:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=MkoZq/VTp87k1inCBUnrkOdl+bIWhCRuWL+3O0/lOLE=; b=ApLvmiYY8hjt2QUfj0UPQG/418W+8Cyqa29dzCNVb4rtMGT3VNsFbVD5AjeqWnqELA cGXNSu4xUDBOeEEVjHomELm4x5ch1IL/6Gfuno8y9XaWOeujcSBjJsUsE92Nwu+TGxQN kyn775NhEnXOESurEE2xSbW42GslQ9hpDCgO4aJ4hqh/KOFzzBMpXgoW76mvrZoJbLt9 1rUPooRUpJ6ekvr9zJToZEUqVcPhCnE+SRKLiwG4xLFdq0xiHZ5iscOes3dUDA8PcunY ZET7wshyF06zQgICqxbbMSU08byoCHt7u/FXzsgoDFV+ZBr2ucgjuZGtOMLth7n+Wl2B VLXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680551991; h=content-transfer-encoding:content-language:to:subject:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=MkoZq/VTp87k1inCBUnrkOdl+bIWhCRuWL+3O0/lOLE=; b=sXkdYMcM1+884+JFxAJFKTpUUPxHW714OitgjPnLZA4R4ZkXzRTRJ5LakPM1tstgrm T5JgGbLwWMDjomO+gcRwyUg001bn69NhAOVPZOUcX722wt3ABFdV1tbQtgoKfam2gpfP zRcT3JZlQoTAY6aTWoC0uLxFsHiFiNLGO9qqU+IG2rvc+n5rRJI46ms1tnej64FCkx6h ifxAk6GOqmt1YYEhwp4pqS6hRNpUQTzUKxzX+ppoFaxmjcKbcSbpC3qJKQWfcAYff1IF oxRpCvZGjy/UHw6Ton3EMr4jMsyhxE5K1C54tveXk3oJHX/SFC9vnozd8BSyJpGEiBm3 W3kQ== X-Gm-Message-State: AAQBX9cW4iXFdrUZxtb+SPZ5fYGvhLGaoQEn1V0AU/q9v6Jip2TRQtt3 zFBGZmI4er0+gLbro5UZad+n4iF08E8v7g== X-Google-Smtp-Source: AKy350bAH/JXpQKPt5U1schldsDDK1kJRNQ4EwrQgW8XmkTDlyf6XEwaw2btAGE/48Mt288mW73fYw== X-Received: by 2002:a7b:c8d8:0:b0:3ee:64d5:bac9 with SMTP id f24-20020a7bc8d8000000b003ee64d5bac9mr165795wml.9.1680551991061; Mon, 03 Apr 2023 12:59:51 -0700 (PDT) Received: from ?IPV6:2a01:e0a:1dc:b1c0:24fb:1076:e23d:9a04? ([2a01:e0a:1dc:b1c0:24fb:1076:e23d:9a04]) by smtp.gmail.com with ESMTPSA id n13-20020a7bc5cd000000b003ede3e54ed7sm13001377wmk.6.2023.04.03.12.59.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Apr 2023 12:59:50 -0700 (PDT) Message-ID: Date: Mon, 3 Apr 2023 21:59:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 From: =?UTF-8?Q?Fran=c3=a7ois_Dumont?= Subject: PR 108846 regression To: libstdc++ Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: After a full rebuild and run of testsuite based on master I have this regression: FAIL: 23_containers/vector/bool/allocator/copy.cc (test for excess errors) Excess errors: /home/fdumont/dev/gcc/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:437: warning: 'void* __builtin_memmove(void*, const void*, long unsigned int)' writing between 9 and 9223372036854775807 bytes into a region of size 8 overflows the destination [-Wstringop-overflow=] It comes from the change related to PR 108846, revision 822a11a1e642e0abe92a996e7033a5066905a447 The compiler seems to have enough info to find out that destination memory area is 8 bytes large but not enough to see that _Num is 1 and so never going to call the __builtin_memmove. Maybe a compiler bug. I'm working on a patch to restore previous code when src and dst pointer types are the same. But I won't be able to continue my work on it before Wednesday so I prefer to let you know just in case you would like to fix it before that and maybe differently. François