From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D592C3858D33; Wed, 9 Aug 2023 09:28:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D592C3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691573321; bh=MuYZYLvyabk2Q9XnlycEZhYopnZTkcn/PHrLsBiUoMM=; h=From:To:Subject:Date:From; b=F88JsqBDZ7L2VHipJAl7ZlcGZbTLVOR37Sv6efeU3NDE5Y/bypxI4uJriIqtBBvf9 T2p72NlN1ZMVYgT8SMJauZidCz0EbXfg48rcPWVHmRFav8xG8YsAv/GTuhsqZXOQmS +vlmt1NLGAgxIGQfIDi5CmsWP2HeGWgHStYOF1Uw= From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/110957] New: -ffpe-trap and -ffpe-summary options issues Date: Wed, 09 Aug 2023 09:28:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110957 Bug ID: 110957 Summary: -ffpe-trap and -ffpe-summary options issues Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: ubizjak at gmail dot com Target Milestone: --- A couple of issues with -ffpe-trap and -ffpe-summary options: a) Invalid argument report should be switched: $ gfortran -ffpe-summary=3Daaa ac.f90 f951: Fatal Error: Argument to =E2=80=98-ffpe-trap=E2=80=99 is not valid: a= aa compilation terminated. $ gfortran -ffpe-trap=3Daaa ac.f90 f951: Fatal Error: Argument to =E2=80=98-ffpe-summary=E2=80=99 is not valid= : aaa compilation terminated. b) Specifying also -fno-trapping-math should be detected and handled $ gfortran -ffpe-trap=3Dinvalid -fno-trapping-math ac.f90 [no diagnostics] The issue b) should either report incompatibility between options, or force -ftrapping-math (probably with a warning). Ideally, -ffpe-* should always s= et flag_trapping_math, in case the compiler switches to no trapping math by default in future.=