https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97439
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Andreas Krebbel <kreb...@gcc.gnu.org>: https://gcc.gnu.org/g:a07af7753004e711d0db8d4e5620a4e8afc8f10c commit r9-9007-ga07af7753004e711d0db8d4e5620a4e8afc8f10c Author: Andreas Krebbel <kreb...@linux.ibm.com> Date: Thu Oct 22 12:24:22 2020 +0200 Fix PR97439 decimal_real_maxval misses to set the sign flag in the REAL_VALUE_TYPE. gcc/ChangeLog: PR rtl-optimization/97439 * dfp.c (decimal_real_maxval): Set the sign flag in the generated number. gcc/testsuite/ChangeLog: * gcc.dg/dfp/pr97439.c: New test. (cherry picked from commit e3f25eac67aee77af0b2038cd4d6cbd36d7f1030)