From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BC4B83858439; Wed, 18 Jan 2023 02:46:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC4B83858439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674010005; bh=SHw8qu+FDOJCO9elalSGTsr3Cg3dPkO5pYs37Nm4FWo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pX3+Rxw/9AIZB9vekdnG3ZzYEWhAL1SRliOJ0jqyMAGNiSUFMshJl9t9mx5vTdrDH 74LfEGI7J+ojIYli4Qxq9Pln2CgFU/R33ZmnHQEMCoLR2DWT3gFGOQIn9fm/ltaW8a 3T+L6HZ488X5xbAMyecHfdLYF6EW/xWZ7QxY2JGA= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/55522] -funsafe-math-optimizations is unexpectedly harmful, especially w/ -shared Date: Wed, 18 Jan 2023 02:46:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.6.3 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: major X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D55522 --- Comment #38 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:159b0f41adc4c8ead45e12a523470381ce716ff2 commit r13-5235-g159b0f41adc4c8ead45e12a523470381ce716ff2 Author: liuhongt Date: Fri Jan 13 16:19:47 2023 +0800 Don't add crtfastmath.o for -shared. Patches [1] and [2] fixed PR55522 for x86-linux but left all other x86 targets unfixed (x86-cygwin, x86-darwin and x86-mingw32). This patch applies a similar change to other specs using crtfastmath.o. [1] https://gcc.gnu.org/pipermail/gcc-patches/2022-December/608528.html [2] https://gcc.gnu.org/pipermail/gcc-patches/2022-December/608529.html gcc/ChangeLog: PR target/55522 * config/i386/cygwin.h (ENDFILE_SPEC): Link crtfastmath.o whenever -mdaz-ftz is specified. Don't link crtfastmath.o when -share or -mno-daz-ftz is specified. * config/i386/darwin.h (ENDFILE_SPEC): Ditto. * config/i386/mingw32.h (ENDFILE_SPEC): Ditto.=