From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by sourceware.org (Postfix) with ESMTPS id C96443858CDA for ; Mon, 6 May 2024 21:27:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C96443858CDA Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=quicinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C96443858CDA Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715030846; cv=none; b=THhWlx4D/wc7+XOPvu/pqUIdsVkj32pHxXTh2/Utgb3cUihEydwk8ooqnuYte8btDfqJ/BGMgWfvDdJhGaKB2jTp24kjcH5s2LDdj4b3t7Etfod6YyhspSmvWS3IazYlZFG+Yxsm05LhGff8WMedtXM68A3qFESf7OsaPCzYPEc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715030846; c=relaxed/simple; bh=+jj+iqcjZyMGIs9SgWxTui6xmSRiGobL+v0sdVs9xPI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=j7uwN4yfvgOxLA0bEKbpjajjacGTTyGx2LlQQGOynOYmIkNC74SBUke0eKvckZvq15Xr0b11NEu29UkvKi/sBUPYkN8c87xSOGD88/D3CpzvxCo+/keFJrhaTO3hlbdX0hwpDBCdZgXexEPJrBQ5+7vPe85MNVwz5jADAHZYGa4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 446Ko8U2020023 for ; Mon, 6 May 2024 21:27:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=qcppdkim1; bh=IxSjeAJ 2bblSO8iCH3pyVcLt+MDD5yTWX9cdwFZLMXg=; b=H7gobehFte9+u9UFbWkq85r YZ5Vx3BdzS8EsS8Xp9oadep+N52m6FocXHA+iJOz1GnFBdxyGw3F0qD50uffhUjH jPTkSXHuesH7qm549GBcsUPLs5QHfzS079qnTo6zI3rFWl7wx5d3YH7AtNTecd4j M701iYLaTBHARUX60Ec70vfbUYImHr0oN9SEkUzUOlBEVBGc2da5kns4M3kAnkNl PQ7EpvdenMVnKEAlaF5qOev7rDMhQ+4r/KHxJ0WxwS9fCR6WmgDh7KI+EslCMqRF vPMe60yr0WRFdwK0AHvyhn9RJwPCRUzflIDhbYEAXT1D2l9t/DrBGZx/RBGqxHA= = Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xxw9a9bcq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 06 May 2024 21:27:21 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 446LRLI3011011 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 6 May 2024 21:27:21 GMT Received: from hu-apinski-lv.qualcomm.com (10.49.16.6) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 6 May 2024 14:27:20 -0700 From: Andrew Pinski To: CC: Andrew Pinski Subject: [PATCH] Mention that some options are turned on by `-Ofast` in their descriptions [PR97263] Date: Mon, 6 May 2024 14:27:01 -0700 Message-ID: <20240506212701.4115576-1-quic_apinski@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: eqBXsbzjET6V8_576W2MVJLRLjALGEkZ X-Proofpoint-ORIG-GUID: eqBXsbzjET6V8_576W2MVJLRLjALGEkZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-06_15,2024-05-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 phishscore=0 mlxscore=0 suspectscore=0 impostorscore=0 priorityscore=1501 bulkscore=0 mlxlogscore=999 spamscore=0 adultscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2405060155 X-Spam-Status: No, score=-13.4 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 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: Like was done for -ffast-math in r0-105946-ga570fc16fa8056, we should document that -Ofast enables -fmath-errno, -funsafe-math-optimizations, -finite-math-only, -fno-trapping-math in their documentation. Note this changes the stronger "must not" to be "is not" for -fno-trapping-math since we do enable it for -Ofast already. OK? gcc/ChangeLog: PR middle-end/97263 * doc/invoke.texi(fmath-errno): Document it is turned on with -Ofast. (funsafe-math-optimizations): Likewise. (ffinite-math-only): Likewise. (fno-trapping-math): Likewise and use less strong language. Signed-off-by: Andrew Pinski --- gcc/doc/invoke.texi | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 9456ced468a..14ff4d25da7 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -14996,11 +14996,12 @@ with a single instruction, e.g., @code{sqrt}. A program that relies on IEEE exceptions for math error handling may want to use this flag for speed while maintaining IEEE arithmetic compatibility. -This option is not turned on by any @option{-O} option since -it can result in incorrect output for programs that depend on -an exact implementation of IEEE or ISO rules/specifications for -math functions. It may, however, yield faster code for programs -that do not require the guarantees of these specifications. +This option is not turned on by any @option{-O} option besides +@option{-Ofast} since it can result in incorrect output for +programs that depend on an exact implementation of IEEE or +ISO rules/specifications for math functions. It may, however, +yield faster code for programs that do not require the guarantees +of these specifications. The default is @option{-fmath-errno}. @@ -15017,11 +15018,12 @@ ANSI standards. When used at link time, it may include libraries or startup files that change the default FPU control word or other similar optimizations. -This option is not turned on by any @option{-O} option since -it can result in incorrect output for programs that depend on -an exact implementation of IEEE or ISO rules/specifications for -math functions. It may, however, yield faster code for programs -that do not require the guarantees of these specifications. +This option is not turned on by any @option{-O} option besides +@option{-Ofast} since it can result in incorrect output +for programs that depend on an exact implementation of IEEE +or ISO rules/specifications for math functions. It may, however, +yield faster code for programs that do not require the guarantees +of these specifications. Enables @option{-fno-signed-zeros}, @option{-fno-trapping-math}, @option{-fassociative-math} and @option{-freciprocal-math}. @@ -15061,11 +15063,12 @@ The default is @option{-fno-reciprocal-math}. Allow optimizations for floating-point arithmetic that assume that arguments and results are not NaNs or +-Infs. -This option is not turned on by any @option{-O} option since -it can result in incorrect output for programs that depend on -an exact implementation of IEEE or ISO rules/specifications for -math functions. It may, however, yield faster code for programs -that do not require the guarantees of these specifications. +This option is not turned on by any @option{-O} option besides +@option{-Ofast} since it can result in incorrect output +for programs that depend on an exact implementation of IEEE or +ISO rules/specifications for math functions. It may, however, +yield faster code for programs that do not require the guarantees +of these specifications. The default is @option{-fno-finite-math-only}. @@ -15089,10 +15092,10 @@ underflow, inexact result and invalid operation. This option requires that @option{-fno-signaling-nans} be in effect. Setting this option may allow faster code if one relies on ``non-stop'' IEEE arithmetic, for example. -This option should never be turned on by any @option{-O} option since -it can result in incorrect output for programs that depend on -an exact implementation of IEEE or ISO rules/specifications for -math functions. +This option is not turned on by any @option{-O} option besides +@option{-Ofast} since it can result in incorrect output for programs +that depend on an exact implementation of IEEE or ISO rules/specifications +for math functions. The default is @option{-ftrapping-math}. -- 2.43.0