From patchwork Fri May 2 08:11:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 344895 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 29DA814012B for ; Fri, 2 May 2014 18:11:19 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=l5Ri4NZ00omJ9yluPWDfyakFcrtuNLUvrbomqXPIQSgCJSuXn8kkD Iw/VIH3zXXsPEYXtYAWgiDmaOFJOgNtiwgswGXNlGnO7W5P4z8g8IhvvCfQznbsP FYv1GXppvkUc17U8NGHmGUAQi5VCGHmIX/0sMFgnHciKMRnveb3/DM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=CUNEdLgI1zY1cyYAmxJOscox90c=; b=lzwoSq0akacGRlO5jSEe 012Q9y3A9wTZ+JZbj9LNcEiRGa1obo19PwtmksNKrkw/n04XoU/7jCR9LqbyDkPl pAmRJCoQ/4q/skwvEH44ZRW64RNkJkctn7rkY+X/6h98/tMFlZjZu/jAS5R5cDWU rJHlFvd4lk+JtDco27nHv50= Received: (qmail 10038 invoked by alias); 2 May 2014 08:11:12 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 9978 invoked by uid 89); 2 May 2014 08:11:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 May 2014 08:11:10 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s428B8It005392 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 2 May 2014 04:11:09 -0400 Received: from redhat.com (ovpn-116-53.ams2.redhat.com [10.36.116.53]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s428B5sa017617 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO) for ; Fri, 2 May 2014 04:11:08 -0400 Date: Fri, 2 May 2014 10:11:05 +0200 From: Marek Polacek To: GCC Patches Subject: [DOC PATCH] Describe -fsanitize=float-divide-by-zero Message-ID: <20140502081105.GI11802@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) When I submitted -fsanitize=float-divide-by-zero stuff, I forgot to document the option in the table of ubsan options. Ok? 2014-05-02 Marek Polacek * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero. Marek diff --git gcc/doc/invoke.texi gcc/doc/invoke.texi index 0eba1e0..3fe9d5f 100644 --- gcc/doc/invoke.texi +++ gcc/doc/invoke.texi @@ -5393,6 +5393,14 @@ While @option{-ftrapv} causes traps for signed overflows to be emitted, @option{-fsanitize=undefined} gives a diagnostic message. This currently works only for the C family of languages. +@item -fsanitize=float-divide-by-zero +@opindex fsanitize=float-divide-by-zero + +Detect floating-point division by zero. Unlike other similar options, +@option{-fsanitize=float-divide-by-zero} is not enabled by +@option{-fsanitize=undefined}, since floating-point division by zero can +be a legitimate way of obtaining infinities and NaNs. + @item -fsanitize-recover @opindex fsanitize-recover By default @option{-fsanitize=undefined} sanitization (and its suboptions