From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id BBA14388980B for ; Tue, 1 Jun 2021 14:05:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BBA14388980B 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 imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 9E4C81FD2A; Tue, 1 Jun 2021 14:05:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1622556357; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=e33KUSCnohICcQKjjWeSgHJPwPeHI4DnTofZYeEzFxk=; b=s76YSF1aslMYXlyI4q6HKSt9YxPWlvEDCIylpYcNJkfFzoIiFex+bEftZgFfaCL2GXIqil lxprAXTFKWV/vrJNq8+T6i1n9pc5drKYDKeC6FbukAgrdS6H96ZETfL8tJPVtOk24aVABU xSeLOMZvOgwMS4AWdf8ls2A/HsWQG08= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1622556357; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=e33KUSCnohICcQKjjWeSgHJPwPeHI4DnTofZYeEzFxk=; b=T2QgR0U1R7KulmUVCpBssSaC9h5TXU/3LC0uqtQBww+LFl57KkFc4FMv06apz62odhUjkJ wg/KwRMUWgnKxBCQ== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 792BC118DD; Tue, 1 Jun 2021 14:05:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1622556357; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=e33KUSCnohICcQKjjWeSgHJPwPeHI4DnTofZYeEzFxk=; b=s76YSF1aslMYXlyI4q6HKSt9YxPWlvEDCIylpYcNJkfFzoIiFex+bEftZgFfaCL2GXIqil lxprAXTFKWV/vrJNq8+T6i1n9pc5drKYDKeC6FbukAgrdS6H96ZETfL8tJPVtOk24aVABU xSeLOMZvOgwMS4AWdf8ls2A/HsWQG08= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1622556357; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=e33KUSCnohICcQKjjWeSgHJPwPeHI4DnTofZYeEzFxk=; b=T2QgR0U1R7KulmUVCpBssSaC9h5TXU/3LC0uqtQBww+LFl57KkFc4FMv06apz62odhUjkJ wg/KwRMUWgnKxBCQ== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id X55nHMU+tmCCHQAALh3uQQ (envelope-from ); Tue, 01 Jun 2021 14:05:57 +0000 From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Subject: [PATCH] ARM: reset arm_fp16_format To: gcc-patches@gcc.gnu.org Message-ID: <66e2cc2d-e409-1a11-5b0a-82e0e90201aa@suse.cz> Date: Tue, 1 Jun 2021 16:05:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: , X-List-Received-Date: Tue, 01 Jun 2021 14:06:00 -0000 Hello. The patch fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98636#c20 where target option restore can be called and arm_fp16_format should be reset to ARM_FP16_FORMAT_NONE. It fixes the ICE in the PR. Can please ARM folks test me the patch on a Arm machine? Thanks, Martin gcc/ChangeLog: PR target/98636 * config/arm/arm.c (arm_option_reconfigure_globals): Reset the option if isa_bit_fp16 is not set. --- gcc/config/arm/arm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 7b37e1b602c..4543f3c6b55 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -3765,6 +3765,8 @@ arm_option_reconfigure_globals (void) error ("selected fp16 options are incompatible"); arm_fp16_format = ARM_FP16_FORMAT_IEEE; } + else + arm_fp16_format = ARM_FP16_FORMAT_NONE; arm_arch_cde = 0; arm_arch_cde_coproc = 0; -- 2.31.1