https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97439
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-8 branch has been updated by Andreas Krebbel <kreb...@gcc.gnu.org>: https://gcc.gnu.org/g:2819cdd8ff8e15ed5efb4095143cf531cf3e50f9 commit r8-10593-g2819cdd8ff8e15ed5efb4095143cf531cf3e50f9 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)