options: fix integer overflow
authorMartin Liska <mliska@suse.cz>
Tue, 15 Dec 2020 08:57:19 +0000 (09:57 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 16 Dec 2020 09:20:45 +0000 (10:20 +0100)
commit5c5eb7e4872025e8d5e8ae2f0e568403f7c8803d
tree100fe6eea939511c8f90398108f9ccdbeedb0e69
parent61e3c180ad6913fa5af39059de5ba7b3bde50cda
options: fix integer overflow

gcc/ChangeLog:

PR rtl-optimization/98271
PR rtl-optimization/98276
PR tree-optimization/98279
* opts-common.c (set_option): Do not allow overflow for integer
arguments.

gcc/testsuite/ChangeLog:

PR rtl-optimization/98271
PR rtl-optimization/98276
PR tree-optimization/98279
* gcc.dg/pr98271.c: New test.
gcc/opts-common.c
gcc/testsuite/gcc.dg/pr98271.c [new file with mode: 0644]