Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6851816rwb; Tue, 15 Nov 2022 04:42:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf6agy/epSOP1k2xllPT1YbYKAr52GqDymc+bDyhsOr04beuVkr7s1yDDNYupLuKD226PeoE X-Received: by 2002:a05:6a00:1581:b0:56b:d19f:33f8 with SMTP id u1-20020a056a00158100b0056bd19f33f8mr18429006pfk.17.1668516140750; Tue, 15 Nov 2022 04:42:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668516140; cv=none; d=google.com; s=arc-20160816; b=e+mCC1h05fwSG1XFaTs18fQ6NSMmTwMy4eIuStopBEcDW2MePnWauS+lelS1f0rq18 3cigEMeWGXsMpb/nLWDoc45TIlO/tRX3FgPX3NOxZcA1znvVaDFI4ek/Wq/KKOzuT/Jx VMnW8LxsOnTAraPgNDORonlNVgf9c5St0fcjzm6bA4jtLBFTwVhSeY+SOPbOza7jNODP trDx4AYWwux7PV+rLFHLycrYIzjQcoz8/Wz/6irgbFY8BLQa3yFIn62GVO/ML5B39vUQ ndMeOk9hm9p+EWNNiUvUtO4w2hnVBtJiWGlARwG78UVTRX5rYOX6Wm1omVVncnzS0OOf OAmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=pJ9B/AyuvfxCmb9k0O9GWQZuR6Is6hTYtAiZyyDXWr4=; b=zj2IAbLVRMkU6oEFE7FcAUc5+GnDgWFaRmlLOtv1S9el2dYJ3InDU0LaJyb+8JCk4K kf0LaQ0BuZ2i+aX2pMdSAPbFsZOkrmNIFc7M2zN2wO3SX7RPpTlhWupaGyxdtzG+kCST sMj6Ip+kwjMm0xhSnbm9th1SFA6SOYVG8K62z/rKfrql4UDEcQe7IYiqHCAczd2QmslJ lpgRvWmjHRDHb+geO2TJhhxnFILa7LemlVpjuZFfNtjzmvQB3O4Pas1NeWA0v2xGERlj jqpKC0WRHE4YzTJDH89kd36G7NJjG9b0lRoitmfK0oxC1puASEyDw84kQtD7513hkaL1 N64g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yTeZWAWu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h33-20020a63f921000000b00462cfc13a30si11613610pgi.412.2022.11.15.04.42.08; Tue, 15 Nov 2022 04:42:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yTeZWAWu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237700AbiKOMOm (ORCPT + 90 others); Tue, 15 Nov 2022 07:14:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238058AbiKOMOi (ORCPT ); Tue, 15 Nov 2022 07:14:38 -0500 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE8EC1EEEF for ; Tue, 15 Nov 2022 04:14:37 -0800 (PST) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-376596ae449so135168897b3.5 for ; Tue, 15 Nov 2022 04:14:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=pJ9B/AyuvfxCmb9k0O9GWQZuR6Is6hTYtAiZyyDXWr4=; b=yTeZWAWuz0ZkGXPVuOdjw4baVc7XAMaPWlQo5pjBP0URrWDgUrGhgp9hjLrYaXy+as t/o6dzEeNM/l9Lbju7acnc7EChNAZdIPiSKmrf2lGMfJnQN3jc5t+7L5E5HJYPeK5alL xmKmIiGRM0ISe0AJBGDAvjhpesZ5S4z97AyKutBh2IIIBjfsZcfItXtVvpRlq0VJjbuM SvTor1dTyVvVotzUGLvz2ok13rGrfbtLfyUzyfNMzpv48VYkerQ3dqGDWcdfM0VHA25d 9zZbrbNrberr+zH+1Y/GqFPzAxhHe/RqSjFzSSredc3J4NDefXvnvENipZ8EsvloXwxV pwOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=pJ9B/AyuvfxCmb9k0O9GWQZuR6Is6hTYtAiZyyDXWr4=; b=qFg04omruBuHp3agCQcqmQZni3on0sC7wHsVjUr/HhRSAR9RIGcI7F+f+TmVI6acTS NOAergz30ziIHPpIpVcjj/xzCKirzzQpiYyXCcTbHhj5sKDAuun7IiIR5TYzK4vFVSdY jlQHqWCziLZTbEvd8qtRIgCxDsgEaAMrmIMb58RV/xPwlY+63cPCDzMg7YPxuRJyx960 izosl9AxEgCjNQgc+bX+QO9YJlmEIUvubiZ7QfbjbDgjTsm2KJ4B9COl3rZn05WIIucq suYvb+XWOpdJ3IhLK4zv4w5heq4H9jvADQSxO+IAIhz5IBLGeH1XpscttbrMUeX3k3Ij IupQ== X-Gm-Message-State: ANoB5pnSZstOwKM691q/HX4o3DMJYYmAuvlLNUJKGVQCA7nCiir7I3VX a55VSgHwiTqgLr91gzNh4lWHNz+M90YeJE6MjsTEnn4yMXxBNQ== X-Received: by 2002:a0d:cc12:0:b0:373:6d43:2ee6 with SMTP id o18-20020a0dcc12000000b003736d432ee6mr18109812ywd.443.1668514476253; Tue, 15 Nov 2022 04:14:36 -0800 (PST) MIME-Version: 1.0 From: Naresh Kamboju Date: Tue, 15 Nov 2022 17:44:25 +0530 Message-ID: Subject: perf: gcc-12: tests/builtin-test.c:242:66: error: array subscript 1 is outside array bounds of 'struct test_suite *[1]' [-Werror=array-bounds] ^ To: open list , linux-perf-users@vger.kernel.org Cc: Arnaldo Carvalho de Melo Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org You might be aware of the following perf build fails with gcc-12 for 32bit arm and i386. Whereas gcc-11 builds passed. Reported-by: Linux Kernel Functional Testing Build log: ----------- CC /home/tuxbuild/.cache/tuxmake/builds/1/build/util/block-info.o In function '__cmd_test', inlined from 'cmd_test' at tests/builtin-test.c:522:9: tests/builtin-test.c:242:66: error: array subscript 1 is outside array bounds of 'struct test_suite *[1]' [-Werror=array-bounds] 242 | for (k = 0, t = tests[j][k]; tests[j][k]; k++, t = tests[j][k]) | ^ tests/builtin-test.c:351:9: note: in expansion of macro 'for_each_test' 351 | for_each_test(j, k, t) { | ^~~~~~~~~~~~~ tests/builtin-test.c: In function 'cmd_test': tests/builtin-test.c:35:27: note: at offset 4 into object 'arch_tests' of size 4 35 | struct test_suite *__weak arch_tests[] = { | ^~~~~~~~~~ cc1: all warnings being treated as errors CC /home/tuxbuild/.cache/tuxmake/builds/1/build/util/expr.o In function 'parse_events_term__num', inlined from 'parse_events_multi_pmu_add' at util/parse-events.c:1594:6: util/parse-events.c:2638:64: error: array subscript 'YYLTYPE[0]' is partly outside array bounds of 'char[4]' [-Werror=array-bounds] 2638 | .err_term = loc_term ? loc_term->first_column : 0, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ util/parse-events.c: In function 'parse_events_multi_pmu_add': util/parse-events.c:1579:15: note: object 'config' of size 4 1579 | char *config; | ^~~~~~ cc1: all warnings being treated as errors build log link, https://builds.tuxbuild.com/2HXiqb3LCKg451GckF052odBiPY/ Please refer following links for perf build results comparison between gcc-11 and gcc-12 https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.0.y/build/v6.0.8-191-gf8896c3ebbcf/testrun/13003574/suite/build/test/gcc-11-lkftconfig-perf/history/ https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.0.y/build/v6.0.8-191-gf8896c3ebbcf/testrun/13003574/suite/build/test/gcc-12-lkftconfig-perf/history/ -- Linaro LKFT https://lkft.linaro.org