opts-common.c (integral_argument): Set errno properly in one case.
authorRoman Zhuykov <zhroma@ispras.ru>
Fri, 29 Mar 2019 18:44:01 +0000 (18:44 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 29 Mar 2019 18:44:01 +0000 (12:44 -0600)
commit7ad99f7d21983de63725701832e03d095842b3ae
tree6c0a60cb1acc5a3493ef6ff51ecfa0f2b66741ef
parentc072398e0f99551edb513735ef7c648f90a68eb6
opts-common.c (integral_argument): Set errno properly in one case.

    * opts-common.c (integral_argument): Set errno properly in one case.

    * gcc.dg/diag-sanity.c: New test.

From-SVN: r270022
gcc/ChangeLog
gcc/opts-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/diag-sanity.c [new file with mode: 0644]