2017-06-19 Richard Biener <rguenther@suse.de>
commitedd07ff676d309eee810f24543248706c9df4cf9
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jun 2017 15:01:13 +0000 (19 15:01 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jun 2017 15:01:13 +0000 (19 15:01 +0000)
treeef6963983505b5fc27f730d9f530a778279acca3
parent2ac9ce4647a0ade3e0e7edd0a4b4aa29a696a3ba
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249373 138bc75d-0d04-0410-961f-82ee72b054a4
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