Message ID | 20240320082504.1192715-1-syq@gcc.gnu.org |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=MBoaAzE1; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V01sL0Xssz23r9 for <incoming@patchwork.ozlabs.org>; Wed, 20 Mar 2024 19:26:44 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2A66B3858C35 for <incoming@patchwork.ozlabs.org>; Wed, 20 Mar 2024 08:26:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A66B3858C35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710923202; bh=BWjZ+AMqx5NsTBf4DfVvXdyd7xmYDJxUk33m/ZAC/rU=; h=From:To:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=MBoaAzE1v1au99HzCW+YLgkU14d2ppChOnO0ogrP/NUS6eaziUBhCpHwkAcIoJHQV rgR8mBUgTTWamRzF+0R0XaCX45bsMsrRqujmkceroK8mmbHpd1tXnbCOnYFZJHopBt a3C/I3vRl5QswaMRRDzsxqDCoXkrGHdNgywoW1iA= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by sourceware.org (Postfix) with ESMTPS id 89BE53858D37 for <gcc-patches@gcc.gnu.org>; Wed, 20 Mar 2024 08:25:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 89BE53858D37 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 89BE53858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710923119; cv=none; b=XOwNCv/lRGg2uakK59Tj64vWAitQ55MV+jyWYJqTaLop1PdTyQCFH27Gr30u4Ko3g63ilDswzOqFNLNY7hIi4iNevkFXob+LDP5Qhu9RixoxBnbyJeDWoA2R0fUZ99RmcIQL893NtTO8d7M0DJ20RpoBDXhXwiajm8WY5tU9iL0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710923119; c=relaxed/simple; bh=ClHCrDRDAq7LUcR1Fx+d0HJxA9P2bRwcCfbkZcuEt2M=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=eb89A4LJUXZLvjFUqfT4IthnF5S8EBoiOnPPyTbBLTgaO4D4hmnrTXsRlrMmogldu4Cuf1v/c4hmvzB90l3I7ZpbD0Fo4u4hujXgvxHyhy3CqdtrLduD4T3orRm8zETIZw9RIBgYa3P9kuoLu9ePCwynOzhjWumIeL4uOGR4OvY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1deefb08b9eso30816995ad.3 for <gcc-patches@gcc.gnu.org>; Wed, 20 Mar 2024 01:25:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710923112; x=1711527912; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BWjZ+AMqx5NsTBf4DfVvXdyd7xmYDJxUk33m/ZAC/rU=; b=SkqEeMo6f14YawEAXeJkdfKpQ2EotdefBWMaB7cC6tyKBSjI7zZ0dUYgrLOCA2fogt DZWUQycgyPEzRIqQ5KT8W6y7YmEpPxxl8mSp4Ljh23mwRcU4TlKme/G2mqcQu1cgcB4T edNq5cF4+IcTlTboGQLl/bLy7hnIEEc4ddT0Z24+U0SI84oTj5FDDKysA7h+cCmKgWRg DKy0+4vBIAChsDHTLnRZeJVAEhqme+CCvyZr3H0f/5X3Xd1kKCGG37ZVpxlk/7BcolfV wxy8SvvJPCdibQnk5bl6nF70dVsnEI9t8RN9OQ25VNG9sllMevWpN2gKp2p7JZKVLTE4 vR4g== X-Gm-Message-State: AOJu0YyEephhxroUq8uVkVwX5HawqYdpP0i1EVO2K2jDhhnVBQ2lsOtV 2kMpRLPeH1hxckarSrzTtY+fKoZUuWTD/tgdiIycll+Ghs040suXu1rS0g/t X-Google-Smtp-Source: AGHT+IEwxNGBEGUlHIlIAVHvIhxXb6U4J0IbXjZMVmShcs7s4B1m0pXykidYiBUStbtlFvC0XMkUqA== X-Received: by 2002:a17:902:dac8:b0:1dc:fcc3:7ca1 with SMTP id q8-20020a170902dac800b001dcfcc37ca1mr5127758plx.20.1710923111947; Wed, 20 Mar 2024 01:25:11 -0700 (PDT) Received: from localhost.localdomain ([149.248.38.156]) by smtp.gmail.com with ESMTPSA id u13-20020a170902e80d00b001dd95b5dd0fsm8798272plg.69.2024.03.20.01.25.10 for <gcc-patches@gcc.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 01:25:11 -0700 (PDT) From: YunQiang Su <syq@gcc.gnu.org> To: gcc-patches@gcc.gnu.org Subject: [PATCH] MIPS: Predefine __mips_strict_alignment if STRICT_ALIGNMENT Date: Wed, 20 Mar 2024 16:25:04 +0800 Message-Id: <20240320082504.1192715-1-syq@gcc.gnu.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
MIPS: Predefine __mips_strict_alignment if STRICT_ALIGNMENT
|
expand
|
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 6444a68dfd5..616a275b918 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -694,6 +694,9 @@ struct mips_cpu_info { builtin_define ("__mips_compact_branches_always"); \ else \ builtin_define ("__mips_compact_branches_optimal"); \ + \ + if (STRICT_ALIGNMENT) \ + builtin_define ("__mips_strict_alignment"); \ } \ while (0)