re PR bootstrap/80887 (gnat bootstrap fails at s-regpat.o: raised STORAGE_ERROR ...
authorRichard Biener <rguenther@suse.de>
Mon, 19 Jun 2017 15:01:13 +0000 (15:01 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 19 Jun 2017 15:01:13 +0000 (15:01 +0000)
commit343ae898b17490d15c98f711ffcb04c88cca9235
treeef6963983505b5fc27f730d9f530a778279acca3
parent9787269815559a63fbbda58b35137f832a612984
re PR bootstrap/80887 (gnat bootstrap fails at s-regpat.o: raised STORAGE_ERROR : stack overflow or erroneous memory access)

2017-06-19  Richard Biener  <rguenther@suse.de>

PR tree-optimization/80887
        c/
* gimple-parser.c (c_parser_gimple_postfix_expression): Handle
negated _Literals to parse _Literal (int) -1.

* tree-ssa-sccvn.c (mprts_hook_cnt): New global.
(vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
simplified lookups, then reset mprts_hook.
(vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
simplifying.
(try_to_simplify): Likewise.

* gcc.dg/tree-ssa/pr80887.c: New testcase.

From-SVN: r249373
gcc/ChangeLog
gcc/c/ChangeLog
gcc/c/gimple-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr80887.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c