From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 03B123858CDB; Thu, 18 Jan 2024 00:20:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03B123858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705537216; bh=Tiw00fsYtmffbDcQrmoc7iTeKbmAOxYV3Vo3qVM5phg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=c0wf9prqsriMb6uxkiR0K5bIuIHb8rkQLPRUKU5bXjmuzPUyiwLQt/QGtYRCXPn1W RaBelHKq0uHOdhZI7OQLtmq3fnvNhcTAgg97d5xL5BO/2pH0EAjr8KByN7X58v1mAJ Y6btrbynqQRsMDH1/eF5v8+qRUzS64i08OaVn7mI= From: "jsm28 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/113455] ROUNDING: IEEE Standard: Missing decimal rounding mode 'nearest, ties away from zero' for decimalxxx datatypes. Date: Thu, 18 Jan 2024 00:20:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jsm28 at gcc dot gnu.org 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: 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=3D113455 --- Comment #3 from Joseph S. Myers --- If you're linking with the version of the DFP arithmetic functions (__bid_adddd3 etc.) in libdfp rather than the libgcc version - check the li= nk order carefully to make sure the right version is linked in - and they're n= ot respecting the rounding mode, that would be a libdfp issue, not a GCC one. = If you're doing arithmetic with constant operands, it might be folded at compi= le time; make sure you're using -frounding-math to avoid that.=