From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by sourceware.org (Postfix) with ESMTPS id 1394E3858D38 for ; Fri, 11 Nov 2022 19:44:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1394E3858D38 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-pg1-x52b.google.com with SMTP id b62so5181218pgc.0 for ; Fri, 11 Nov 2022 11:44:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WNzAypfv6mjhc9LEkhm3ewlLZYd4YhHHTmHuaol9T6w=; b=Sg6S1AnEBBsgM68UjFkKDRkdUDP+qakXjFnaTWgaSqFWHVasQdrTnxkn8m8ZSjWV4l 8yIFiWGomcL2iON+DxIbuI2GiLlrO8MH4AkCVaQ8B0ec6uxB5MM31MmF4vjf2UlK4GKb WvMRSvj4yYlfq3pGG2gqm8CCOT3PpZ8+RbtSk6ZOuQOUnEHY6GFz+OV4enh/+/ZKcnp/ 2/cCGagBxR7ec9EpLF/4A0jHo227HgOrz/TaVSOmPncQ93tMBKzbDm2naa9UzqHwvmnR kw9bLh00kseWNVSCGqyQL8JmH43/lfSOLcy/5LYcQJMxZW9ruVwyTfljE6SvVRvw+s7o mraQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WNzAypfv6mjhc9LEkhm3ewlLZYd4YhHHTmHuaol9T6w=; b=IP7i+U6dUNtpbDYtxmD+7MJaTs2ZWaWnnqMngeRdOgBa4T50GQWwRl/yujTUOBmslS uwOfzPHRVVm/VlNBpiO1Rgut7vEpJX6Ge6OlHhS0aRwgApe4h3Vu16gJ+NY9KZmSuwI2 1wev8LE4kf8ft8XvsDEKFQvjWjQseLJteMxYRm1iG5DdRz7lRciHn4algA+ipusF+q+T zhdBHRhv7r/uNFqFCn0e4ytBacpjaocf/2cWZiiwNmUWV3LOSj2wR9DFLyx0AyS3hC6Q M67l4ZHPBMFj2xejVN6MVtbaL+C4ncx+uIxwiiYW81N2Cj/3mqEEZnmQTv7ISNtUyUkI n7WA== X-Gm-Message-State: ANoB5pl0/7cjw9E6RYyAJUxDYINS8JhYM7HoOxHsheKzpp0IFtqacvd9 jPur7fTsGkZFrx17lYQ+WpVt3B6RHQOe9w== X-Google-Smtp-Source: AA0mqf5NZXjjALhfgDLloqPPzKrFOT+gj3baxemSFLskDaqWtNNkU1v7ynok9WgUsE9pFxdhy/8+fQ== X-Received: by 2002:a63:5062:0:b0:470:6559:a538 with SMTP id q34-20020a635062000000b004706559a538mr2867112pgl.427.1668195857615; Fri, 11 Nov 2022 11:44:17 -0800 (PST) Received: from octofox.hsd1.ca.comcast.net ([2601:641:401:1d20:364d:9faf:fac4:d8fa]) by smtp.gmail.com with ESMTPSA id m15-20020a656a0f000000b0045dc85c4a5fsm1691097pgu.44.2022.11.11.11.44.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 11:44:16 -0800 (PST) From: Max Filippov To: gcc-patches@gcc.gnu.org Cc: Jeff Law , Andreas Schwab , Max Filippov Subject: [PATCH] gcc: m68k: fix PR target/107645 Date: Fri, 11 Nov 2022 11:43:56 -0800 Message-Id: <20221111194356.3922768-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,GIT_PATCH_0,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,KAM_NUMSUBJECT,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: gcc/ PR target/107645 * config/m68k/predicates.md (symbolic_operand): Return false when UNSPEC is under the CONST node. --- Regtested with --enable-checking=all for target=m68k-linux-uclibc, no new regressions compared to the compiler built without checking. Ok for master? gcc/config/m68k/predicates.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/m68k/predicates.md b/gcc/config/m68k/predicates.md index f8dedd9f8375..094a18955534 100644 --- a/gcc/config/m68k/predicates.md +++ b/gcc/config/m68k/predicates.md @@ -141,6 +141,8 @@ case CONST: op = XEXP (op, 0); + if (GET_CODE (op) == UNSPEC) + return false; return ((GET_CODE (XEXP (op, 0)) == SYMBOL_REF || GET_CODE (XEXP (op, 0)) == LABEL_REF) && GET_CODE (XEXP (op, 1)) == CONST_INT); -- 2.30.2