Message ID | 20230324133625.450723-2-nick.alcock@oracle.com |
---|---|
State | Repeat Merge |
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp631180vqo; Fri, 24 Mar 2023 06:37:09 -0700 (PDT) X-Google-Smtp-Source: AKy350ZX3FBOQCUdAEwy+UncI57NFBJB9xTKQTtS/wzbAZHIbzwqMcBr8FuTomaJtFPD/Apr3XGE X-Received: by 2002:aa7:db59:0:b0:502:2265:8428 with SMTP id n25-20020aa7db59000000b0050222658428mr1811817edt.38.1679665029492; Fri, 24 Mar 2023 06:37:09 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id jg22-20020a170907971600b009329350848bsi24158451ejc.408.2023.03.24.06.37.09 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Mar 2023 06:37:09 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=Iiy6Tc+N; arc=fail (signature failed); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C0A293876884 for <ouuuleilei@gmail.com>; Fri, 24 Mar 2023 13:36:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C0A293876884 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679665009; bh=+IJhYRIjRljJDPtGMuUbmf8//MiZUwk7ZLajKbGEZEw=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Iiy6Tc+NvDxG06elJZXZxNCAdXSzzkKm67ILCrwSkq/ADQsk3JWdrZGSIQD1j6jH8 elCQ+vmvjpNbw3pmlmMpcwj1NTbSQKEEDZz11KhMT3aJ3561BUUTNLeY+5TvQxpjFv uKAiJVDjeFtEHmPAOO1LY0VhArMCRFJZVtOuYGog= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by sourceware.org (Postfix) with ESMTPS id 6EA8E38708AB for <binutils@sourceware.org>; Fri, 24 Mar 2023 13:36:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6EA8E38708AB Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32ODOi5C027772 for <binutils@sourceware.org>; Fri, 24 Mar 2023 13:36:41 GMT Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3phcqe01dq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Fri, 24 Mar 2023 13:36:40 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 32OD0Q2X038006 for <binutils@sourceware.org>; Fri, 24 Mar 2023 13:36:40 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2174.outbound.protection.outlook.com [104.47.56.174]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3pgxpy1fjj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Fri, 24 Mar 2023 13:36:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OYt2yXkE2PHsVTuTElZif6rMCb1dAZjXpo7g9nou2tkauAfLTN9fOtkM53qxiK8YnFZO5XzGWrwsF3sylDgu+drZ5EdsXhKbxV1ZKfRTYbRf6ib8XNKXHH0fBKjA9ruPZfX/qEsFPNCuJ7qzykTy4dqkL6SL+bR4ITevI4GkK3lrcSWhW18LsqSYTMqccsO5QdLScXCJ9NDdjrWLO9zG2Rx4yA/FvGpqxmc3GsGs/q2+Th8k6EeviX5HTLSE2Q/39lr7M7ER+hNcs7GYH8fR1HQbuXnhefMf8j4+r+1mNPzowfH17mNrsFPmdOvj7sIvxY7E85B0Svf7UblCwJga6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+IJhYRIjRljJDPtGMuUbmf8//MiZUwk7ZLajKbGEZEw=; b=TrDAtDoF5+SgZ/5p1lQUK+2lFkJWZpP/d7GUiZ+W9dF4K9uD+YYXAm1et42OoV1yvYIi0mQsxDv7y751tLBm4WTZ/USxjjan2qE3XjB1BMt1jJ92jG02DSBY1B5wEYFySwbmH/GKU2I7nmyUkFGqLQqkHuUIbaLI7e/Mgl5VikHh3ZiyfY1mldTz57+ACym9Frk3OG+dhZ/7CkfBdiL1+YVx8hkVNsdW4W7gyiFfEK6EoLuiqWUza4sJwQbMaMtqqO0vI2AK2u1E/3zPWPZcmd3oWtjoqkuHTRgqvbx3UCbrLNHQyDD7LqhCYhaLWA49x1RMRssvRnEA6wRLgaMJLQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none Received: from DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) by SN7PR10MB6593.namprd10.prod.outlook.com (2603:10b6:806:2a9::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.38; Fri, 24 Mar 2023 13:36:38 +0000 Received: from DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::d0f7:e4fd:bd4:b760]) by DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::d0f7:e4fd:bd4:b760%3]) with mapi id 15.20.6178.038; Fri, 24 Mar 2023 13:36:38 +0000 To: binutils@sourceware.org Subject: [PATCH 2/4] libctf: work around an uninitialized variable warning Date: Fri, 24 Mar 2023 13:36:23 +0000 Message-Id: <20230324133625.450723-2-nick.alcock@oracle.com> X-Mailer: git-send-email 2.39.1.268.g9de2f9a303 In-Reply-To: <20230324133625.450723-1-nick.alcock@oracle.com> References: <20230324133625.450723-1-nick.alcock@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: LO4P265CA0271.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:37a::7) To DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB6798:EE_|SN7PR10MB6593:EE_ X-MS-Office365-Filtering-Correlation-Id: cac73b7c-3110-4ab3-6e2b-08db2c6ccb22 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ADBVPpr+qHuFLYiMlMX+7AQNUtJO+wZRe5qkA/gYGBtbc0fscZXLjriFJHv0wjm5JPFDyvmPQoO0LXXnSEOhDm75DeKi4HhKGlqTXY5xpInDrE6UseudWauBcTNHIqclomah7Q5Boc7of29ZJwXs+/yJ0ia/v0dyBHJZVp/vzErWOQUDu82UKyextuGQGa3+Ii4sScFepIz0gk5pvpPqQCxP4EWqyIPgO6JYWF/X7Cs0lpPhxP5dry45yqp7nNj19I0v7e1bwYNze0WCQKmnb2tM7WAD+o4RzDMs1JBBUs/LP0/F58g0JThAyKyNiYDlUqrVlJCz9hIFEx1F/p6hZ0tE7GK9NpJPRkxIAtmAQHo7vHDyMeJrt+4DyURhBvUwFe1v0K3UqwIeXAWcq/90xawoRhyeBv9cQoVk5zccwG57cZXNSNGnVVwnZD7SeKcSHTx09TaBe3T7Utu40CFyyD5dI0kv5+4PxNPuSxb6o5VabAFERFbuZWeo8Q0u/NOxB2N6TUBIOPsMcQJyr0VGAyv35zYm7BXwjpaF8W5Te8AbOslHM2MhAYn36gcW3BjUNuNWa3rGLfu3IgimAbglI2O7YSiKDEpssplIpnmV+fg7tOIQvtCZXdNFhMoMIWDFpa1jcOCUcAJa8M87JG1gkQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR10MB6798.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(39860400002)(366004)(136003)(396003)(376002)(346002)(451199018)(6512007)(6506007)(41300700001)(36756003)(1076003)(2616005)(4744005)(44832011)(2906002)(5660300002)(38100700002)(8936002)(316002)(478600001)(186003)(83380400001)(66946007)(6486002)(8676002)(6916009)(86362001)(66476007)(66556008)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Q+CBuHmVE3s5BxslGy/VcZfAnzwcRh+mTW7jakGJRQFcBdrE5dEbzqeUxxIjIHeo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vrW3ipHq38K6cfEZX3fOUs2AthL3cP0h1GJjg3Wf9TXif1vofZzysJBYp0FuRFTOIpk1ITT6qZJ2cNfFww7Rz8hRJeSQfH1xSxk8JnYre+kw45nK3rjQOFTKvP247TByY55Y5I6/dMwHUuoCgPYI3JFLkNtX2y7RqahqE+jN+W5IbI2sNwfNFZ2LGsuIKIMswuR2r5fm0CZnqiLfMHyHPOVaQITY53gMMz4gUk4k5N4gf1eDAp5J+n X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: cac73b7c-3110-4ab3-6e2b-08db2c6ccb22 X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB6798.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2023 13:36:38.0428 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yxfXqarIihx4Wr0R8Fgx7qwTLPVL1tD7+hN8gFND0CqS+T1HDwq+fXFLoKOIQ3TBIhEQGcV00sIeGRD79woAtg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR10MB6593 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-24_08,2023-03-24_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=804 malwarescore=0 adultscore=0 spamscore=0 suspectscore=0 bulkscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2303240109 X-Proofpoint-GUID: nWMdrFAOqwr3GBHcKfaiCyHb13xte3OR X-Proofpoint-ORIG-GUID: nWMdrFAOqwr3GBHcKfaiCyHb13xte3OR X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, 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 X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: Nick Alcock via Binutils <binutils@sourceware.org> Reply-To: Nick Alcock <nick.alcock@oracle.com> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761256437805485383?= X-GMAIL-MSGID: =?utf-8?q?1761256437805485383?= |
Series |
[1/4] libctf: fix assertion failure with no system qsort_r
|
|
Checks
Context | Check | Description |
---|---|---|
snail/binutils-gdb-check | warning | Git am fail log |
Commit Message
Nick Alcock
March 24, 2023, 1:36 p.m. UTC
GCC 11+ complains that sym is uninitialized in ctf_symbol_next. It isn't, but it's not quite smart enough to figure that out (it requires domain-specific knowledge of the state of the ctf_next_t iterator over multiple calls). libctf/ * ctf-lookup.c (ctf_symbol_next): Initialize sym to a suitable value for returning if never reset during the function. --- libctf/ctf-lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libctf/ctf-lookup.c b/libctf/ctf-lookup.c index 10ababf1489..950c0a809ac 100644 --- a/libctf/ctf-lookup.c +++ b/libctf/ctf-lookup.c @@ -651,7 +651,7 @@ ctf_id_t ctf_symbol_next (ctf_dict_t *fp, ctf_next_t **it, const char **name, int functions) { - ctf_id_t sym; + ctf_id_t sym = CTF_ERR; ctf_next_t *i = *it; int err;