From patchwork Wed Sep 15 15:46:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 45052 X-Patchwork-Delegate: jwakely.gcc@gmail.com Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 859613857411 for ; Wed, 15 Sep 2021 15:47:03 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 246883858403 for ; Wed, 15 Sep 2021 15:46:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 246883858403 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id E3469201C8 for ; Wed, 15 Sep 2021 15:46:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1631720805; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ayTzeYWaQqu3+aDCFqgmM98+L5OVcREDSOb8aUFI4ug=; b=PbI1Z6qDIzlnGZXX7kW46UrnqoVCkR8h+43Q0FR8yXUeDwBEjkuH1t8IXv031rHFelTXa9 64Wu+321MSRABgWS9pAxs78IluQerUDmCO6ZGiAptadcAg+hEg9w0PI5pwBg5Z6YXxyiqj XTMvq+Thwdo04NwwXAwx/KJEfb01yqk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1631720805; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ayTzeYWaQqu3+aDCFqgmM98+L5OVcREDSOb8aUFI4ug=; b=z4LJZY8l0clvJmVdO8hZ0tCXzwVtjNdSPW3mqzaul/9X/xTvPm8CoZ9Qvf9kJtEuFyx6kN 6l/3ri/f8YuM+UDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id CE61113C37 for ; Wed, 15 Sep 2021 15:46:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id B4ApMWUVQmEdKwAAMHmgww (envelope-from ) for ; Wed, 15 Sep 2021 15:46:45 +0000 Message-ID: <4f660b66-b766-fd68-9b51-d62e4c4b52c6@suse.cz> Date: Wed, 15 Sep 2021 17:46:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH][pushed] i386: port vxworks to TARGET_CPU_P macro To: gcc-patches@gcc.gnu.org Content-Language: en-US X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, UPPERCASE_50_75 autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Hi. In g:f23881fcf081a6edd538d6d54fa0068d716973d7 I replaced TARGET_* macros with TARGET_CPU_P. Pushed as obvious. Martin PR target/102351 gcc/ChangeLog: * config/i386/vxworks.h: Use new macro TARGET_CPU_P. --- gcc/config/i386/vxworks.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/gcc/config/i386/vxworks.h b/gcc/config/i386/vxworks.h index ebda7d9d26a..0676cb4cead 100644 --- a/gcc/config/i386/vxworks.h +++ b/gcc/config/i386/vxworks.h @@ -73,37 +73,37 @@ along with GCC; see the file COPYING3. If not see VXWORKS_OS_CPP_BUILTINS (); \ if (TARGET_64BIT) \ VX_CPUDEF (X86_64); \ - else if (TARGET_PENTIUM4) \ + else if (TARGET_CPU_P (PENTIUM4)) \ { \ VX_CPUDEF (PENTIUM4); \ VX_CPUVDEF (PENTIUM4); \ } \ - else if (TARGET_CORE2) \ + else if (TARGET_CPU_P (CORE2)) \ VX_CPUDEF (CORE2); \ - else if (TARGET_NEHALEM) \ + else if (TARGET_CPU_P (NEHALEM)) \ VX_CPUDEF (NEHALEM); \ - else if (TARGET_SANDYBRIDGE) \ + else if (TARGET_CPU_P (SANDYBRIDGE)) \ VX_CPUDEF (SANDYBRIDGE); \ - else if (TARGET_HASWELL) \ + else if (TARGET_CPU_P (HASWELL)) \ VX_CPUDEF (HASWELL); \ - else if (TARGET_SILVERMONT) \ + else if (TARGET_CPU_P (SILVERMONT)) \ VX_CPUDEF (SILVERMONT); \ - else if (TARGET_SKYLAKE || TARGET_SKYLAKE_AVX512) \ + else if (TARGET_CPU_P (SKYLAKE) || TARGET_CPU_P (SKYLAKE_AVX512)) \ VX_CPUDEF (SKYLAKE); \ - else if (TARGET_GOLDMONT) \ + else if (TARGET_CPU_P (GOLDMONT)) \ VX_CPUDEF (GOLDMONT); \ else if (TARGET_VXWORKS7) \ VX_CPUDEF (PENTIUM4); \ - else if (TARGET_386) \ + else if (TARGET_CPU_P (I386)) \ VX_CPUDEF (I80386); \ - else if (TARGET_486) \ + else if (TARGET_CPU_P (I486)) \ VX_CPUDEF (I80486); \ - else if (TARGET_PENTIUM) \ + else if (TARGET_CPU_P (PENTIUM)) \ { \ VX_CPUDEF (PENTIUM); \ VX_CPUVDEF (PENTIUM); \ } \ - else if (TARGET_PENTIUMPRO) \ + else if (TARGET_CPU_P (PENTIUMPRO)) \ { \ VX_CPUDEF (PENTIUM2); \ VX_CPUVDEF (PENTIUMPRO); \